Help:VisualEditor/Maps

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎Türkçe • ‎日本語 • ‎한국어

Adding maps with the visual editor[edit]

Visual editor "Insert" menu showing Maps item

To add a new map to the page, select "Insert" in the Visual Editor tool menu. Then press the "More" link to see the Map option. Select "Map". The map will be added wherever your cursor is.


Visual editor modal showing default map settings

Pressing the "Map" icon opens a dialog that displays an interactive map. To set a location, drag the interactive map and use the "+" and "-" buttons to zoom until you see what you're looking for.


You can define the size of the map, alignment, and the requested language for map labels. Note, not all labels are available in every language (More information on map languages).

You can also add markers, lines, and polygons to your map. Once added, use the pencil icon in the map toolbar to change the feature's properties.

Visual editor modal showing adding a marker
Visual editor modal showing editing a marker

Pressing the "Current position" label beneath the map shows you the latitude, longitude, and zoom level of the center of your map. Dragging the map preview will change these values.

When you're done, press "Insert" to close the dialog and insert your map into the page.


Editing an existing map

For an existing map, you can add or edit alignment or other settings by pressing on the map, then pressing on the "Edit" icon that appears below the map.

You can resize an existing map by pressing on it, then moving the resize icon (the two-headed arrow on one or both bottom corners).

You can also drag and drop an map to a place higher or lower on the page.

Removing maps with the visual editor[edit]

To remove a map, select the map and use the delete key on your keyboard. You can also use the "Cut" command from your browsers "Edit" menu.

Advanced map settings[edit]

For advanced map settings, like for markers, custom shapes, or other GeoJSON settings, please see Help:Extension:Kartographer.