0

Can anybody say, how can I draw custom MAP vector map (dynamic) with using mongodb's Geo-spatial data?

Or I look for Map maker with using mongoDB.

Thanks.

Fariz Aghayev
  • 649
  • 5
  • 17

1 Answers1

1

MongoDB's default data storage is now GeoJSON, see the GeoJSON docs. This format, being an extension of JSON, naturally plays very well with Javascript. There are direct GeoJSON loaders in Google Maps, OpenLayers and in Leaflet, three of the better known Javascript mapping libraries out there. Both OpenLayers and Leaflet are open source, so you can view the source to see how it works and extend as you wish. You will have to write something to transmit the GeoJSON from MongoDB to the client and you might have to deal with cross domain issues, depending on your setup, see JSON: How do I make cross-domain JSON call for possible solutions.

Community
  • 1
  • 1
John Powell
  • 12,253
  • 6
  • 59
  • 67