Answer the question
In order to leave comments, you need to log in
How to correctly implement an interactive map?
Hey!
How to implement a GREAT interactive map?
Well, for example, an interactive map of the shopping center.
img
on the entire block size?Svg
place above img
or after?Answer the question
In order to leave comments, you need to log in
In order for you to be able to select some blocks on your shopping center map, you need to:
1. The map is in svg format, and when drawing it, each separate selected block must be a separate layer, so that it is marked with some kind of code in the code ID and was a separate element.
2. When you insert your SVG map (and it must be inserted with bare code, not with a picture), you will be able to access your elements in svg as a normal DOM, you can hang handlers on these blocks, set them to selection, do generally anything. The most important thing is that the SVG itself should contain all these blocks with their IDs, some data, so that with the help of JS you can safely attach and process them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question