Search code examples
asp.netjvectormapdotnetnuke-7

jVectorMap - How to get County maps for US states?


I am creating a control to be used in a DNN site that will display the US map using jVectoMap.

When I click Colorado I need the state map to appear with the counties defined. Eventually I would like to have all of the US states but Colorado is critical right now.

I have tried running different Shape files through the converter as documented on the website but so far I haven't been able to get the counties. I have also contacted the developer three days ago now but have yet to hear back.

Unfortunately I am on a deadline for this and don't have anymore time to waste trying and failing.

Does anybody have a Colorado map with the county lines that is copyright free to use? Or is somebody willing to make one($-PM me)?

Any help is appreciated, thanks.

BTW if there is another library out there that has the US and state county maps available, I'm not married to jVectorMap.


Solution

  • How I solved this:

    First use this site to find a .svg of the map you need: http://commons.wikimedia.org/wiki/File:Blank_map_of_Colorado.svg

    Majority of these maps are free to use however you see fit. Just read the terms to be sure.

    Then open the .svg with notepad/notepad++ etc. and paste everything to this site: http://svgto.jvectormap.com/

    After you paste, hit 'Convert to map' and on the next page you will be able to create the Names (which show up on the hover labels for jVectorMap) and the IDs.

    Hope this helps