I am trying to develop a website consisting of a geographic map using svg, with data derived from OpenStreetMap. Since it will be large and will be accepting transformations (zooming and moving), only a part of it will visible on the screen. So, for performance issues, probably it will be necessary to find a way to asynchronously load parts of it. Is there a way to do this? (e.g., like CATiledLayer of iOS)
How do websites like Google Maps do this?
You have to use the svg inline and not as an image reference. This way you will be able to manipulate the image parts as a DOM elements with javascript.
In the above example an image is being added to an existing svg. Thanks for Alex Moanga and Daveman for the js snippets.