Definition
Map of OpenStreetMap or other (Mars, Moon...) with the Leaflet lib (and its cluster plugin). It supports GeoJson data and wktLiteral datatype.
Data formats
Geolocation with two numbers : a latitude and a longitude
Each row in the table represents a geolocation on the earth (by default, see options).
0 Number Latitude |
1 Number Longitude |
2 string (Optional) Title |
3 string (Optional) Description |
4 url (Optional) Link |
5 url (Optional) Image |
49.1461 | 0.23 | jardin archéologique de l'hôpital de Lisieux | jardin à Lisieux (Calvados) | http://www... | http://....JPG?width=200 |
Column | Type | Description |
---|---|---|
0 | Number | Latitude |
1 | Number | Longitude |
2 | string (Optional) | Title of popup or simple label or HTML |
3 | string (Optional) | Description in the popup |
4 | url (Optional) | Link of title |
5 | url (Optional) | Image in the popup |
Geolocation with a wktLiteral
Each row in the table represents a geolocation with a shape (point, line, enveloppe, polygon, multipolygon).
0 wktLiteral |
1 string (Optional) Title |
2 string (Optional) Description |
3 url (Optional) Link |
4 url (Optional) Image |
Point(0.23 49.1461) | jardin archéologique de l'hôpital de Lisieux | jardin à Lisieux (Calvados) | http://www.... | http://....JPG?width=200 |
Column | Type | Description |
---|---|---|
0 | wktLiteral | Point(LONG LAT) or Linestring(LONG1 LAT1, LONG2 LAT2, ..., LONGN LATN) or Envelope(minLong, maxLong, maxLat, minLat) or Polygon((LONG1 LAT1, LONG2 LAT2, ..., LONGN LATN, LONG1 LAT1)) or Multipolygon(((LONG1 LAT1, LONG2 LAT2, ..., LONGN LATN, LONG1 LAT1)), ((LONG1 LAT1, LONG2 LAT2, ..., LONGN LATN, LONG1 LAT1))) |
1 | string (Optional) | Title of popup or simple label or HTML |
2 | string (Optional) | Description in the popup |
3 | url (Optional) | Link of title |
4 | url (Optional) | Image in the popup |
GeoJson (or Jsondata of Wiki Commons)
Each row in the table has a URI.
0 GeoJson (IRI) |
<http://commons.wikimedia.org/data/main/Data:Paris.map> |
<https://gist.githubusercontent.com/wavded/1200773/raw/e122cf709898c09758aecfef349964a8d73a83f3/sample.json> |
Column | Type | Description |
---|---|---|
0 | GeoJson | URI of data (Wikidata doc) |
Chart options
Each option is separated by a '|' or '!' (for Mediawiki).
Name | Default | Description |
---|---|---|
width |
100% | Chart width |
height |
Chart height | |
tileLayerTemplate |
Earth of OSM | Used to load and display tile layers on the map. By default, it's the Earth of OSM : https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken} You can replace it by the Moon, Mars or another map (see examples). |
tileLayerAttribution |
MapBox & OSM | The attribution control allows you to display attribution data in a small text box on a map. |
tileLayerAttributionLink |
MapBox & OSM | Link on tileLayerAttribution |
tileLayerId |
mapbox/streets-v11 | You can switch between the MapBox tiles with this parameter.
The following Mapbox styles are available to all accounts using a valid access token:
|
tileLayerAccessToken |
Token osmAccessToken | You can change the token for a specific chart |
tileLayerTileSize |
512 | Generally, the default value is 256 in Leaflet. You can change this value with this option. |
tileLayerZoomOffset |
-1 | Generally, the default value is 0 in Leaflet. You can change this value with this option. |
tileLayerTms |
false | If true, inverses Y axis numbering for tiles (turn this on for TMS services). |
Examples
Example 1 :
Example 2
With 6 columns