User:JGirault (WMF)/tmp

= Kartographer.box Developer guide = The Kartographer Box is a mediawiki resource to easily integrate interactive maps within Mediawiki.

API
The 2 interfaces that you should use are map and link.

map
This interface allows you to initialize an interactive map in an HTML Element.

The list of options are:
 *   (required): The container that will contain the map.
 * (defaults to false): Whether the map can be expanded in full screen mode.
 * (defaults to 'auto')
 * (defaults to 'auto')
 * (optional): GeoJSON data to display on the map.

link
This interface allows you to open a map in full screen mode on click onto an HTML Element.

The list of options are:
 *   (required): The container that will catch the  event.
 * (defaults to 'auto')
 * (defaults to 'auto')
 * : (optional) GeoJSON data to display on the map.

Full API documentation

 * Kartographer JS Documentation
 * mapbox.js Documentation
 * leaflet.js Documentation

Examples
Initialize a simple map in an HTML element:

Initialize a map with a single marker in an HTML element:

Open a map full screen on click onto an HTML element: