I plan to draw a “map” (cities, rivers, roads, etc.) using svg. Thus, the ALL object will be displayed in one svg image, and only visible areas of visibility will be displayed.
Question 1:
Is this a smart approach? Or would I be better off which specific objects need to be drawn?
One of the features that I want to realize is to drag the map. It is planned to work as follows: the mouse cursor is a mouse point somewhere inside the map, click the mouse button and move the mouse. Thus, some objects will go out of scope, while others will be drawn.
Question 2:
Is it better to change the coordinates of the visible object in order to shift them in accordance with the movement of the mouse? Or is it better to change the "visible area" (suppose it should be possible by processing the parameters of the svg object of the viewbox)?
Thanks a lot! Any ideas are welcome!
Budda source share