Leaflet Maps - Connecting to Map Servers
Connections to map servers aremade in the _Settings definition, using Connection.Leaflet Map elements, one for each map server:
Each map, or "tile",server will have its own connection configuration requirements, and some examples are provided below. Consult the map server's web site for connection details and credentials, if necessary. The Connection.Leaflet Map element's attributes are:
Attribute | Description |
---|---|
ID | (Required) Specifies a unique element ID. |
Tile Server | Specifies the URL of a tile server. For example: http://my.map.tile.server/{z}/{x}/{y}.png, where: See the following section for some examples. |
Tile Server API Key | Specifies an API key for map servers that require one, for example MapQuest and Thunderforest. |
Tile Server Attribution | Specifies an HTML string with server attribution text, for use when the map server requires it for licensing purposes. When a map layer using this connection is displayed the attribute value is displayed in the bottom right corner of the map. |
Tile Server Include | Specifies a URL to a JavaScript file that's required by some map servers. Multiple files may be included by delimiting each URL with the pipe "|" symbol. |
Tile Server JavaScript | Specifies the JavaScript constructor code for creating map layers when working with certain Leaflet JavaScript plug-ins. For example, to use the official MapQuest Leaflet plug-in and retrieve their satellite map tiles, the value for this attribute should be new MQ.satelliteLayer() |
Attribute Configuration Examples
These are examples of the Connection.Leaflet Map element's attribute values for selected map servers. The servers pre-defined in Logi Info have the word "Easy" in their names; only the required attributes are included in the table below.
These values may be subject to change by the map provider and are only offered here as a courtesy. If in doubt, consult the provider's website.
Map Server | Attribute Values |
---|---|
CartoDark | Tile Server: http://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png |
MapQuest | Tile Server Include: https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<yourKey> |
MapQuestEasy | Tile Server: MapQuest |
MapQuestSatellite | Tile Server Include: https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<yourKey> |
MapQuestSatelliteEasy | Tile Server: MapQuest-Satellite |
OpenStreetMaps | Tile Server: http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png |
StamenToner | Tile Server Include: http://maps.stamen.com/js/tile.stamen.js?v1.3.0 |
StamenTonerEasy | Tile Server: Stamen-Toner |
StamenTerrain | Tile Server Include: http://maps.stamen.com/js/tile.stamen.js?v1.3.0 |
StamenTerrainEasy | Tile Server: Stamen-Terrain |
StamenWatercolor | Tile Server Include: http://maps.stamen.com/js/tile.stamen.js?v1.3.0 |
StamenWatercolorEasy | Tile Server: Stamen-Watercolor |
ThunderforestLandscape | Tile Server: |
ThunderforestLandscapeEasy | Tile Server: Thunderforest-Landscape |