简体   繁体   中英

tooltipster on interactive map

I need to create an interactive map with tooltipster but I don't really know how to begin... I have a map of the world (a png file) and I need to : - have a set of "dot" on certain countries - when the user clicks on a dot it zooms the map and display other dots of given cities. - When user clicks on a city, it displays a kind of tag with some informations about the city

Is it possible to do that with tooltipster ? Could anyone help me to start because I don't really know where to start...

Thanks for your help.

First, create an image map if you haven't already. This online tool will help you do it: https://www.image-map.net

Then when you download the HTML generated by this tool, insert it in your own page.

You will see tags in it, like <area shape="circle" coords="314,105,44" /> . You can add a class or an id onto these tags, and operate on them just as if it were a div, as demonstrated in Tooltipster's documentation.

I Hope it helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM