Visual Leaflet editor: Difference between revisions

From Maps for MediaWiki
mNo edit summary
mNo edit summary
Line 13: Line 13:
Create a new page in that namespace by going to <code>GeoJson:WhateverYourMapIsAbout</code>. Click the  
Create a new page in that namespace by going to <code>GeoJson:WhateverYourMapIsAbout</code>. Click the  


[[File:EditGeoJsonLayer.png|none|frame|The edit button that activates the editor]]
[[File:CreateGeoJsonPage.png|none|frame|The edit button that activates the editor]]


<pre>
<pre>

Revision as of 14:10, 3 June 2020

You can add data to Leaflet maps using a visual map editor.

This editor needs to be enabled per map. When it is enabled, an edit icon will show below the zoom control to people with edit permissions.

The edit button that activates the editor
Map in edit mode after activating the editor

Activating the editor

The editor stores data on a separate page in the GeoJSON namespace.

Create a new page in that namespace by going to GeoJson:WhateverYourMapIsAbout. Click the

The edit button that activates the editor
{{#display_map: center=Berlin | geojson=LeafletEditorExample}}


Using the editor

Example

{{#display_map: center=Berlin | geojson=LeafletEditorExample}}
Loading map...