community
This extension is enabled by default on Fandom.

Interactive Maps is a feature available on Fandom that enables communities to design their own customized maps. It is available to any community that wants to use it.

Getting Started

Map creation and editing is open to all users. You can find the "Interactive Maps" link in the Explore menu of the top navigation, or you can directly navigate to the creation tool by visiting Special:AllMaps on your wiki, where you can create your own Map and find a list of every Map that exists on your community.

All Interactive Maps live in the Map: content namespace, e.g., /wiki/Map:My_New_Map. Maps created in any other namespace, including as a userspace subpage, will not be correctly generated. When creating a Map via the button on Special:AllMaps, this namespace is automatically added, omitting the need to make this part of the page title.

Unless you have set your preferences to use the source editor, the "Edit" button at the top right of any page in the Map namespace will open the visual Interactive Maps Editor, which is a user-friendly option to edit Maps quickly and easily. Clicking "Edit source" from the dropdown menu will instead take you to the source editor and load the base JSON (JavaScript Object Notation) structure for the Map. If you have the source editor selected as your preference, these options are reversed, and the button in the dropdown reads "Edit map". Clicking the pencil icon present on the map itself will always open the visual Interactive Maps Editor, regardless of your preferred editor. While inside the visual Interactive Maps Editor, hovering over the button with the three vertical dots will open a dropdown with the option to "edit source".

Building a Map using Interactive Maps Editor

Interactive Maps Editor

Interactive Maps Editor

Map Display

This section allows you to view your Map name and upload a Map image as your background.

Categories

Organize markers of a similar kind by grouping them into categories. This list will appear next to the Map and allows you to filter markers by categories.

Markers

To add a marker to your Map, click the pin icon in the top right-hand corner. Move your cursor to the desired placement on the Map and click to drop it. After you place the marker, a menu will come up with several options that control how your marker will appear on the Map:

Marker Editor with all its functions

Marker Editor with all its functions

Once a marker is created, you can drag it to a different location on the Map if you so choose. You can also click on the marker and hover over the three vertical dots to bring up options to edit or delete the marker.

Additional Functions

Hovering over the button in the top right with the three vertical dots (⋮) will open a dropdown. Depending on your user rights, you will always get the option to "edit source", "history", and "move" the Map.

The following options are only available to those with the content moderator right or higher.

As you are making edits, the preview window will display your changes in real time, so you can see how your Map will look before you save it. When you are finished, click the "Save" button, and your new Map will now appear on the wiki!

Building a Map using JSON in Source Editor

Every Interactive Map is defined in JSON (JavaScript Object Notation). The following fields should be defined in order to generate the Map:

Categories

Categories are a group of markers of the same kind. Each marker category is defined through the following fields:

Markers

Each individual marker is defined through the following fields:

Example

{
	"mapImage": "File:MapBackground.jpg",
	"pageCategories": ["Maps"],
	"defaultSort": "",
	"coordinateOrder": "xy",
	"mapBounds": [[0, 0], [1000, 1000]],
	"origin": "bottom-left",
	"categories": [
		{ "id": "1", "name": "Artifacts", "color": "#ff00ff" },
		{ "id": "2", "name": "Dungeons", "color": "#00ff00" }
	],
	"markers": [
		{
			"categoryId": "1",
			"position": [500, 300],
			"popup": {
				"title": "A Sword",
				"description": "Very important artifact",
				"link": {
					"url": "Article about a sword",
					"label": "See more"
				},
                "image": "Example.jpg"
			},
			"id": "1" 
		},
		{
			"categoryId": "2",
			"position": [300, 500],
			"popup": {
				"title": "A Cave",
				"description": "Very scary dungeon",
				"link": {
					"url": "Article about a cave",
					"label": "See more"
				}
			},
			"id": "2" 
		}
	] 
}

Viewing a Map

Filters

Maps have a filters menu that allows them to show or hide a specific marker category, if you want to see only a specific one. Select "Select all" to show all map markers, or select specific categories to only see markers from that category.

Markers

Markers identify points of interest on the map, and can be selected to display the associated popup.

Markers are created in HTML in the same order in which they were created in the visual editor, or the order in which they are present in the markers array of the JSON. This influences the sort order; the Z-order that markers are displayed in from back-to-front. For example, a marker defined last in the JSON will overlap all other markers that may be surrounding it. It is common practice to sort markers by their Y position, in ascending order (when using an origin of top-left) or descending order (when using an origin of bottom-left), so that markers towards the top of the map are shown behind markers towards the bottom.

The marker order also influences the tab order; the order in which focus is cycled when pressing Tab (↹) and Shift-Tab.

Popups

Popups display more information about the marker, including a title, a description, image, and an optional link pointing to a relevant page. A popup can be shown by clicking on a marker, or pressing the enter/return key if a marker is focused. A popup can be dismissed by clicking anywhere on the map outside of the popup, by clicking on a marker to show a different popup, or by pressing the enter/return key.

Only one popup can be displayed at a time. They appear at the top side of the marker, and if this marker is at the edge of the top side of the map container, the map will be automatically shifted down to be able to display the popup.

A dropdown menu (⋮) in the corner of the popup can be clicked to display more information:

Tooltips

The tooltips are small text boxes that display the title of the marker. They are shown when you are hovering over its marker on the map. Once you click on a marker, the tooltip disappears and is replaced by the popup, showing the rest of info alongside the title.

They are useful to describe basic info about each one of the markers without further actions. They are available on desktop devices when you have markers on the namespace map, an embedded map on an article page (either using full width or a defined width alongside text or other elements) and also the Interactive Maps Editor.

Tooltips appear at the left or the right side of the marker, and they are automatically placed at one side or the other keeping into account the available space in the content area (if the marker is close to a border, the tooltip will appear at the other side).

