|
ID | | (Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition. |
TileServer | Thunderforest-Transport-Dark |
Thunderforest-Transport |
Thunderforest-SpinalMap |
Thunderforest-Pioneer |
Thunderforest-Outdoors |
Thunderforest-Neighbourhood |
Thunderforest-Mobile-Atlas |
Thunderforest-Landscape |
Thunderforest-Cycle |
Stamen-Watercolor |
Stamen-Toner |
Stamen-Terrain |
MapQuest-Traffic-Markets |
MapQuest-Traffic-Incidents |
MapQuest-Traffic-Flow |
MapQuest-Satellite |
MapQuest-Light |
MapQuest-Hybrid |
MapQuest-Dark |
MapQuest |
| TileServer is the URL of a tile server. For example:
http://my.map.tile.server/{z}/{x}/{y}.png.
z represents zoom level.
x and y represent coordinates.
The mapping element supplies the values as the user interacts with the map.
There are some predefined TileServer values such as "MapQuest" which points to a public MapQuest tile server. A predefined value may be used in place of the URL value described above. |
TileServerApiKey | | TileServerApiKey is for tile servers which require an API key.
This includes the MapQuest and Thunderforest servers. |
TileServerAttribution | | Required if your tile server requires it for licensing purposes. This field accepts HTML.
The value will be displayed in the bottom right corner of the map, when a map layer using this connection is displayed. |
TileServerInclude | | TileServerInclude references a javascript file that is required by some map tile servers. It is a URL to the javascript.
Multiple javascript files may be included by delimiting each URL with the pipe "|" symbol. |
TileServerJavascript | | Some Leaflet javascript plugins require map layers to be created using specific javascript constructor code. That code may be entered in the TileServerJavascript attribute.
For example, to use the official MapQuest Leaflet plugin, and retrieve their satellite map tiles, the value for this attribute would be "new MQ.satelliteLayer()".
Note that for the built-in TileServers, such as MapQuest, this value is automatically filled, and so is not required.
Visit http://leafletjs.com/plugins.html to learn more about Leaflet plugins. |