Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
can you please suggest how to create SVG Map for Americas, in my datamodel I have only region field contains US,Latin Americas
do we need to use any ISO codes ,completely am new to maps
please do help
Thanks
This includes some sample maps, not sure if it has the whole Americas but if not it isn't hard to find one online.
http://branch.qlik.com/#!/project/56728f52d1e497241ae6977f
Your data will need to have the dimension name which matches the id for the various shapes in the file. You can look at the file in something like Inkscape (which I used) but also remember an SVG is essentially just an XML document so you can just open it in a text editor. Sometimes you need to do both if the SVG doesn't have helpful ID's!
For example this is a UK one, you can't tell what is what:
<path
d="M 489.87641,508.73733 L 432.03211,508.73733 L 432.03211,572.5708 L 489.87641,572.5708 L 489.87641,508.73733 z"
clip-rule="evenodd"
id="path13180" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath13188"><path
d="M 0,0 L 0,653.44252 L 564.00945,653.44252 L 564.00945,0 L 0,0 z"
clip-rule="evenodd"
id="path13190" /></clipPath>
However this is a much better one because you can simply tell from the ID what is what
<path
d="M 624.5625,18.3125 L 623.6875,19.15625 L 623.9375,20.3125 L 622.6875,21.8125 L 621.15625,22.15625 id="scotland"
style="fill:#e6e6e6;stroke:#b3b3b3;stroke-width:0.75;stroke-miterlimit:0;stroke-dasharray:none" />
<path
d="M 139.15625,389.5625 L 138.5625,389.90625 L 137.9375,389.9375 L 137.84375,390.3125 L 137.40625,390.6875 id="northern-ireland"
style="fill:#e6e6e6;stroke:#b3b3b3;stroke-width:0.75;stroke-miterlimit:0;stroke-dasharray:none" />
<path
d="M 260.4375,595.09375 L 258.8125,595.8125 L 258.8125,596.90625 L 257.0625,595.84375 L 256.0625,597 L 255.0625,597.1875 L id="wales"
style="fill:#e6e6e6;stroke:#b3b3b3;stroke-width:0.75;stroke-miterlimit:0;stroke-dasharray:none" />
Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.
This will help users identify the answers should they come across this thread in the future.
Thanks for replay,
before this , do we need to write any script for SVG in the edit script, i believe generally latitude and longitude when we use maps , is this require for svg maps
Thanks,
Devendar
You obviously need to make sure that you have an ID column that links the data to the map
SVG's are just collections of shapes (hence scalable vector graphics) so in general you do not need lat / long as its linked by ID not position if that makes sense.
Here is an example I was just doing for something else, including the SVG used so you can see how the data is linked