C
C
Canis_Lupus2020-06-11 09:53:17
SVG
Canis_Lupus, 2020-06-11 09:53:17

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

2 answer(s)
E
Eugene, 2020-06-11
@iamd503

yandex and google maps

K
kocherman, 2020-06-11
@kocherman

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 question

Ask a Question

731 491 924 answers to any question