I've just implemented the jQuery plugin jvectormap, for the use of a world map. Everything's working perfectly, except this maybe..
I added a few markers and have been trying to implement HTML to the markers label/tooltip.
So instead of just "blabla" I want an image/html to show up, when hovering the marker.
How can I achieve this result?
Here's the initializing JS:
$('#map').vectorMap({
markerStyle: {
initial: {
fill: '#F8E23B',
stroke: '#383f47'
}
},
backgroundColor: '#383f47',
markers: [
{latLng: [46.90, 8.45], name: "<img src="img/logo.png">"}
],
...(other code isn't important)...
The important part is name: "<img src="img/logo.png">"
Thanks for the help!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…