0

With kartograph.js I can access the container element of my map like this: mymap.container. But how do I get the actual SVG (or VML) element?

$(mymap.container).find("svg,vml") works, but feels stupid.

In the end, I want to be able to manipulate some attributes of the element (namely preserveAspectRatio, width and height).

leo
  • 8,106
  • 7
  • 48
  • 80
  • 1
    If you just want to write it ìn some different way you can write `$("svg,vml", mymap.container)` – PKeidel Mar 30 '14 at 20:46
  • Sure, I was just hoping that there would be a way to access the element withouth having to make jQuery search for it (in theory, some other svg or vml object could have been injected in the same container after loading the map, etc). – leo Mar 31 '14 at 06:41

0 Answers0