dani
dani

Reputation: 5000

JavaScript SVG World Map library that works offline?

I'm looking for a JavaScript library that allows me to build SVG maps from locally hosted shape data (to allow users to use the application without internet connection).

1) Where should I be looking?
2) Is GeoJson a good candidate for shape data?
3) Where do I find shape data for country borders and (1-level deep) subnational entities?

If the library also supported drawing circles with the center point at specific lat/long coordinates, that would be a bonus :)

Upvotes: 2

Views: 3156

Answers (2)

bjornd
bjornd

Reputation: 22943

You could try to use jVectorMap for that. It has a converter to generate custom maps.

Upvotes: 5

zozo
zozo

Reputation: 8582

Raphaeljs should meet all your requirements. There is an actual example of a map right here http://raphaeljs.com/australia.html. Of course you'll need to provide the appropriate data.

Upvotes: 0

Related Questions