jQuery-Mapael
jQuery-Mapael copied to clipboard
Make mapael compatible with the the GeoJSON format ?
Hello,
I just add an issue in order to remember about it. I'm wondering in which way Mapael could be made compatible with the GeoJSON format. To quote wikipedia :
"GeoJSON[1] is an open standard format designed for representing simple geographical features, along with their non-spatial attributes, based on JavaScript Object Notation. The features include points (therefore addresses and locations), line strings (therefore streets, highways and boundaries), polygons (countries, provinces, tracts of land), and multi-part collections of these types. GeoJSON features need not represent entities of the physical world only; mobile routing and navigation apps, for example, might describe their service coverage using GeoJSON.[2]"
It's currently used for instance by D3.js or leaflet.
Documentation : http://geojson.org/
That is an interesting feature indeed.
Should Mapael be capable of loading a GeoJSON directly or maybe an offline tool like SVGtoMapael?
Loading a geoJSON into Mapael could make for a nice extension btw ;-)
You are right !
Just a note : topoJSON format (an extenssion of GeoJSON format) should also be considered : https://github.com/topojson/topojson/wiki .
Just to add to the discussion, before I zeroed on to using Mapael library I tried couple of popular map libraries including D3. They have default support for loading map files in GeoJSON and topoJSON (lighter than GeoJSON) format as a standard.
Since GeoJSON and topoJSON are open standards, adding their support would strengthen Mapael and make it versatile.
Regards.
I'm glad you have choose Mapael among all those libraries :)
I can only approve you, supporting these kind of standards for map formats would greatly improve interoperability in oder to load maps. It has been a long time I say to myself I need to read the specs and dive myself into some examples in order to evaluate the feasability.