javascript - 如何在地图图像加载时显示工具提示从 imagemapster 开始
问题描述
我知道imagemapster可以在鼠标悬停时显示工具提示,但我希望在地图加载开始时继续显示,怎么办?
var image = $('img');
image.mapster({
fillColor: 'F0AF02',
fillOpacity : 0.2,
stroke: true,
strokeWidth: 2,
strokeColor: '09DA22',
mapKey: 'data-key',
mapValue: 'data-pd',
scaleMap:true,
showToolTip:true,
areas: [{
key: "a01",
toolTip: "tooltip1",
staticState: true
},
{
key: "a02",
toolTip: "tooltip2",
staticState: true,
}]
});
解决方案
推荐阅读
- python - Pandas:Python TO_SQL 函数插入的记录数
- random - jq : 在字段中生成 UUID
- node.js - 如何允许特定的用户类别访问特定的应用程序路线?
- powershell - Powershell中如何定义返回进程对象的方法的返回类型
- scikit-learn - adjust_rand_score 和adjusted_mutual_info_score 的输入是什么?
- ios - 我重命名了 ViewController.swift,现在 Xcode 11 的助手编辑器中什么也没有出现
- java - 在三个片段之间共享 ViewModel
- python - 没有使用 groupby() 和 mean() 聚合的数字类型
- r - 在R中绘制雷达图线
- python - Python - 在列表列表中搜索字符串