How-to add a GeoJSON file ========================= Getting a GeoJSON file ---------------------- GeoJSON files are stored statically! No MapServer is involved in the serving or rendering of a GeoJSON file with GeoMoose. A great example is the ``cities.geojson`` file. `It can be downloaded from here `__ and placed in the the ``workshop/`` directory. Add the new map-source ---------------------- In ``mapbook.xml`` after line 5 add: .. raw:: html :: ./cities.geojson .. raw:: html Add cities to the catalog ------------------------- - Find ```` in the mapbook. - After the ```` tag add: .. code:: xml Important notes on GeoJSON layers --------------------------------- 1. They cannot yet be used for querying. 2. They are styled using a subset of `MapBox GL Styles `__. The package used by GeoMoose to translate the MapBox GL styles to OpenLayers styles is actively being updated and GeoMoose will follow its progress.