I'm using Leaflet built-in L.DivIcon to add text labels to my map. Text labels are rendered in simple HTML divs and can be rotated and scaled using CSS based on values obtained from geojson data properties.

I would like to know if using SVG (with for example d3.js) to render my labels would allow faster panning and zooming than my actual HTML/div implementation ?

Thanks for any suggestions.

closed as primarily opinion-based by Devdatta Tengshe, PolyGeo, Jason Scheirer, BradHards, Mapperz Sep 26 '13 at 13:41

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I doubt SVG labels would be faster than plain html. – Decio Sep 20 '13 at 20:52
  • A more answerable question might be "Are there any performance test results available to indicate which option is faster?" – PolyGeo Sep 25 '13 at 20:51
  • Still looking for working code of HOW one can do that. – Nikhil VJ Mar 6 '18 at 9:36