Answer the question
In order to leave comments, you need to log in
How to make a selection of individual areas on a static map image?
Hello friends! There is a picture with a plan of land plots, when you click on the plots, a modal window with information on them will appear. What is the best way to implement this on a static jpg image (namely, a breakdown into separate areas in the same image)? Here is an example image:
Answer the question
In order to leave comments, you need to log in
You can use area:
htmlbook.ru/html/area
You can use regular links:
https://jsfiddle.net/7s69g4ky/
You can use svg:
https://habr.com/post/127994/
Here's another example:
https:// codepen.io/CreativeSeo33/pen/YwepVQ
through the image map, there are services for creating them
<html>
<body>
<img width="500" height="200" usemap="#somemap" src="upload.wikimedia.org/wikipedia/commons/e/e0/Figures_for_imagemap.png">
<map name="somemap">
<area shape="rect" coords="6, 7, 140, 196" href="ru.wikipedia.org/Прямоугольник">
<area shape="circle" coords="239, 98, 92" href="ru.wikipedia.org/Круг">
<area shape="poly" coords="386,16, 344,56, 350,189, 385,132, 489,190, 496,74, 386,16" href="ru.wikipedia.org/Многоугольник">
</map>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question