Answer the question
In order to leave comments, you need to log in
How to add zoom capability to SVG?
There is an SVG map/diagram. You need to add the ability to zoom:
1) zooming when scrolling the mouse wheel
2) zooming when clicking on the corresponding icons (plus and minus)
3) cross-browser compatibility
4) work on mobile devices
Is there a ready-made js framework or something similar?
Answer the question
In order to leave comments, you need to log in
Take ready -made openlayers .
One example:
https://openlayers.org/en/latest/examples/animatio...
click on the last "Take a tour" button.
The example code is on the same page under the map.
Here is a good example based on openlayers:
https://3dbuildings.com/
https://osmbuildings.org/ (all sources are open source)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question