jQuery-Mapael icon indicating copy to clipboard operation
jQuery-Mapael copied to clipboard

Make mapael compatible with the the GeoJSON format ?

Open neveldo opened this issue 7 years ago • 5 comments

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/

neveldo avatar Oct 13 '17 07:10 neveldo

That is an interesting feature indeed.

Should Mapael be capable of loading a GeoJSON directly or maybe an offline tool like SVGtoMapael?

Indigo744 avatar Oct 13 '17 09:10 Indigo744

Loading a geoJSON into Mapael could make for a nice extension btw ;-)

Indigo744 avatar Oct 13 '17 09:10 Indigo744

You are right !

Just a note : topoJSON format (an extenssion of GeoJSON format) should also be considered : https://github.com/topojson/topojson/wiki .

neveldo avatar Oct 18 '17 08:10 neveldo

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.

andersonreloaded avatar Oct 25 '17 09:10 andersonreloaded

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.

neveldo avatar Oct 27 '17 12:10 neveldo