首页 > 解决方案 > 如何在地图图像加载时显示工具提示从 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,               
        }]
});

标签: javascriptimagemapster

解决方案


推荐阅读