Progress tracking

You can also use the map markers to save a related progress from your life. The feature is useful if you have a map with markers showing video game missions or other tasks, a group of episodes from a TV show to watch, locations you want to explore, etc. To save your personal progress, once you click on a marker you will see a checkbox with the text "Mark as complete", and you only need to click this to mark that marker. In addition, if you use the filters menu, it will show you both categories for completed or incomplete markers, alongside the other current categories.

This is an example of a map where the progress tracking feature is enabled.

This is an example of a map where the progress tracking feature is enabled.

You can turn the feature on or off on each one of the maps. Once you're on the page for a map (inside the Map namespace) you can click on the Edit button (pencil) to open the Interactive Maps Editor (you can also use ?action=mapedit at the end of the url). At the bottom of the first box (below Map Image) you will see an option called "Marker Progress Tracking", with a button to turn it on.

Alternatively, you can also turn it on using the source editor. Once you're editing the map page (clicking on the edit button or using ?action=edit at the end of the url) you can add the property in JSON with the code ", "markerProgress": true" at the end of the content.

On the other hand, you can also turn the feature off whenever you want. You can go to the Maps Editor and unmark its option, or use the code ""markerProgress": false" if you use the source editor.

If the "Complete/Incomplete" wording is not accurate for your wiki, you are also able to customize the description about complete markers by using the following MediaWiki pages:

Fandom also offers a similar tool to track progress using tables.

Other Features

Maps and SEO

To ensure maximum discoverability and improve the SEO of your custom Maps through Google and other search engines, make sure to utilize the Map Description on each individual Map to its fullest potential. By adding a text description above your Map in the Map namespace, you can tell viewers as well as the search engine crawlers what this specific Map is about and how it fits into the context of your wiki. This field supports wikitext, and the character limit is 200.

In addition to adding descriptions to individual Maps, the Special:AllMaps page has a generic description that you can also customize to be more specific to your wiki. To do this, contact Fandom Staff to change MediaWiki:All-maps-dashboard-description for you with the desired text.

Embedding a Map

To get more eyes on your Map, you can embed it into a mainspace article if you wish. Once the Map has been created, it can be transcluded into an article using the {{Map:My New Map}} wikitext syntax.

Like templates, more than one Map can be embedded in an article.

Aligning and Placement

Embedding a map in an article using the {{Map:My New Map}} wikitext syntax will add it using 100% of the width embed and with a fixed height. For the desktop experience, you can use HTML attributes and adjust it at your convenience.

The required HTML syntax is <interactive-map name="MAP_NAME" />, and additionally you can include the following attributes:

In this example, the map is integrated next to a text column to optimize the full width of the content area.

In this example, the map is integrated next to a text column to optimize the full width of the content area.

If you are embedding a map and its embed size is 300x300px or smaller, the embedding will hide the tool buttons (zoom, edit) except for the fullscreen button. If you click on it and see the map using the fullscreen, these buttons will be available to use. The same behavior is displayed on mobile devices by default, regardless of the embedding size.

Also for these small sizes, if you are clicking on a marker, its popup will be shown in fullscreen mode after activating it once you click on the marker. If you only hover over the marker, the map will show you a small tooltip with the title.

Linking to Markers

Map markers can be directly linked to by including the URL query parameter marker=marker_id in an external link to the map, where marker_id is the ID of the marker that should be displayed.

As an example, on the Avatar Wiki, the following link will link to a marker with the ID 42 on the Avatar world map: https://avatar.fandom.com/wiki/Map:Avatar_world_map?marker=42. This can be generated in wikitext using the fullurl magic word. For example:

Reporting Markers

Report option for logged-in users

Report option for logged-in users

Logged-in users can report a marker by clicking the three vertical dots (⋮) on the marker pop-up and selecting the "Report Marker" button. A successful report is indicated by a banner notification in the bottom left corner, and the "Report Marker" option in the menu will change to "Already Reported". This is only visible to the user who reported that marker. A previously dismissed marker cannot be reported again by the same user as long as the reports have not been cleared from Special:Reports. Trying this will result in the error message "There was a problem reporting this marker. Please try again."

Anonymous users cannot report a marker at all. While they see the "Report Marker" option, clicking that results in a pop-up prompting them to create an account.

If you wish to report a Map for deletion, you can do so by directly adding the relevant deletion category that your wiki uses to the Map. You can do that via the category module at the bottom of the page or by adding/updating the "pageCategories" in the JSON editor with the category name.

Reviewing Reports

Only administrators and content moderators will see any visible indicators that a marker has been reported and have the ability to address marker reports. The following moderation tools and report indicators will be available to them:

Special:Reports

Reported markers will appear on Special:Reports. This page can be found as a separate tab on Recent Changes, titled Map Reports, after the Image Activity tab. Anyone able to edit a Map can edit or even delete a reported marker, but only a saved edit or the deletion of the Map by a moderator will dismiss the report. Dismissed reports will remain visible (but grayed out) on this feed though will disappear after some time, depending on how much marker reporting activity the wiki sees. Active reports are visible indefinitely.

Viewing reported markers on Special:Reports, a moderator has the following options:

While Viewing a Map

When viewing a Map as a moderator, the following elements indicate that a marker has been reported:

Reported pins are visually marked to moderators.

Reported pins are visually marked to moderators.

Visual Interactive Maps Editor

When a moderator opens the visual Interactive Maps Editor, the report icons will remain visible next to the reported markers. When editing the Map via the JSON editor, there are no indications of which marker has been reported, and the moderator will have to search for the marker based on the marker's title.

Useful links

Map examples

See also

Further help and feedback