https://maps.extension.wiki/w/api.php?action=feedcontributions&user=Jeroen+De+Dauw&feedformat=atom
Maps for MediaWiki - User contributions [en]
2024-03-28T15:54:23Z
User contributions
MediaWiki 1.39.6
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=630
Leaflet Maps examples
2024-02-11T00:59:57Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on a marker to copy its coordinates. <br />
<br />
<pre><br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}<br />
<br />
== Inline labels ==<br />
<br />
Inline labels are not implemented for Leaflet. [[Google_Maps_examples#Inline_labels|They do work for Google maps]].<br />
<br />
<pre><br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
}}<br />
</pre><br />
<br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
== Links and Wikitext in Popups ==<br />
<br />
<pre><br />
{{#display_map:Berlin~~'''Berlin''' is the capital of [https://en.wikipedia.org/wiki/Germany Germany]}}<br />
</pre><br />
<br />
{{#display_map:Berlin~~'''Berlin''' is the capital of [https://en.wikipedia.org/wiki/Germany Germany]}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_GeoJSON&diff=623
Leaflet GeoJSON
2023-12-04T01:06:42Z
<p>Jeroen De Dauw: </p>
<hr />
<div>Maps supports working with GeoJSON since version 6.<br />
<br />
Since [https://en.wikipedia.org/wiki/GeoJSON GeoJSON] is an open standard, there are many tools that allow you to create an consume GeoJson. A simple online visual map editor that outputs GeoJSON is [http://geojson.io geojson.io].<br />
<br />
== In-wiki GeoJSON ==<br />
<br />
Since version 6.0, you can store your GeoJSON in wiki pages that are in the GeoJson namespace. For instance [[GeoJson:Berlin]]. You can use this GeoJSON via the <code>geojson</code> parameter, by giving it the page name. The GeoJSON stored in a page can be used by as many maps as you like.<br />
<br />
<pre>{{#display_map: center=Berlin | geojson=Berlin}}</pre><br />
<br />
{{#display_map: center=Berlin | geojson=Berlin | scrollzoom=off }}<br />
<br />
The pages in the GeoJson namespace make sure they contain valid JSON. Once saved, the pages show a preview of the GeoJSON on a Leaflet map.<br />
<br />
=== Visual editor ===<br />
<br />
Since version 6.7 pages in the GeoJson namespace contain a [https://professional.wiki/en/news/visual-map-editor-for-mediawiki visual map editor]. The editor is only shown to those with permissions to edit the page.<br />
<br />
Since version 7.13 the editor is also shown on regular maps that use GeoJson.<br />
<br />
=== Semantic MediaWiki integration ===<br />
<br />
Since Maps version 7.16 there is experimental SMW integration that stores GeoJson data as SubObjects. Contact [[Jeroen De Dauw]] for more information.<br />
<br />
=== GeoJSON export ===<br />
<br />
You can export GeoJSON stored on a GeoJSON page by clicking "edit" or "view source" and copying the content.<br />
<br />
Alternatively you can add <code>?action=raw</code> to the page URL. Example: [https://maps.extension.wiki/wiki/GeoJson:Berlin?action=raw GeoJson:Berlin?action=raw]<br />
<br />
=== Limitations ===<br />
<br />
As of version 7.16:<br />
<br />
* Only Leaflet supports GeoJson<br />
* Marker styles cannot be changed<br />
* Images and links cannot be added to the markers<br />
* No visual editing of shape styles<br />
* Editing the GeoJSON page directly does not cause automatic updates on pages that make use of it<br />
* No captcha integration: edits will fail for users that need to fill out a captcha to edit<br />
* The preview maps on GeoJson pages cannot be customized via wikitext or configuration<br />
* https://github.com/JeroenDeDauw/Maps/projects/1<br />
<br />
You can hire [[Jeroen De Dauw]] (creator of Maps) to work on the above via [https://professional.wiki Professional.Wiki].<br />
<br />
== GeoJSON files ==<br />
<br />
<pre><br />
{{#display_map: center=Berlin<br />
| geojson = https://raw.githubusercontent.com/leakyMirror/map-of-europe/master/GeoJSON/europe.geojson<br />
}}<br />
</pre><br />
<br />
{{#display_map: center=Berlin<br />
| geojson = https://raw.githubusercontent.com/leakyMirror/map-of-europe/master/GeoJSON/europe.geojson<br />
| scrollzoom = off<br />
}}<br />
<br />
== See also ==<br />
<br />
* [https://professional.wiki/en/news/visual-map-editor-for-mediawiki Visual Map Editor for MediaWiki] (blog post)<br />
* [[Visual Leaflet editor]]<br />
* [[KML export]]<br />
* [https://maps.extension.wiki/wiki/Special:PrefixIndex?prefix=&namespace=420 All GeoJSON pages on this wiki]</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_GeoJSON&diff=622
Leaflet GeoJSON
2023-12-04T01:06:22Z
<p>Jeroen De Dauw: </p>
<hr />
<div>Maps supports working with GeoJSON since version 6.<br />
<br />
Since [https://en.wikipedia.org/wiki/GeoJSON GeoJSON] is an open standard, there are many tools that allow you to create an consume GeoJson. A simple online visual map editor that outputs GeoJSON is [http://geojson.io geojson.io].<br />
<br />
== In-wiki GeoJSON ==<br />
<br />
Since version 6.0, you can store your GeoJSON in wiki pages that are in the GeoJson namespace. For instance [[GeoJson:Berlin]]. You can use this GeoJSON via the <code>geojson</code> parameter, by giving it the page name. The GeoJSON stored in a page can be used by as many maps as you like.<br />
<br />
<pre>{{#display_map: center=Berlin | geojson=Berlin}}</pre><br />
<br />
{{#display_map: center=Berlin | geojson=Berlin | scrollzoom=off }}<br />
<br />
The pages in the GeoJson namespace make sure they contain valid JSON. Once saved, the pages show a preview of the GeoJSON on a Leaflet map.<br />
<br />
=== Visual editor ===<br />
<br />
Since version 6.7 pages in the GeoJson namespace contain a [https://professional.wiki/en/news/visual-map-editor-for-mediawiki visual map editor]. The editor is only shown to those with permissions to edit the page.<br />
<br />
Since version 7.13 the editor is also shown on regular maps that use GeoJson.<br />
<br />
=== Semantic MediaWiki integration ===<br />
<br />
Since Maps version 7.16 there is experimental SMW integration that stores GeoJson data as SubObjects. Contact [[Jeroen De Dauw]] for more information.<br />
<br />
=== GeoJSON export ===<br />
<br />
You can export GeoJSON stored on a GeoJSON page by clicking "edit" or "view source" and copying the content.<br />
<br />
Alternatively you can add <code>?action=raw</code> to the page URL. Example: [https://maps.extension.wiki/wiki/GeoJson:Berlin?action=raw GeoJson:Berlin?action=raw]<br />
<br />
=== Limitations ===<br />
<br />
As of version 7.16:<br />
<br />
* Only Leaflet supports GeoJson<br />
* Marker styles cannot be changed<br />
* Images and links cannot be added to the markers<br />
* No visual editing of shape styles<br />
* Editing the GeoJSON page directly does not cause automatic updates on pages that make use of it<br />
* No captcha integration: edits will fail for users that need to fill out a captcha to edit<br />
* The preview maps on GeoJson pages cannot be customized via wikitext or configuration<br />
* https://github.com/JeroenDeDauw/Maps/projects/1<br />
<br />
You can hire [[Jeroen De Dauw]] (creator of Maps) to work on the above via [https://professional.wiki Professional.Wiki].<br />
<br />
== GeoJSON files ==<br />
<br />
<pre><br />
{{#display_map: center=Berlin<br />
| geojson = https://raw.githubusercontent.com/leakyMirror/map-of-europe/master/GeoJSON/europe.geojson<br />
}}<br />
</pre><br />
<br />
{{#display_map: center=Berlin<br />
| geojson = https://raw.githubusercontent.com/leakyMirror/map-of-europe/master/GeoJSON/europe.geojson<br />
| scrollzoom = off<br />
}}<br />
<br />
== See also ==<br />
<br />
* [https://professional.wiki/en/news/visual-map-editor-for-mediawiki Visual Map Editor for MediaWiki] (blog post)<br />
* [[Visual Leaflet editor]]<br />
* [[KML export]]<br />
* [[Special:PrefixIndex?prefix=&namespace=420|All GeoJSON pages on this wiki]]</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=618
Google Maps examples
2023-07-09T23:01:00Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=Europe<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Europe<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on the map to copy the coordinates. <br />
<br />
<pre><br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|zoom=11<br />
}}<br />
</pre><br />
<br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=11<br />
}}<br />
<br />
== Inline labels ==<br />
<br />
<pre><br />
{{#google_maps:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London (inline label);<br />
}}<br />
</pre><br />
<br />
{{#google_maps:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London (inline label);<br />
|height=300px<br />
|scrollzoom=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=617
Leaflet Maps examples
2023-07-09T23:00:28Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on a marker to copy its coordinates. <br />
<br />
<pre><br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}<br />
<br />
== Inline labels ==<br />
<br />
Inline labels are not implemented for Leaflet. [[Google_Maps_examples#Inline_labels|They do work for Google maps]].<br />
<br />
<pre><br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
}}<br />
</pre><br />
<br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
|height=300px<br />
|scrollzoom=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=616
Leaflet Maps examples
2023-07-09T23:00:15Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on a marker to copy its coordinates. <br />
<br />
<pre><br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}<br />
<br />
== Inline labels ==<br />
<br />
Inline labels are not implemented for Leaflet. [Google_Maps_examples#Inline_labels They do work for Google maps].<br />
<br />
<pre><br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
}}<br />
</pre><br />
<br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
|height=300px<br />
|scrollzoom=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=615
Google Maps examples
2023-07-09T22:59:30Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=Europe<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Europe<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on the map to copy the coordinates. <br />
<br />
<pre><br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|zoom=11<br />
}}<br />
</pre><br />
<br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=11<br />
}}<br />
<br />
== Inline labels ==<br />
<br />
<pre><br />
{{#google_maps:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
}}<br />
</pre><br />
<br />
{{#google_maps:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
|height=300px<br />
|scrollzoom=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=614
Leaflet Maps examples
2023-07-09T22:58:47Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on a marker to copy its coordinates. <br />
<br />
<pre><br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}<br />
<br />
== Inline labels ==<br />
<br />
<pre><br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
}}<br />
</pre><br />
<br />
{{#leaflet:<br />
Berlin~Popup title~Popup text~~Group~Berlin;<br />
London~Popup title~Popup text~~Group~London;<br />
|height=300px<br />
|scrollzoom=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=User:Jeroen_De_Dauw&diff=612
User:Jeroen De Dauw
2023-03-08T19:50:41Z
<p>Jeroen De Dauw: </p>
<hr />
<div>I am the creator and maintainer of Maps.<br />
<br />
I am also CEO of [https://professional.wiki/ Professional Wiki], which provides [https://www.pro.wiki/ MediaWiki hosting] and [https://professional.wiki/en/mediawiki-development MediaWiki software development] services.</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=User:Jeroen_De_Dauw&diff=611
User:Jeroen De Dauw
2023-03-08T19:50:32Z
<p>Jeroen De Dauw: </p>
<hr />
<div>I am the creator and maintainer of Maps.<br />
<br />
I am also CEO of [https://professional.wiki/ Professional Wiki], which provides [https://www.pro.wiki/ MediaWiki hosting[ and [https://professional.wiki/en/mediawiki-development MediaWiki software development] services.</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Semantic_MediaWiki&diff=610
Semantic MediaWiki
2023-01-26T01:02:48Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[https://www.pro.wiki/semantic-mediawiki Semantic MediaWiki] (SMW) is a popular extension to MediaWiki that lets you store and query data in your wiki.<br />
<br />
Maps integrates with SMW by adding support for geographical values. These values can then be queried together with other information stored in your wiki. Query results can be shown on maps, which can be customized the same way you customize standard maps provided by the Maps extension.<br />
<br />
== Geographic coordinates datatype ==<br />
<br />
See https://www.semantic-mediawiki.org/wiki/Help:Type_Geographic_coordinates<br />
<br />
== Semantic queries ==<br />
<br />
Maps adds SMW result formats that can be used in [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries inline queries] and in other [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search semantic queries].<br />
<br />
* format=map - to show query results on a map, by default Leaflet<br />
* [[Leaflet_SMW_queries|format=leaflet]] - to show query results on a Leaflet map<br />
* [[Google_Maps_SMW_queries|format=googlemaps]] - to show query results on Google Maps<br />
* [[KML export|format=kml]] - to export query results as KML<br />
<br />
For map specific customization parameters, see [[Leaflet SMW queries]] or [[Google Maps SMW queries]].<br />
<br />
Documentation on more advanced queries:<br />
<br />
* [[Queries with templates]] - customize what gets shown in popups<br />
* [[Distance queries]] - restrict query results based on distance from a point<br />
* [[Compound queries]] - combine queries and differentiate their results with different icons or other attributes</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Installation&diff=609
Installation
2023-01-04T20:13:31Z
<p>Jeroen De Dauw: </p>
<hr />
<div>This page is for wiki administrators that want to install the Maps extension. This is only possible with server access.<br />
<br />
== Installation ==<br />
<br />
Maps is installed using [https://getcomposer.org/ Composer] with [https://www.mediawiki.org/wiki/Composer MediaWiki's built-in support for Composer].<br />
<br />
=== Step 1/2: composer update ===<br />
<br />
On the command line, go to the base directory of your MediaWiki installation.<br />
<br />
If you are using MediaWiki 1.35 or later and PHP 7.4 or later, run the following two commands:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~10.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using MediaWiki 1.35 or later with PHP 7.3, run the following two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using an older version of MediaWiki or of PHP, then run these two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~7.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
=== Step 2/2: modify LocalSettings.php ===<br />
<br />
Add the following line to the end of your "LocalSettings.php" file:<br />
<br />
<syntaxhighlight lang="bash"><br />
wfLoadExtension( 'Maps' );<br />
</syntaxhighlight><br />
<br />
=== Verify installation success ===<br />
<br />
Check the "Special:Version" page on your wiki. If it lists Maps, then installation was successful.<br />
<br />
== Configuration ==<br />
<br />
Maps works out of the box without any configuration work being required. Below are some key configuration options that you might want to change. For a comprehensive overview of all settings, see [[Configuration|the configuration overview]].<br />
<br />
=== Mapping service ===<br />
<br />
The Maps extension supports displaying maps using multiple mapping services, including Google Maps, Leaflet and OpenLayers. At present the default is Leaflet, while in older versions of the extension it was Google Maps.<br />
<br />
If you do not wish to use the default, use the <code>$egMapsDefaultService</code> configuration parameter. Examples:<br />
<br />
* For Google Maps: <syntaxhighlight lang="php">$egMapsDefaultService = 'googlemaps3';</syntaxhighlight><br />
* For Leaflet: <syntaxhighlight lang="php">$egMapsDefaultService = 'leaflet';</syntaxhighlight><br />
<br />
When using Google Maps, you will need to provide your [https://developers.google.com/maps/documentation/javascript/get-api-key Google API key]:<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsGMaps3ApiKey = 'your-api-key';<br />
</syntaxhighlight><br />
<br />
=== Geocoding service ===<br />
<br />
The Maps extension supports [[Geocoding|geocoding]], the conversion of human readable addresses to coordinates. This is done via a webservice used for each map displayed on your wiki. By default Maps uses [https://wiki.openstreetmap.org/wiki/Nominatim Nominatim]. To use a different geocoding service, use the <code>$egMapsDefaultGeoService</code>.<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsDefaultGeoService = 'google';<br />
</syntaxhighlight><br />
<br />
== Alternative installation methods ==<br />
<br />
=== Semantic Bundle ===<br />
<br />
Maps is included in Semantic Bundle, an extension package build around [[Semantic MediaWiki]]. To install Maps via Semantic Bundle, follow the [https://github.com/ProfessionalWiki/SemanticBundle#semantic-bundle Semantic Bundle installation instructions] rather than the ones on this page.<br />
<br />
=== Installation without shell access ===<br />
<br />
See https://www.mediawiki.org/wiki/Topic:Voivcvsg48plvx9u<br />
<br />
This method is not officially supported.<br />
<br />
=== Professional Hosting ===<br />
<br />
The maintainers of the Maps extension provide commercial [https://professional.wiki/en/hosting fully managed MediaWiki hosting].</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Network_example&diff=595
Network example
2022-08-30T20:26:46Z
<p>Jeroen De Dauw: </p>
<hr />
<div>{{#network:KML}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Network_example&diff=594
Network example
2022-08-30T20:24:57Z
<p>Jeroen De Dauw: Created page with "{{#network:Maps for MediaWiki}}"</p>
<hr />
<div>{{#network:Maps for MediaWiki}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Displaying_Google_maps&diff=591
Displaying Google maps
2022-06-11T13:00:28Z
<p>Jeroen De Dauw: </p>
<hr />
<div>Maps supports embedding of dynamic maps using Google Maps.<br />
<br />
== Basic syntax ==<br />
<br />
Displaying maps is done with the <code>#display_map</code> parser function. <br />
<br />
<pre><nowiki><br />
{{#display_map:center=Brandenburg Gate Berlin}}<br />
</nowiki></pre><br />
<br />
{{#display_map:center=Brandenburg Gate, Berlin, Germany|scrollzoom=off|zoom=15}}<br />
<br />
The above Maps uses [[Displaying_Leaflet_Maps|Leaflet]] rather than Google Maps. This is because [[Installation#Configuration|by default]] Maps uses Leaflet.<br />
<br />
To use Google Maps instead of Leaflet, add <code>service=google</code> as shown below.<br />
<br />
<pre><nowiki><br />
{{#display_map:center=Brandenburg Gate Berlin | service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:center=Brandenburg Gate, Berlin, Germany|scrollzoom=off|zoom=15|service=google}}<br />
<br />
If you want to use Google Maps through your wiki, you can [[Installation#Configuration|change the default mapping service]].<br />
<br />
Alternatively you can use the <code>#google_maps</code> parser function, available since Maps 7.19:<br />
<br />
<pre><nowiki><br />
{{#google_maps:center=Brandenburg Gate Berlin}}<br />
</nowiki></pre><br />
<br />
{{#google_maps:center=Brandenburg Gate, Berlin, Germany|scrollzoom=off|zoom=15}}<br />
<br />
== Google Maps API key ==<br />
<br />
If you get the below error when displaying a Google Maps map, ask a wiki administrator to [[Installation#Configuration|configure the Google Maps API key]].<br />
<br />
[[File:GoogleMapsError.png|link=]]<br />
<br />
== Customization ==<br />
<br />
Google Maps maps can be customized using various parameters. <br />
<br />
<pre><nowiki><br />
{{#display_map:center=Berlin|width=400|height=250|service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:center=Berlin|width=400|height=250|scrollzoom=off|zoom=11|service=google}}<br />
<br />
See [[Customizing Leaflet Maps]] for a full overview of customization parameter, including examples.<br />
<br />
== Displaying data ==<br />
<br />
=== Markers ===<br />
<br />
<pre><nowiki><br />
{{#display_map:Brandenburg Gate Berlin | service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:Brandenburg Gate, Berlin, Germany|scrollzoom=off|service=google}}<br />
<br />
You can display multiple locations by separating them with semicolons. And it is possible to use [[coordinates]] instead of location names.<br />
<br />
<pre><nowiki><br />
{{#display_map:Berlin; Brussel; 40° 42' 46.02" N, 74° 0' 21.39" W | service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:Berlin; Brussel; 40° 42' 46.02" N, 74° 0' 21.39" W|scrollzoom=off|service=google}}<br />
<br />
You can customize the markers per location. The syntax is:<br />
<br />
<pre>Location~Popup title~Popup text~File:CustomIcon~Group~Inline label~File:VisitedIcon</pre><br />
<br />
* '''Location''': the location where to display the marker. Both [[coordinates]] and addresses are supported<br />
* '''Popup title''' and '''Popup text''': optional content for a popup shown when the marker is clicked. No popup is shown if both are empty<br />
* '''File:CustomIcon''': optional name of an image to display instead of the default marker<br />
* '''Group''': <br />
* '''Inline label''': optional label shown next to the marker. Currently only shown when using Google Maps<br />
* '''File:VisitedIcon''': optional name of an image to display as marker when the marker is clicked<br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:<br />
Berlin~The city Berlin~Berlin is a really nice city and there is plenty of Club Mate~Red-marker.png;<br />
Amsterdam~The city Amsterdam~Amsterdam is the capital of The Netherlands~Green-marker.png<br />
| service=google<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
Berlin~The city Berlin~Berlin is a really nice city and there is plenty of Club Mate~Red-marker.png;<br />
Amsterdam~The city Amsterdam~Amsterdam is the capital of The Netherlands~Green-marker.png<br />
| scrollwheelzoom=off<br />
| service=google<br />
}}<br />
<br />
=== Lines ===<br />
<br />
Via the <code>lines</code> parameter you can display lines on the map. Each line has at least two locations. As with markers you can specify a popup title and text. You can also specify the looks of the line. The syntax is:<br />
<br />
<pre><br />
First address:Second address:Optional third address:etc<br />
~Popup title~Popup text~Line color~Line opacity~Line thickness<br />
</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:lines=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris~Amsterdam to Paris line~I am a text~green~0.42~10<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
</pre><br />
<br />
{{#display_map:lines=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris~Amsterdam to Paris line~I am a text~green~0.42~10<br />
| scrollwheelzoom=off<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
<br />
=== Polygons ===<br />
<br />
Via the <code>polygons</code> parameter you can display polygons on the map. Each polygons has at least two locations. As with markers you can specify a popup title and text. You can also specify the looks of the polygon. The syntax is:<br />
<br />
<pre><br />
First address:Second address:Optional third address<br />
~Popup title~Popup text~Border color~Border opacity~Border thickness~Fill color~Fill opacity<br />
~Show only on hover<br />
</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:polygons=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris:Frankfurt~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
</pre><br />
<br />
{{#display_map:polygons=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris:Frankfurt~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| scrollwheelzoom=off<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
<br />
=== Circles ===<br />
<br />
Via the <code>circles</code> parameter you can display circles on the map. Each circles has a center and a diameter. You can specify the popup title and text and the looks of the circle. The syntax is:<br />
<br />
<pre>Address of the center:Diameter~Popup title~Popup text~Border color~Border opacity~Border thickness~Fill color~Fill opacity</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:circles=<br />
Amsterdam:500;<br />
Amsterdam:100~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| zoom=14<br />
| service=google<br />
| center=Amsterdam<br />
}}<br />
</pre><br />
<br />
{{#display_map:circles=<br />
Amsterdam:500;<br />
Amsterdam:100~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| scrollwheelzoom=off<br />
| zoom=14<br />
| service=google<br />
| center=Amsterdam<br />
}}<br />
<br />
=== Rectangles ===<br />
<br />
Via the <code>rectangles</code> parameter you can display rectangles on the map. Each rectangle has a North East location and a South West location. You can specify the popup title and text and the looks of the rectangle. The syntax is:<br />
<br />
<pre><br />
North East location:South West location<br />
~Popup title~Popup text~Border color~Border opacity~Border thickness~Fill color~Fill opacity<br />
</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:rectangles=<br />
Berlin:Brussels;<br />
Amsterdam:London~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
</pre><br />
<br />
{{#display_map:rectangles=<br />
Berlin:Brussels;<br />
Amsterdam:London~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| scrollwheelzoom=off<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
<br />
== Alternative syntax ==<br />
<br />
When you have many customized markers, using the <code>#display_map</code> parser function can get unwieldy. For this reason you can also use the <code><nowiki><display_map></nowiki></code> tag. It has all the same parameters as the parser function, the only difference is the syntax. Each location goes own its own line and they do not need to be separated with a semicolon.<br />
<br />
Example:<br />
<br />
<pre><br />
<display_map height="150px" scrollwheelzoom="off" service="google"><br />
Gent, Belgie~The city Ghent~Ghent is awesome~ ~ ~Ghent<br />
Brussel~The city Brussel~The capital of Belgium~ ~ ~Brussels<br />
Antwerp~The city Antwerp~ ~ ~ ~Antwerp<br />
</display_map><br />
</pre><br />
<br />
<display_map height="150px" scrollwheelzoom="off" service="google"><br />
Gent, Belgie~The city Ghent~Ghent is awesome~ ~ ~Ghent<br />
Brussel~The city Brussel~The capital of Belgium~ ~ ~Brussels<br />
Antwerp~The city Antwerp~ ~ ~ ~Antwerp<br />
</display_map></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:Navigation&diff=590
Template:Navigation
2022-06-06T00:10:21Z
<p>Jeroen De Dauw: </p>
<hr />
<div><div role="navigation" class="navbox" style="padding:3px"><br />
<table class="nowraplinks navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><br />
<tr><br />
<th scope="col" class="navbox-title" colspan="3" style="text-align:center;">[[Maps for MediaWiki|Maps documentation]]</th><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">For admins</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Installation]]</li><br />
<li>[[Configuration]]</li><br />
<li>[[Sites that use Maps|Sites using Maps]]</li><br />
<li>[[Support]]</li><br />
<li>[[Version history]]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Request a feature]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Report a bug]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps Source code]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Leaflet Maps</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Leaflet maps|Displaying maps]]</li><br />
<li>[[Customizing Leaflet maps|Customizing maps]]</li><br />
<li>[[Leaflet Maps examples|Leaflet examples]]</li><br />
<li>[[Leaflet SMW queries|SMW queries]]</li><br />
<li>[[Visual Leaflet editor|Visual editor]]</li><br />
<li>[[Leaflet GeoJSON|GeoJSON]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Google Maps</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Google Maps|Displaying maps]]</li><br />
<li>[[Customizing Google Maps|Customizing maps]]</li><br />
<li>[[Google Maps examples|Google Maps examples]]</li><br />
<li>[[Google Maps SMW queries|SMW queries]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Structured data</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Semantic MediaWiki]]</li><br />
<li>[[Cargo]]</li><br />
<li>[[Page Forms]]</li><br />
<li>[[Customizing query results]]</li><br />
<li>[[Distance queries]]</li><br />
<li>[[Compound queries]]</li><br />
<li>[[KML export]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Parser functions</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Display map function|#display_map]]</li><br />
<li>[[Geocode function|#geocode]]</li><br />
<li>[[Coordinates function|#coordinates]]</li><br />
<li>[[Distance function|#distance]]</li><br />
<li>[[Geodistance function|#geodistance]]</li><br />
<li>[[Finddestination function|#finddestination]]</li><br />
<li>[[Documentation function|#mapsdoc]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<td class="navbox-abovebelow" colspan="3" style="text-align:center;"><br />
<div>Get your wiki today via [https://www.pro.wiki/ ProWiki]: [https://www.pro.wiki/ Managed MediaWiki hosting] by [https://professional.wiki Professional.Wiki], the maintainer of Maps.</div><br />
</td><br />
</tr><br />
</table><br />
</div></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:City_Popup&diff=582
Template:City Popup
2022-04-06T12:45:06Z
<p>Jeroen De Dauw: </p>
<hr />
<div><includeonly>The city '''[[{{{fulltitle}}}|{{{title}}}]]''' is located in [[{{{Located in}}}]].<br />
<br />
It has a population of {{{Population}}} and surface area of {{{Surface area}}} km²</includeonly></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:City_Popup&diff=581
Template:City Popup
2022-04-06T12:45:01Z
<p>Jeroen De Dauw: </p>
<hr />
<div><includeonly>The city '''[[{{{fulltitle}}}|{{{title}}}]]''' is located in [[{{{Located in}}}]].<br />
<br />
It has a population of {{{Population}}} and surface area of {{{Surface area}}} k²</includeonly></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=580
Leaflet Maps examples
2022-03-18T12:39:36Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on a marker to copy its coordinates. <br />
<br />
<pre><br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong; Macau<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=579
Leaflet Maps examples
2022-03-18T12:39:06Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on a marker to copy its coordinates. <br />
<br />
<pre><br />
{{#leaflet:Hong Kong<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=578
Google Maps examples
2022-03-18T12:22:29Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=Europe<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Europe<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
Right-click on the map to copy the coordinates. <br />
<br />
<pre><br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|zoom=11<br />
}}<br />
</pre><br />
<br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=11<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=577
Google Maps examples
2022-03-18T12:21:57Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=Europe<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Europe<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
<pre><br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|zoom=11<br />
}}<br />
</pre><br />
<br />
{{#google_maps:Hong Kong<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=11<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=576
Leaflet Maps examples
2022-03-18T12:19:57Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}<br />
<br />
== Copy coords ==<br />
<br />
<pre><br />
{{#leaflet:Hong Kong<br />
|copycoords=yes<br />
|zoom=10<br />
}}<br />
</pre><br />
<br />
{{#leaflet:Hong Kong<br />
|copycoords=yes<br />
|height=300px<br />
|scrollzoom=off<br />
|zoom=10<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_Maps_examples&diff=574
Leaflet Maps examples
2022-02-22T12:18:28Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Leaflet Maps|Leaflet maps]] can be [[Customizing Leaflet Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Leaflet Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Leaflet maps]]<br />
<br />
== Layers ==<br />
<br />
<pre><br />
{{#display_map:<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|layers=OpenTopoMap,OpenStreetMap<br />
|zoom=1<br />
}}<br />
<br />
'''Note:''' [https://github.com/JeroenDeDauw/Maps/blob/master/DefaultSettings.php#L163-L226 Maps code repository â List of available layers.]<br />
<br />
== Overlays ==<br />
<br />
<pre><br />
{{#display_map:Calais; Dover<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
</pre><br />
<br />
{{#display_map:Calais; Dover<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|overlaylayers=OpenSeaMap<br />
}}<br />
<br />
== Fullscreen ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|fullscreen=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|fullscreen=on<br />
}}<br />
<br />
== Resizable ==<br />
<br />
<pre><br />
{{#display_map:New York City<br />
|resizable=on<br />
}}<br />
</pre><br />
<br />
{{#display_map:New York City<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|resizable=on<br />
}}<br />
<br />
== Click target ==<br />
<br />
<pre><br />
{{#display_map:Berlin<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
</pre><br />
<br />
{{#display_map:Berlin<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|clicktarget=https://www.google.com/maps/@%lat%,%long%,8z<br />
|zoom=8<br />
}}<br />
<br />
== Image layers ==<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
}}<br />
<br />
<pre><br />
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}<br />
</pre><br />
<br />
{{#display_map:<br />
|image layers=NewYorkSubway.jpg<br />
|service=leaflet<br />
|height=300px<br />
|scrollzoom=off<br />
|geojson=NewYorkSubway<br />
|zoom=3<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Displaying_Google_maps&diff=573
Displaying Google maps
2022-02-19T14:20:09Z
<p>Jeroen De Dauw: </p>
<hr />
<div>Maps supports embedding of dynamic maps using Google Maps.<br />
<br />
== Basic syntax ==<br />
<br />
Displaying maps is done with the <code>#display_map</code> parser function. <br />
<br />
<pre><nowiki><br />
{{#display_map:center=Brandenburg Gate Berlin}}<br />
</nowiki></pre><br />
<br />
{{#display_map:center=Brandenburg Gate, Berlin, Germany|scrollzoom=off|zoom=15}}<br />
<br />
The above Maps uses [[Displaying_Leaflet_Maps|Leaflet]] rather than Google Maps. This is because [[Installation#Configuration|by default]] Maps uses Leaflet.<br />
<br />
To use Google Maps instead of Leaflet, add <code>service=google</code> as shown below.<br />
<br />
<pre><nowiki><br />
{{#display_map:center=Brandenburg Gate Berlin | service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:center=Brandenburg Gate, Berlin, Germany|scrollzoom=off|zoom=15|service=google}}<br />
<br />
If you want to use Google Maps through your wiki, you can [[Installation#Configuration|change the default mapping service]].<br />
<br />
Alternatively you can use the <code>#google_maps</code> parser function, available since Maps 7.19:<br />
<br />
<pre><nowiki><br />
{{#google_maps:center=Brandenburg Gate Berlin}}<br />
</nowiki></pre><br />
<br />
{{#google_maps:center=Brandenburg Gate, Berlin, Germany|scrollzoom=off|zoom=15}}<br />
<br />
== Google Maps API key ==<br />
<br />
If you get the below error when displaying a Google Maps map, ask a wiki administrator to [[Installation#Configuration|configure the Google Maps API key]].<br />
<br />
[[File:GoogleMapsError.png|link=]]<br />
<br />
== Customization ==<br />
<br />
Google Maps maps can be customized using various parameters. <br />
<br />
<pre><nowiki><br />
{{#display_map:center=Berlin|width=400|height=250|service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:center=Berlin|width=400|height=250|scrollzoom=off|zoom=11|service=google}}<br />
<br />
See [[Customizing Leaflet Maps]] for a full overview of customization parameter, including examples.<br />
<br />
== Displaying data ==<br />
<br />
=== Markers ===<br />
<br />
<pre><nowiki><br />
{{#display_map:Brandenburg Gate Berlin | service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:Brandenburg Gate, Berlin, Germany|scrollzoom=off|service=google}}<br />
<br />
You can display multiple locations by separating them with semicolons. And it is possible to use [[coordinates]] instead of location names.<br />
<br />
<pre><nowiki><br />
{{#display_map:Berlin; Brussel; 40° 42' 46.02" N, 74° 0' 21.39" W | service=google}}<br />
</nowiki></pre><br />
<br />
{{#display_map:Berlin; Brussel; 40° 42' 46.02" N, 74° 0' 21.39" W|scrollzoom=off|service=google}}<br />
<br />
You can customize the markers per location. The syntax is:<br />
<br />
<pre>Location~Popup title~Popup text~File:CustomIcon~Group~Inline label~File:VisitedIcon</pre><br />
<br />
* '''Location''': the location where to display the marker. Both [[coordinates]] and addresses are supported<br />
* '''Popup title''' and '''Popup text''': optional content for a popup shown when the marker is clicked. No popup is shown if both are empty<br />
* '''File:CustomIcon''': optional name of an image to display instead of the default marker<br />
* '''Group''': <br />
* '''Inline label''': optional label shown next to the marker. Currently only shown when using Google Maps<br />
* '''File:VisitedIcon''': optional name of an image to display as marker when the marker is clicked<br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:<br />
Berlin~The city Berlin~Berlin is a really nice city and there is plenty of Club Mate~Red-marker.png;<br />
Amsterdam~The city Amsterdam~Amsterdam is the capital of The Netherlands~Green-marker.png<br />
| service=google<br />
}}<br />
</pre><br />
<br />
{{#display_map:<br />
Berlin~The city Berlin~Berlin is a really nice city and there is plenty of Club Mate~Red-marker.png;<br />
Amsterdam~The city Amsterdam~Amsterdam is the capital of The Netherlands~Green-marker.png<br />
| scrollwheelzoom=off<br />
| service=google<br />
}}<br />
<br />
=== Lines ===<br />
<br />
Via the <code>lines</code> parameter you can display lines on the map. Each line has at least two locations. As with markers you can specify a popup title and text. You can also specify the looks of the line. The syntax is:<br />
<br />
<pre><br />
First address:Second address:Optional third address:etc<br />
~Popup title~Popup text~Line color~Line opacity~Line thickness<br />
</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:lines=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris~Amsterdam to Paris line~I am a text~green~0.42~10<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
</pre><br />
<br />
{{#display_map:lines=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris~Amsterdam to Paris line~I am a text~green~0.42~10<br />
| scrollwheelzoom=off<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
<br />
=== Polygons ===<br />
<br />
Via the <code>polygons</code> parameter you can display polygons on the map. Each polygons has at least two locations. As with markers you can specify a popup title and text. You can also specify the looks of the polygon. The syntax is:<br />
<br />
<pre><br />
First address:Second address:Optional third address<br />
~Popup title~Popup text~Border color~Border opacity~Border thickness~Fill color~Fill opacity<br />
~Show only on hover<br />
</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:polygons=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris:Frankfurt~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
</pre><br />
<br />
{{#display_map:polygons=<br />
Berlin:Brussels:London;<br />
Amsterdam:Paris:Frankfurt~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| scrollwheelzoom=off<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
<br />
=== Circles ===<br />
<br />
Via the <code>circles</code> parameter you can display circles on the map. Each circles has a center and a diameter. You can specify the popup title and text and the looks of the circle. The syntax is:<br />
<br />
<pre>Address of the center:Diameter~Popup title~Popup text~Border color~Border opacity~Border thickness~Fill color~Fill opacity</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:circles=<br />
Amsterdam:500;<br />
Amsterdam:100~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| zoom=14<br />
| service=google<br />
| center=Amsterdam<br />
}}<br />
</pre><br />
<br />
{{#display_map:circles=<br />
Amsterdam:500;<br />
Amsterdam:100~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| scrollwheelzoom=off<br />
| zoom=14<br />
| service=google<br />
| center=Amsterdam<br />
}}<br />
<br />
=== Rectangles ===<br />
<br />
Via the <code>rectangles</code> parameter you can display rectangles on the map. Each rectangle has a North East location and a South West location. You can specify the popup title and text and the looks of the rectangle. The syntax is:<br />
<br />
<pre><br />
North East location:South West location<br />
~Popup title~Popup text~Border color~Border opacity~Border thickness~Fill color~Fill opacity<br />
</pre><br />
<br />
Example:<br />
<br />
<pre><br />
{{#display_map:rectangles=<br />
Berlin:Brussels;<br />
Amsterdam:London~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
</pre><br />
<br />
{{#display_map:rectangles=<br />
Berlin:Brussels;<br />
Amsterdam:London~I am a title~And I am a description~green~0.7~10~blue~0.5<br />
| scrollwheelzoom=off<br />
| service=google<br />
| center=Brussels<br />
| zoom=6<br />
}}<br />
<br />
== Alternative syntax ==<br />
<br />
When you have many customized markers, using the <code>#display_map</code> parser function can get unwieldy. For this reason you can also use the <code><nowiki><display_map></nowiki></code> tag. It has all the same parameters as the parser function, the only difference is the syntax. Each location goes own its own line and they do not need to be separated with a semicolon.<br />
<br />
Example:<br />
<br />
<pre><br />
<display_map height="150px" scrollwheelzoom="off" service="google"><br />
Gent, Belgie~The city Ghent~Ghent is awesome~ ~ ~Ghent<br />
Brussel~The city Brussel~The capital of Belgium~ ~ ~Brussels<br />
Antwerp~The city Antwerp~ ~ ~ ~Antwerp<br />
</display_map><br />
</pre><br />
<br />
<display_map height="150px" scrollwheelzoom="off" service="google"><br />
Gent, Belgie~The city Ghent~Ghent is awesome~ ~ ~Ghent<br />
Brussel~The city Brussel~The capital of Belgium~ ~ ~Brussels<br />
Antwerp~The city Antwerp~ ~ ~ ~Antwerp<br />
</display_map></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=556
Google Maps examples
2022-02-08T18:52:05Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=Europe<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Europe<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=3<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=555
Google Maps examples
2022-02-08T18:51:18Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=Europe<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Europe<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=554
Google Maps examples
2022-02-08T18:51:02Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=derbyshire<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| center=Europe<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=derbyshire<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| center=Europe<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=553
Google Maps examples
2022-02-08T18:49:25Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=derbyshire<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=7<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=derbyshire<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz<br />
| zoom=7<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Sites_that_use_Maps&diff=552
Sites that use Maps
2022-02-07T18:58:20Z
<p>Jeroen De Dauw: </p>
<hr />
<div>=== Public wikis ===<br />
<br />
Maps is used on [https://wikiapiary.com/wiki/Extension:Maps over 1000 public wikis]. This page lists some of them.<br />
<br />
If you add your own wiki, please link to a page using Maps in some way. This list is meant to provide real world examples.<br />
<br />
<div class="row"><br />
<div class="col-md-6"><br />
; Uncategorized wikis<br />
<br />
* [https://www.transit.wiki/Bay_Area_Rapid_Transit Transit.Wiki]<br />
* [https://www.sourcewatch.org SourceWatch.org]<br />
* [http://baugeschichte.at Baugeschichte]<br />
* [https://www.caf-network.eu/CAF_Network CAF Network]<br />
* [https://www.semantic-mediawiki.org/ Semantic MediaWiki] ([https://www.semantic-mediawiki.org/wiki/SMWCon#Locations Locations of held SMWCons])<br />
* [http://www.wikiparques.org/wiki/ Wikiparques]<br />
* [https://www.wikilawschool.net/wiki/Data_Visualizations/Law_School_Map Wiki Law School]<br />
* [https://www.grazwiki.at/Hauptseite/en grazwiki.at]<br />
* [https://savemlak.jp/ saveMLAK]<br />
* [https://familypedia.wikia.org Familypedia]<br />
* [https://www.appropedia.org/Map Appropedia]<br />
</div><br />
<br />
<div class="col-md-6"><br />
; City wikis<br />
<br />
* [https://wuerzburgwiki.de/ Würzburg-Wiki] ([https://wuerzburgwiki.de/wiki/Diskotheken#Kartenausschnitt Overview of discotheques])<br />
* [https://deurnewiki.nl/wiki/index.php?title=Vloeiakker Deurne Wiki]<br />
* [http://www.wiki-rennes.fr Wiki-Rennes]<br />
* [https://www.chamapedia.ch Chamapedia] ([https://www.chamapedia.ch/wiki/Wegkreuze Overview of roadside calvaries]) <br />
* [https://www.aw-wiki.de AW-Wiki] ([https://www.aw-wiki.de/index.php/Jakob-Rausch-Stra%C3%9Fe_(Ahrweiler) Course of a road])<br />
* [http://www.wiki-brest.net Wiki-Brest]<br />
* [https://www.wetzipedia.ch Wetzipedia] ([https://www.wetzipedia.ch/index.php/Datei:2020_Mai_04_Bahnhofstrasse_302.jpg Photo location of a file])<br />
</div><br />
</div><br />
<br />
=== Organizations ===<br />
<br />
Maps is also used by many organizations, often on private wikis.<br />
<br />
* NASA - uses Maps on [https://www.semantic-mediawiki.org/wiki/EVA_Wiki EVA Wiki]</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Sites_that_use_Maps&diff=551
Sites that use Maps
2022-02-07T18:58:13Z
<p>Jeroen De Dauw: </p>
<hr />
<div>=== Public wikis ===<br />
<br />
Maps is used on [https://wikiapiary.com/wiki/Extension:Maps over 1000 public wikis]. This page lists some of them.<br />
<br />
If you add your own wiki, please link to a page using Maps in some way. This list is meant to provide real world examples.<br />
<br />
<div class="row"><br />
<div class="col-md-6"><br />
; Uncategorized wikis<br />
<br />
* [https://www.transit.wiki/Bay_Area_Rapid_Transit Transit.Wiki]<br />
* [https://www.sourcewatch.org SourceWatch.org]<br />
* [http://baugeschichte.at Baugeschichte]<br />
* [https://www.caf-network.eu/CAF_Network CAF Network]<br />
* [https://www.semantic-mediawiki.org/ Semantic MediaWiki] ([https://www.semantic-mediawiki.org/wiki/SMWCon#Locations Locations of held SMWCons])<br />
* [http://www.wikiparques.org/wiki/ Wikiparques]<br />
* [https://www.wikilawschool.net/wiki/Data_Visualizations/Law_School_Map Wiki Law School]<br />
* [https://www.grazwiki.at/Hauptseite/en grazwiki.at]<br />
* [https://savemlak.jp/ saveMLAK]<br />
* [https://familypedia.wikia.org Familypedia]<br />
* [https://www.appropedia.org/Map Appropedia]<br />
</div><br />
<br />
<div class="col-md-6"><br />
; City wikis<br />
<br />
* [https://wuerzburgwiki.de/ -Wiki] ([https://wuerzburgwiki.de/wiki/Diskotheken#Kartenausschnitt Overview of discotheques])<br />
* [https://deurnewiki.nl/wiki/index.php?title=Vloeiakker Deurne Wiki]<br />
* [http://www.wiki-rennes.fr Wiki-Rennes]<br />
* [https://www.chamapedia.ch Chamapedia] ([https://www.chamapedia.ch/wiki/Wegkreuze Overview of roadside calvaries]) <br />
* [https://www.aw-wiki.de AW-Wiki] ([https://www.aw-wiki.de/index.php/Jakob-Rausch-Stra%C3%9Fe_(Ahrweiler) Course of a road])<br />
* [http://www.wiki-brest.net Wiki-Brest]<br />
* [https://www.wetzipedia.ch Wetzipedia] ([https://www.wetzipedia.ch/index.php/Datei:2020_Mai_04_Bahnhofstrasse_302.jpg Photo location of a file])<br />
</div><br />
</div><br />
<br />
=== Organizations ===<br />
<br />
Maps is also used by many organizations, often on private wikis.<br />
<br />
* NASA - uses Maps on [https://www.semantic-mediawiki.org/wiki/EVA_Wiki EVA Wiki]</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:Navigation&diff=550
Template:Navigation
2022-02-07T14:00:03Z
<p>Jeroen De Dauw: </p>
<hr />
<div><div role="navigation" class="navbox" style="padding:3px"><br />
<table class="nowraplinks navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><br />
<tr><br />
<th scope="col" class="navbox-title" colspan="3" style="text-align:center;">[[Maps for MediaWiki|Maps documentation]]</th><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">For admins</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Installation]]</li><br />
<li>[[Configuration]]</li><br />
<li>[[Sites that use Maps|Sites using Maps]]</li><br />
<li>[[Support]]</li><br />
<li>[[Version history]]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Request a feature]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Report a bug]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps Source code]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Leaflet Maps</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Leaflet maps|Displaying maps]]</li><br />
<li>[[Customizing Leaflet maps|Customizing maps]]</li><br />
<li>[[Leaflet Maps examples|Leaflet examples]]</li><br />
<li>[[Leaflet SMW queries|SMW queries]]</li><br />
<li>[[Visual Leaflet editor|Visual editor]]</li><br />
<li>[[Leaflet GeoJSON|GeoJSON]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Google Maps</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Google Maps|Displaying maps]]</li><br />
<li>[[Customizing Google Maps|Customizing maps]]</li><br />
<li>[[Google Maps examples|Google Maps examples]]</li><br />
<li>[[Google Maps SMW queries|SMW queries]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Structured data</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Semantic MediaWiki]]</li><br />
<li>[[Cargo]]</li><br />
<li>[[Page Forms]]</li><br />
<li>[[Customizing query results]]</li><br />
<li>[[Distance queries]]</li><br />
<li>[[Compound queries]]</li><br />
<li>[[KML export]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Parser functions</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Display map function|#display_map]]</li><br />
<li>[[Geocode function|#geocode]]</li><br />
<li>[[Coordinates function|#coordinates]]</li><br />
<li>[[Distance function|#distance]]</li><br />
<li>[[Geodistance function|#geodistance]]</li><br />
<li>[[Finddestination function|#finddestination]]</li><br />
<li>[[Documentation function|#mapsdoc]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<td class="navbox-abovebelow" colspan="3" style="text-align:center;"><br />
<div>Professional support and custom development available via [https://professional.wiki Professional.Wiki], the maintainer of Maps.</div><br />
</td><br />
</tr><br />
</table><br />
</div></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=MediaWiki:Common.css&diff=549
MediaWiki:Common.css
2022-02-07T13:59:34Z
<p>Jeroen De Dauw: </p>
<hr />
<div>/* Hide feature bloat that can't even be disabled via configuration */<br />
<br />
.toctogglespan,<br />
.patrollink,<br />
.mw-editsection,<br />
.mw-redirectedfrom,<br />
div.smwrdflink,<br />
span.smwsearch,<br />
div.mw-indicator-browse {<br />
display: none !important;<br />
}<br />
<br />
<br />
<br />
/* Maps */<br />
<br />
div.maps-map, div.mapCanvas {<br />
margin-bottom: 16px;<br />
}<br />
<br />
<br />
/* For MediaWiki:Hf-nsfooter-, borrowed from WP */<br />
<br />
.navbox {<br />
box-sizing:border-box;<br />
border:1px solid #a2a9b1;<br />
width:100%;<br />
clear:both;<br />
font-size:88%;<br />
text-align:center;<br />
padding:1px;<br />
margin:1em auto 0<br />
}<br />
.navbox .navbox {<br />
margin-top:0<br />
}<br />
.navbox + .navbox {<br />
margin-top:-1px<br />
}<br />
.navbox-inner,<br />
.navbox-subgroup {<br />
width:100%<br />
}<br />
.navbox-group,<br />
.navbox-title,<br />
.navbox-abovebelow {<br />
padding:0.25em 1em;<br />
line-height:1.5em;<br />
text-align:center<br />
}<br />
th.navbox-group {<br />
white-space:nowrap;<br />
text-align:right<br />
}<br />
.navbox,<br />
.navbox-subgroup {<br />
background-color:#fdfdfd<br />
}<br />
.navbox-list {<br />
line-height:1.5em;<br />
border-color:#fdfdfd<br />
}<br />
tr + tr > .navbox-abovebelow,<br />
tr + tr > .navbox-group,<br />
tr + tr > .navbox-image,<br />
tr + tr > .navbox-list {<br />
border-top:2px solid #fdfdfd<br />
}<br />
.navbox th,<br />
.navbox-title {<br />
background-color:#ccccff;<br />
}<br />
.navbox-abovebelow,<br />
th.navbox-group,<br />
.navbox-subgroup .navbox-title {<br />
background-color:#ddddff<br />
}<br />
.navbox-subgroup .navbox-group,<br />
.navbox-subgroup .navbox-abovebelow {<br />
background-color:#e6e6ff<br />
}<br />
.navbox-even {<br />
background-color:#f7f7f7<br />
}<br />
.navbox-odd {<br />
background-color:transparent<br />
}<br />
.navbox .hlist td dl,<br />
.navbox .hlist td ol,<br />
.navbox .hlist td ul,<br />
.navbox td.hlist dl,<br />
.navbox td.hlist ol,<br />
.navbox td.hlist ul {<br />
padding:0.125em 0<br />
}<br />
.navbar {<br />
display:inline;<br />
font-size:88%;<br />
font-weight:normal<br />
}<br />
.navbar ul {<br />
display:inline-block;<br />
white-space:nowrap<br />
}<br />
.mw-body-content .navbar ul {<br />
line-height:inherit<br />
}<br />
.navbar li {<br />
word-spacing:-0.125em<br />
}<br />
.navbar.mini li abbr[title] {<br />
font-variant:small-caps;<br />
border-bottom:none;<br />
text-decoration:none;<br />
cursor:inherit<br />
}<br />
.infobox .navbar {<br />
font-size:100%<br />
}<br />
.navbox .navbar {<br />
display:block;<br />
font-size:100%<br />
}<br />
.navbox-title .navbar {<br />
float:left;<br />
text-align:left;<br />
margin-right:0.5em<br />
}<br />
<br />
.nowrap,<br />
.nowraplinks a {<br />
white-space:nowrap<br />
}<br />
<br />
.hlist li {<br />
margin:0;<br />
display:inline;<br />
}<br />
<br />
.hlist li:after {<br />
content:" · ";<br />
font-weight:bold<br />
}<br />
<br />
.hlist li:last-child:after {<br />
content:none<br />
}<br />
<br />
.hlist dl,<br />
.hlist ol,<br />
.hlist ul {<br />
margin:0;<br />
padding:0<br />
}<br />
.hlist dd,<br />
.hlist dt,<br />
.hlist li {<br />
margin:0;<br />
display:inline;<br />
}<br />
<br />
/* ************ */</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=MediaWiki:Common.css&diff=548
MediaWiki:Common.css
2022-02-07T13:59:23Z
<p>Jeroen De Dauw: </p>
<hr />
<div>/* Hide feature bloat that can't even be disabled via configuration */<br />
<br />
.toctogglespan,<br />
.patrollink,<br />
.mw-editsection,<br />
.mw-redirectedfrom,<br />
div.smwrdflink,<br />
span.smwsearch,<br />
div.mw-indicator-browse {<br />
display: none !important;<br />
}<br />
<br />
<br />
<br />
/* Maps */<br />
<br />
div.maps-map, div.mapCanvas {<br />
margin-bottom: 16px;<br />
}<br />
<br />
<br />
/* For MediaWiki:Hf-nsfooter-, borrowed from WP */<br />
<br />
.navbox {<br />
box-sizing:border-box;<br />
border:1px solid #a2a9b1;<br />
width:100%;<br />
clear:both;<br />
font-size:88%;<br />
text-align:center;<br />
padding:1px;<br />
margin:1em auto 0<br />
}<br />
.navbox .navbox {<br />
margin-top:0<br />
}<br />
.navbox + .navbox {<br />
margin-top:-1px<br />
}<br />
.navbox-inner,<br />
.navbox-subgroup {<br />
width:100%<br />
}<br />
.navbox-group,<br />
.navbox-title,<br />
.navbox-abovebelow {<br />
padding:0.25em 1em;<br />
line-height:1.5em;<br />
text-align:center<br />
}<br />
th.navbox-group {<br />
white-space:nowrap;<br />
text-align:right<br />
}<br />
.navbox,<br />
.navbox-subgroup {<br />
background-color:#fdfdfd<br />
}<br />
.navbox-list {<br />
line-height:1.5em;<br />
border-color:#fdfdfd<br />
}<br />
tr + tr > .navbox-abovebelow,<br />
tr + tr > .navbox-group,<br />
tr + tr > .navbox-image,<br />
tr + tr > .navbox-list {<br />
border-top:2px solid #fdfdfd<br />
}<br />
.navbox th,<br />
.navbox-title {<br />
background-color:#ccccff;<br />
}<br />
.navbox-abovebelow,<br />
th.navbox-group,<br />
.navbox-subgroup .navbox-title {<br />
background-color:#ddddff<br />
}<br />
.navbox-subgroup .navbox-group,<br />
.navbox-subgroup .navbox-abovebelow {<br />
background-color:#e6e6ff<br />
}<br />
.navbox-even {<br />
background-color:#f7f7f7<br />
}<br />
.navbox-odd {<br />
background-color:transparent<br />
}<br />
.navbox .hlist td dl,<br />
.navbox .hlist td ol,<br />
.navbox .hlist td ul,<br />
.navbox td.hlist dl,<br />
.navbox td.hlist ol,<br />
.navbox td.hlist ul {<br />
padding:0.125em 0<br />
}<br />
.navbar {<br />
display:inline;<br />
font-size:88%;<br />
font-weight:normal<br />
}<br />
.navbar ul {<br />
display:inline-block;<br />
white-space:nowrap<br />
}<br />
.mw-body-content .navbar ul {<br />
line-height:inherit<br />
}<br />
.navbar li {<br />
word-spacing:-0.125em<br />
}<br />
.navbar.mini li abbr[title] {<br />
font-variant:small-caps;<br />
border-bottom:none;<br />
text-decoration:none;<br />
cursor:inherit<br />
}<br />
.infobox .navbar {<br />
font-size:100%<br />
}<br />
.navbox .navbar {<br />
display:block;<br />
font-size:100%<br />
}<br />
.navbox-title .navbar {<br />
float:left;<br />
text-align:left;<br />
margin-right:0.5em<br />
}<br />
<br />
.nowrap,<br />
.nowraplinks a {<br />
white-space:nowrap<br />
}<br />
<br />
.hlist li {<br />
margin:0;<br />
display:inline;<br />
}<br />
<br />
.hlist li:after {<br />
content:"·";<br />
font-weight:bold<br />
}<br />
<br />
.hlist li:last-child:after {<br />
content:none<br />
}<br />
<br />
.hlist dl,<br />
.hlist ol,<br />
.hlist ul {<br />
margin:0;<br />
padding:0<br />
}<br />
.hlist dd,<br />
.hlist dt,<br />
.hlist li {<br />
margin:0;<br />
display:inline;<br />
}<br />
<br />
/* ************ */</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:Navigation&diff=547
Template:Navigation
2022-02-07T13:58:36Z
<p>Jeroen De Dauw: </p>
<hr />
<div><div role="navigation" class="navbox" style="padding:3px"><br />
<table class="nowraplinks navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><br />
<tr><br />
<th scope="col" class="navbox-title" colspan="3" style="text-align:center;">[[Maps for MediaWiki|Maps documentation]]</th><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">For admins</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Installation]]</li><br />
<li>[[Configuration]]</li><br />
<li>[[Sites that use Maps|Sites using Maps]]</li><br />
<li>[[Support]]</li><br />
<li>[[Version history]]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Request a feature]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Report a bug]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps Source code]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Leaflet Maps</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Leaflet maps|Displaying maps]]</li><br />
<li>[[Customizing Leaflet maps|Customizing maps]]</li><br />
<li>[[Leaflet Maps examples|Leaflet examples]]</li><br />
<li>[[Leaflet SMW queries|SMW queries]]</li><br />
<li>[[Visual Leaflet editor|Visual editor]]</li><br />
<li>[[Leaflet GeoJSON|GeoJSON]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Google Maps</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Google Maps|Displaying maps]]</li><br />
<li>[[Customizing Google Maps|Customizing maps]]</li><br />
<li>[[Google Maps examples|Google Maps examples]]</li><br />
<li>[[Google Maps SMW queries|SMW queries]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Structured data</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Semantic MediaWiki]]</li><br />
<li>[[Cargo]]</li><br />
<li>[[Page Forms]]</li><br />
<li>[[Customizing query results]]</li><br />
<li>[[Distance queries]]</li><br />
<li>[[Compound queries]]</li><br />
<li>[[KML export]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Parser functions</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Display map function|#display_map]]</li><br />
<li>[[Geocode function|#geocode]]</li><br />
<li>[[Coordinates function|#coordinates]]</li><br />
<li>[[Distance function|#distance]]</li><br />
<li>[[Geodistance function|#geodistance]]</li><br />
<li>[[Finddestination function|#finddestination]]</li><br />
<li>[[Documentation function|#mapsdoc]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<td class="navbox-abovebelow" colspan="3" style="text-align:center;"><br />
<div>Professional support and custom development available via [https://professional.wiki Professional.Wiki], the maintainer of Maps.</div><br />
</td><br />
</tr><br />
</table><br />
<br />
</div></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:Navigation&diff=546
Template:Navigation
2022-02-07T13:53:48Z
<p>Jeroen De Dauw: Undo revision 545 by Jeroen De Dauw (talk)</p>
<hr />
<div><div role="navigation" class="navbox" style="padding:3px"><br />
<table class="nowraplinks navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><br />
<tr><br />
<th scope="col" class="navbox-title" colspan="3" style="text-align:center;">[[Maps for MediaWiki|Maps documentation]]</th><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">For admins</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Installation]]</li><br />
<li>[[Configuration]]</li><br />
<li>[[Sites that use Maps|Sites using Maps]]</li><br />
<li>[[Support]]</li><br />
<li>[[Version history]]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Request a feature]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Report a bug]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps Source code]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Leaflet Maps</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Leaflet maps|Displaying maps]]</li><br />
<li>[[Customizing Leaflet maps|Customizing maps]]</li><br />
<li>[[Leaflet Maps examples|Leaflet examples]]</li><br />
<li>[[Leaflet SMW queries|SMW queries]]</li><br />
<li>[[Visual Leaflet editor|Visual editor]]</li><br />
<li>[[Leaflet GeoJSON|GeoJSON]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Google Maps</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Google Maps|Displaying maps]]</li><br />
<li>[[Customizing Google Maps|Customizing maps]]</li><br />
<li>[[Google Maps examples|Google Maps examples]]</li><br />
<li>[[Google Maps SMW queries|SMW queries]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Structured data</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Semantic MediaWiki]]</li><br />
<li>[[Cargo]]</li><br />
<li>[[Page Forms]]</li><br />
<li>[[Customizing query results]]</li><br />
<li>[[Distance queries]]</li><br />
<li>[[Compound queries]]</li><br />
<li>[[KML export]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Parser functions</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Display map function|#display_map]]</li><br />
<li>[[Geocode function|#geocode]]</li><br />
<li>[[Coordinates function|#coordinates]]</li><br />
<li>[[Distance function|#distance]]</li><br />
<li>[[Geodistance function|#geodistance]]</li><br />
<li>[[Finddestination function|#finddestination]]</li><br />
<li>[[Documentation function|#mapsdoc]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<td class="navbox-abovebelow" colspan="3" style="text-align:center;"><br />
<div>Professional support and custom development available via [https://professional.wiki Professional.Wiki], the maintainer of Maps.</div><br />
</td><br />
</tr><br />
</table><br />
</div></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Template:Navigation&diff=545
Template:Navigation
2022-02-07T13:53:35Z
<p>Jeroen De Dauw: Undo revision 381 by Jeroen De Dauw (talk)</p>
<hr />
<div><div role="navigation" class="navbox" style="padding:3px"><br />
<table class="nowraplinks navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><br />
<tr><br />
<th scope="col" class="navbox-title" colspan="3" style="text-align:center;">[[Maps for MediaWiki|Maps documentation]]</th><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">For admins</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Installation]]</li><br />
<li>[[Configuration]]</li><br />
<li>[[Sites that use Maps|Sites using Maps]]</li><br />
<li>[[Support]]</li><br />
<li>[[Version history]]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Request a feature]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps/issues Report a bug]</li><br />
<li>[https://github.com/JeroenDeDauw/Maps Source code]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Leaflet Maps</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Leaflet maps|Displaying maps]]</li><br />
<li>[[Customizing Leaflet maps|Customizing maps]]</li><br />
<li>[[Leaflet Maps examples|Leaflet examples]]</li><br />
<li>[[Leaflet SMW queries|SMW queries]]</li><br />
<li>[[Visual Leaflet editor|Visual editor]]</li><br />
<li>[[Leaflet GeoJSON|GeoJSON]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Google Maps</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Displaying Google Maps|Displaying maps]]</li><br />
<li>[[Customizing Google Maps|Customizing maps]]</li><br />
<li>[[Google Maps examples|Google Maps examples]]</li><br />
<li>[[Google Maps SMW queries|SMW queries]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Structured data</th><br />
<td class="navbox-list navbox-even hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Semantic MediaWiki]]</li><br />
<li>[[Page Forms]]</li><br />
<li>[[Customizing query results]]</li><br />
<li>[[Distance queries]]</li><br />
<li>[[Compound queries]]</li><br />
<li>[[Cargo]]</li><br />
<li>[[KML export]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<th scope="row" class="navbox-group" style="text-align:center;;width:1%">Parser functions</th><br />
<td class="navbox-list navbox-odd hlist" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0"><br />
<div style="padding:0 0.25em"><br />
<ul><br />
<li>[[Display map function|#display_map]]</li><br />
<li>[[Geocode function|#geocode]]</li><br />
<li>[[Coordinates function|#coordinates]]</li><br />
<li>[[Distance function|#distance]]</li><br />
<li>[[Geodistance function|#geodistance]]</li><br />
<li>[[Finddestination function|#finddestination]]</li><br />
<li>[[Documentation function|#mapsdoc]]</li><br />
</ul><br />
</div><br />
</td><br />
</tr><br />
<br />
<tr><br />
<td class="navbox-abovebelow" colspan="3" style="text-align:center;"><br />
<div>Professional support and custom development available via [https://professional.wiki Professional.Wiki], the maintainer of Maps.</div><br />
</td><br />
</tr><br />
</table><br />
</div></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Installation&diff=538
Installation
2021-07-29T22:45:39Z
<p>Jeroen De Dauw: </p>
<hr />
<div>This page is for wiki administrators that want to install the Maps extension. This is only possible with server access.<br />
<br />
== Installation ==<br />
<br />
Maps is installed using [https://getcomposer.org/ Composer] with [https://www.mediawiki.org/wiki/Composer MediaWiki's built-in support for Composer].<br />
<br />
=== Step 1/2: composer update ===<br />
<br />
On the command line, go to the base directory of your MediaWiki installation.<br />
<br />
If you are using MediaWiki 1.35 or later and PHP 7.4 or later, run the following two commands:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~9.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using MediaWiki 1.35 or later with PHP 7.3, run the following two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using an older version of MediaWiki or of PHP, then run these two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~7.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
=== Step 2/2: modify LocalSettings.php ===<br />
<br />
Add the following line to the end of your "LocalSettings.php" file:<br />
<br />
<syntaxhighlight lang="bash"><br />
wfLoadExtension( 'Maps' );<br />
</syntaxhighlight><br />
<br />
=== Verify installation success ===<br />
<br />
Check the "Special:Version" page on your wiki. If it lists Maps, then installation was successful.<br />
<br />
== Configuration ==<br />
<br />
Maps works out of the box without any configuration work being required. Below are some key configuration options that you might want to change. For a comprehensive overview of all settings, see [[Configuration|the configuration overview]].<br />
<br />
=== Mapping service ===<br />
<br />
The Maps extension supports displaying maps using multiple mapping services, including Google Maps, Leaflet and OpenLayers. At present the default is Leaflet, while in older versions of the extension it was Google Maps.<br />
<br />
If you do not wish to use the default, use the <code>$egMapsDefaultService</code> configuration parameter. Examples:<br />
<br />
* For Google Maps: <syntaxhighlight lang="php">$egMapsDefaultService = 'googlemaps3';</syntaxhighlight><br />
* For Leaflet: <syntaxhighlight lang="php">$egMapsDefaultService = 'leaflet';</syntaxhighlight><br />
<br />
When using Google Maps, you will need to provide your [https://developers.google.com/maps/documentation/javascript/get-api-key Google API key]:<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsGMaps3ApiKey = 'your-api-key';<br />
</syntaxhighlight><br />
<br />
=== Geocoding service ===<br />
<br />
The Maps extension supports [[Geocoding|geocoding]], the conversion of human readable addresses to coordinates. This is done via a webservice used for each map displayed on your wiki. By default Maps uses [https://wiki.openstreetmap.org/wiki/Nominatim Nominatim]. To use a different geocoding service, use the <code>$egMapsDefaultGeoService</code>.<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsDefaultGeoService = 'google';<br />
</syntaxhighlight><br />
<br />
== Alternative installation methods ==<br />
<br />
=== Semantic Bundle ===<br />
<br />
Maps is included in Semantic Bundle, an extension package build around [[Semantic MediaWiki]]. To install Maps via Semantic Bundle, follow the [https://github.com/ProfessionalWiki/SemanticBundle#semantic-bundle Semantic Bundle installation instructions] rather than the ones on this page.<br />
<br />
=== Installation without shell access ===<br />
<br />
See https://www.mediawiki.org/wiki/Topic:Voivcvsg48plvx9u<br />
<br />
This method is not officially supported.<br />
<br />
=== Professional Hosting ===<br />
<br />
The maintainers of the Maps extension provide commercial [https://professional.wiki/en/hosting fully managed MediaWiki hosting].</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Visual_Leaflet_editor&diff=537
Visual Leaflet editor
2021-05-27T13:06:51Z
<p>Jeroen De Dauw: </p>
<hr />
<div>You can add data to [[Displaying Leaflet Maps|Leaflet maps]] using a visual map editor. <br />
<br />
This editor needs to be enabled per map. When it is enabled, an edit icon will show below the zoom control to people with edit permissions.<br />
<br />
View [https://www.youtube.com/watch?v=-ih3EJLdibY demo video of the Visual Leaflet Editor in Maps 7.13].<br />
<br />
[[File:EditGeoJsonLayer.png|none|frame|The edit button that activates the editor]]<br />
<br />
[[File:EditorExample.png|none|frame|Map in edit mode after activating the editor]]<br />
<br />
== Activating the editor ==<br />
<br />
The editor stores data on a separate page in the [[Leaflet_GeoJSON|GeoJSON namespace]]. This results in a two step process.<br />
<br />
Step 1: create a new page in that namespace by going to <code>GeoJson:WhateverYourMapIsAbout</code>. Click the "Create this page" button. A preview of the map will appear and you can edit it in place if you already wish to add some data.<br />
<br />
[[File:CreateGeoJsonPage.png|none|frame|The edit button that activates the editor]]<br />
<br />
Step 2: on the page where you wish to show the map, place the usual <code>#display_map</code> code to display your Leaflet map. Add the <code>geojson</code> parameter with the value being the name of the GeoJson page you created: <code>geojson=WhateverYourMapIsAbout</code>.<br />
<br />
<pre><br />
{{#display_map: center=Berlin | geojson=WhateverYourMapIsAbout}}<br />
</pre><br />
<br />
Multiple maps can use the same GeoJson page and thus share data. If you want to use an existing GeoJson page, skip step 1.<br />
<br />
== Using the editor ==<br />
<br />
The editor only shows to people with edit permissions for Leaflet maps that use the <code>geojson</code> parameter with the name of an existing page as value.<br />
<br />
Activate the editor by clicking the edit button. This puts the map in edit mode. Only data that can be edited is shown. This means markers and shapes defined in wikitext will be hidden in edit mode.<br />
<br />
In edit mode you can click markers and shapes to open a tooltip in which you can add a title and/or description. Controls on the left side of the map allow adding, deleting and modifying markers and shapes.<br />
<br />
Once you make a change, a save button is shown on the left below the edit controls. Click the save button to save your changes and exit edit mode.<br />
<br />
To exit edit mode without making changes, refresh the page in your browser. Or just leave the map in edit mode.<br />
<br />
== Sharing GeoJson ==<br />
<br />
Multiple maps can use the same GeoJson page and thus share data.<br />
<br />
Changes via the GeoJson page or via other pages using the same map data do not cause automatic updates of the map when page caching is enabled. Manual cache invalidation might be needed at times. When switching to edit mode, the map always fetches the latest data, to minimize the chance of merge conflicts.<br />
<br />
== Example ==<br />
<br />
<pre><br />
{{ #display_map: center=Berlin | geojson=LeafletEditorExample | cluster=on }}<br />
</pre><br />
<br />
{{#display_map: center=Berlin | geojson=LeafletEditorExample | cluster=on | scrollzoom=off }}<br />
<br />
The editor currently does not support captchas. Since this wiki requires captchas for anonymous editors, saving the map after editing anonymously will fail. To get the complete experience create an account.</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Maps_for_MediaWiki&diff=536
Maps for MediaWiki
2021-05-27T13:03:17Z
<p>Jeroen De Dauw: </p>
<hr />
<div><br />
Maps is the MediaWiki extension to visualize and work with geographical information.<br />
<br />
Maps has been maintained since 2009 and is installed on 1000+ wikis.<br />
<br />
=== Features ===<br />
<br />
* [[Displaying Leaflet maps|Customizable and dynamic Leaflet maps]]<br />
* [[Displaying Google Maps|Customizable and dynamic Google Maps]]<br />
* [[Semantic MediaWiki|Structured data and query integration with Semantic MediaWiki]]<br />
* [[Visual editing|Visual map editor]]<br />
* [[GeoJSON]] and [[KML]] support<br />
* Parser functions for [[geocoding]], [[Coordinates function|coordinate formatting]] and geospatial operations<br />
* Translations in over 100 languages, image layers, static maps and more<br />
<br />
=== Demo ===<br />
<br />
[[File:Youtube.jpg|link=https://www.youtube.com/watch?v=TictndP793M|400px]]<br />
&nbsp;<br />
<br />
__NONSFOOTER__<br />
{{Navigation}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Maps_for_MediaWiki&diff=535
Maps for MediaWiki
2021-05-27T13:03:10Z
<p>Jeroen De Dauw: </p>
<hr />
<div><br />
Maps is the MediaWiki extension to visualize and work with geographical information.<br />
<br />
Maps has been maintained since 2009 and is installed on 1000+ wikis.<br />
<br />
=== Features ===<br />
<br />
* [[Displaying Leaflet maps|Customizable and dynamic Leaflet maps]]<br />
* [[Displaying Google Maps|Customizable and dynamic Google Maps]]<br />
* [[Semantic MediaWiki|Structured data and query integration with Semantic MediaWiki]]<br />
* [[Visual editing|Visual map editor]]<br />
* [[GeoJSON]] and [[KML]] support<br />
* Parser functions for [[geocoding]], [[Coordinates function|coordinate formatting]] and geospatial operations<br />
* Translations in over 100 languages, image layers, static maps and more<br />
<br />
=== Demo ===<br />
<br />
[[File:Youtube.jpg|link=https://www.youtube.com/watch?v=TictndP793M|300px]]<br />
&nbsp;<br />
<br />
__NONSFOOTER__<br />
{{Navigation}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Maps_for_MediaWiki&diff=534
Maps for MediaWiki
2021-05-27T13:02:30Z
<p>Jeroen De Dauw: </p>
<hr />
<div><br />
Maps is the MediaWiki extension to visualize and work with geographical information.<br />
<br />
Maps has been maintained since 2009 and is installed on 1000+ wikis.<br />
<br />
=== Features ===<br />
<br />
* [[Displaying Leaflet maps|Customizable and dynamic Leaflet maps]]<br />
* [[Displaying Google Maps|Customizable and dynamic Google Maps]]<br />
* [[Semantic MediaWiki|Structured data and query integration with Semantic MediaWiki]]<br />
* [[Visual editing|Visual map editor]]<br />
* [[GeoJSON]] and [[KML]] support<br />
* Parser functions for [[geocoding]], [[Coordinates function|coordinate formatting]] and geospatial operations<br />
* Translations in over 100 languages, image layers, static maps and more<br />
<br />
=== Demo ===<br />
<br />
[[File:Youtube.jpg|link=https://www.youtube.com/watch?v=TictndP793M]]<br />
&nbsp;<br />
<br />
__NONSFOOTER__<br />
{{Navigation}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Maps_for_MediaWiki&diff=533
Maps for MediaWiki
2021-05-27T13:02:19Z
<p>Jeroen De Dauw: </p>
<hr />
<div><br />
Maps is the MediaWiki extension to visualize and work with geographical information.<br />
<br />
Maps has been maintained since 2009 and is installed on 1000+ wikis.<br />
<br />
=== Features ===<br />
<br />
* [[Displaying Leaflet maps|Customizable and dynamic Leaflet maps]]<br />
* [[Displaying Google Maps|Customizable and dynamic Google Maps]]<br />
* [[Semantic MediaWiki|Structured data and query integration with Semantic MediaWiki]]<br />
* [[Visual editing|Visual map editor]]<br />
* [[GeoJSON]] and [[KML]] support<br />
* Parser functions for [[geocoding]], [[Coordinates function|coordinate formatting]] and geospatial operations<br />
* Translations in over 100 languages, image layers, static maps and more<br />
&nbsp;<br />
<br />
=== Demo ===<br />
<br />
[[File:Youtube.jpg|link=https://www.youtube.com/watch?v=TictndP793M]]<br />
<br />
__NONSFOOTER__<br />
{{Navigation}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=File:Youtube.jpg&diff=532
File:Youtube.jpg
2021-05-27T13:00:20Z
<p>Jeroen De Dauw: </p>
<hr />
<div></div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Installation&diff=518
Installation
2020-12-09T13:11:53Z
<p>Jeroen De Dauw: </p>
<hr />
<div>This page is for wiki administrators that want to install the Maps extension. This is only possible with server access.<br />
<br />
== Installation ==<br />
<br />
Maps is installed using [https://getcomposer.org/ Composer] with [https://www.mediawiki.org/wiki/Composer MediaWiki's built-in support for Composer].<br />
<br />
=== Step 1/2: composer update ===<br />
<br />
On the command line, go to the base directory of your MediaWiki installation.<br />
<br />
If you are using MediaWiki 1.35 or later and PHP 7.3 or later, run the following two commands:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using an older version of MediaWiki or of PHP, then run these two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~7.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
=== Step 2/2: modify LocalSettings.php ===<br />
<br />
Add the following line to the end of your "LocalSettings.php" file:<br />
<br />
<syntaxhighlight lang="bash"><br />
wfLoadExtension( 'Maps' );<br />
</syntaxhighlight><br />
<br />
=== Verify installation success ===<br />
<br />
Check the "Special:Version" page on your wiki. If it lists Maps, then installation was successful.<br />
<br />
== Configuration ==<br />
<br />
Maps works out of the box without any configuration work being required. Below are some key configuration options that you might want to change. For a comprehensive overview of all settings, see [[Configuration|the configuration overview]].<br />
<br />
=== Mapping service ===<br />
<br />
The Maps extension supports displaying maps using multiple mapping services, including Google Maps, Leaflet and OpenLayers. At present the default is Leaflet, while in older versions of the extension it was Google Maps.<br />
<br />
If you do not wish to use the default, use the <code>$egMapsDefaultService</code> configuration parameter. Examples:<br />
<br />
* For Google Maps: <syntaxhighlight lang="php">$egMapsDefaultService = 'googlemaps3';</syntaxhighlight><br />
* For Leaflet: <syntaxhighlight lang="php">$egMapsDefaultService = 'leaflet';</syntaxhighlight><br />
<br />
When using Google Maps, you will need to provide your [https://developers.google.com/maps/documentation/javascript/get-api-key Google API key]:<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsGMaps3ApiKey = 'your-api-key';<br />
</syntaxhighlight><br />
<br />
=== Geocoding service ===<br />
<br />
The Maps extension supports [[Geocoding|geocoding]], the conversion of human readable addresses to coordinates. This is done via a webservice used for each map displayed on your wiki. By default Maps uses [https://wiki.openstreetmap.org/wiki/Nominatim Nominatim]. To use a different geocoding service, use the <code>$egMapsDefaultGeoService</code>.<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsDefaultGeoService = 'google';<br />
</syntaxhighlight><br />
<br />
== Alternative installation methods ==<br />
<br />
=== Semantic Bundle ===<br />
<br />
Maps is included in Semantic Bundle, an extension package build around [[Semantic MediaWiki]]. To install Maps via Semantic Bundle, follow the [https://github.com/ProfessionalWiki/SemanticBundle#semantic-bundle Semantic Bundle installation instructions] rather than the ones on this page.<br />
<br />
=== Installation without shell access ===<br />
<br />
See https://www.mediawiki.org/wiki/Topic:Voivcvsg48plvx9u<br />
<br />
This method is not officially supported.<br />
<br />
=== Professional Hosting ===<br />
<br />
The maintainers of the Maps extension provide commercial [https://professional.wiki/en/hosting fully managed MediaWiki hosting].</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Installation&diff=517
Installation
2020-12-09T13:11:06Z
<p>Jeroen De Dauw: </p>
<hr />
<div>This page is for wiki administrators that want to install the Maps extension. This is only possible with server access.<br />
<br />
== Installation ==<br />
<br />
Maps is installed using [https://getcomposer.org/ Composer] with [https://www.mediawiki.org/wiki/Composer MediaWiki's built-in support for Composer].<br />
<br />
=== Step 1/2: composer update ===<br />
<br />
On the command line, go to the base directory of your MediaWiki installation.<br />
<br />
If you are using MediaWiki 1.35 or later and PHP 7.3 or later, run the following two commands:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using MediaWiki 1.31 or later and PHP 7.1 or later, then run these two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~7.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
If you are using an older version of MediaWiki or of PHP, then run these two commands instead:<br />
<br />
<syntaxhighlight lang="bash"><br />
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~5.0<br />
<br />
composer update mediawiki/maps --no-dev -o<br />
</syntaxhighlight><br />
<br />
=== Step 2/2: modify LocalSettings.php ===<br />
<br />
Add the following line to the end of your "LocalSettings.php" file:<br />
<br />
<syntaxhighlight lang="bash"><br />
wfLoadExtension( 'Maps' );<br />
</syntaxhighlight><br />
<br />
=== Verify installation success ===<br />
<br />
Check the "Special:Version" page on your wiki. If it lists Maps, then installation was successful.<br />
<br />
== Configuration ==<br />
<br />
Maps works out of the box without any configuration work being required. Below are some key configuration options that you might want to change. For a comprehensive overview of all settings, see [[Configuration|the configuration overview]].<br />
<br />
=== Mapping service ===<br />
<br />
The Maps extension supports displaying maps using multiple mapping services, including Google Maps, Leaflet and OpenLayers. At present the default is Leaflet, while in older versions of the extension it was Google Maps.<br />
<br />
If you do not wish to use the default, use the <code>$egMapsDefaultService</code> configuration parameter. Examples:<br />
<br />
* For Google Maps: <syntaxhighlight lang="php">$egMapsDefaultService = 'googlemaps3';</syntaxhighlight><br />
* For Leaflet: <syntaxhighlight lang="php">$egMapsDefaultService = 'leaflet';</syntaxhighlight><br />
<br />
When using Google Maps, you will need to provide your [https://developers.google.com/maps/documentation/javascript/get-api-key Google API key]:<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsGMaps3ApiKey = 'your-api-key';<br />
</syntaxhighlight><br />
<br />
=== Geocoding service ===<br />
<br />
The Maps extension supports [[Geocoding|geocoding]], the conversion of human readable addresses to coordinates. This is done via a webservice used for each map displayed on your wiki. By default Maps uses [https://wiki.openstreetmap.org/wiki/Nominatim Nominatim]. To use a different geocoding service, use the <code>$egMapsDefaultGeoService</code>.<br />
<br />
<syntaxhighlight lang="php"><br />
$egMapsDefaultGeoService = 'google';<br />
</syntaxhighlight><br />
<br />
== Alternative installation methods ==<br />
<br />
=== Semantic Bundle ===<br />
<br />
Maps is included in Semantic Bundle, an extension package build around [[Semantic MediaWiki]]. To install Maps via Semantic Bundle, follow the [https://github.com/ProfessionalWiki/SemanticBundle#semantic-bundle Semantic Bundle installation instructions] rather than the ones on this page.<br />
<br />
=== Installation without shell access ===<br />
<br />
See https://www.mediawiki.org/wiki/Topic:Voivcvsg48plvx9u<br />
<br />
This method is not officially supported.<br />
<br />
=== Professional Hosting ===<br />
<br />
The maintainers of the Maps extension provide commercial [https://professional.wiki/en/hosting fully managed MediaWiki hosting].</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_SMW_queries&diff=516
Leaflet SMW queries
2020-11-02T23:40:31Z
<p>Jeroen De Dauw: </p>
<hr />
<div>Maps adds a Leaflet result format as part of its [[Semantic MediaWiki|integration with Semantic MediaWiki]]. This result format can be used to visualize queried data onto maps.<br />
<br />
== Syntax ==<br />
<br />
Maps shown with the Leaflet result format can be customized using various parameters. Example demonstrating usage of the Leaflet-only <code>geojson</code> parameter:<br />
<br />
<pre><br />
{{#ask: [[Coordinates::+]]<br />
| format=leaflet<br />
| geojson=Berlin<br />
| zoom=9<br />
| center=Berlin<br />
| ?Coordinates<br />
}}<br />
</pre><br />
<br />
; Result<br />
{{#ask: [[Coordinates::+]]<br />
| format=leaflet<br />
| geojson=Berlin<br />
| zoom=9<br />
| center=Berlin<br />
| scrollzoom=off<br />
| ?Coordinates<br />
}}<br />
<br />
== Parameters ==<br />
<br />
<!-- This is an auto-generated table of parameter descriptions that displays up to date docs for the installed version of SMW. Do not attempt to modify or translate in-wiki. For more info contact User:Jeroen De Dauw -->{{#smwdoc:leaflet}}<br />
<br />
== Parameter examples ==<br />
<br />
=== Dynamic coordinate fetching (ajaxquery) ===<br />
<br />
Initially only includes Berlin onto the map. When moving the map around or changing zoom, the map looks for extra pages with the Has Coordinates property within the visible area. This is great for large data sets where loading all data on the map at once is not feasible.<br />
<br />
<pre><br />
{{#ask: [[Example data:Berlin]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ajaxquery = [[Category:Cities]]<br />
| ajaxcoordproperty = Coordinates<br />
| zoom=8<br />
| minzoom=5<br />
| maxzoom=8<br />
| center=Berlin<br />
}}<br />
</pre><br />
<br />
{{#ask: [[Example data:Berlin]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ajaxquery = [[Category:Cities]]<br />
| ajaxcoordproperty = Coordinates<br />
| zoom=8<br />
| minzoom=5<br />
| maxzoom=8<br />
| center=Berlin<br />
}}<br />
<br />
=== Marker clustering ===<br />
<br />
<pre><br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| cluster=on<br />
| zoom=4<br />
}}<br />
</pre><br />
<br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| cluster=on<br />
| zoom=4<br />
}}<br />
<br />
=== Template (simple) ===<br />
<br />
Adding a link to maps.google.com by using a template. [[Template:Google_Maps_Link|See template "Google Maps Link"]].<br />
<br />
<pre><br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| template=Google Maps Link<br />
}}<br />
</pre><br />
<br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| template=Google Maps Link<br />
}}<br />
<br />
=== Template (advanced) ===<br />
<br />
This example shows usage of multiple queried values via the [[Template:City Popup|"City Popup" template]].<br />
<br />
<pre><br />
{{#ask:[[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ?Located in<br />
| ?Population<br />
| ?Surface area<br />
| template=City Popup<br />
| showtitle=off<br />
}}<br />
</pre><br />
<br />
{{#ask:[[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ?Located in<br />
| ?Population<br />
| ?Surface area<br />
| template=City Popup<br />
| showtitle=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Leaflet_SMW_queries&diff=515
Leaflet SMW queries
2020-11-02T23:40:18Z
<p>Jeroen De Dauw: </p>
<hr />
<div>Maps adds a Leaflet result format as part of its [[Semantic MediaWiki|integration with Semantic MediaWiki]]. This result format can be used to visualize queried data onto maps.<br />
<br />
== Syntax ==<br />
<br />
Maps shown with the Leaflet result format can be customized using various parameters. Example demonstrating usage of the Leaflet-only <code>geojson</code> parameter:<br />
<br />
<pre><br />
{{#ask: [[Coordinates::+]]<br />
| format=leaflet<br />
| geojson=Berlin<br />
| zoom=9<br />
| center=Berlin<br />
| ?Coordinates<br />
}}<br />
</pre><br />
<br />
; Result<br />
{{#ask: [[Coordinates::+]]<br />
| format=leaflet<br />
| geojson=Berlin<br />
| zoom=9<br />
| center=Berlin<br />
| scrollzoom=off<br />
| ?Coordinates<br />
}}<br />
<br />
== Parameters ==<br />
<br />
<!-- This is an auto-generated table of parameter descriptions that displays up to date docs for the installed version of SMW. Do not attempt to modify or translate in-wiki. For more info contact User:Jeroen De Dauw -->{{#smwdoc:leaflet}}<br />
<br />
== Parameter examples ==<br />
<br />
=== Dynamic coordinate fetching (ajaxquery) ===<br />
<br />
Initially only includes Berlin onto the map. When moving the map around or changing zoom, the map looks for extra pages with the Has Coordinates property within the visible area. This is great for large data sets where loading all data on the map at once is not feasible.<br />
<br />
<pre><br />
{{#ask: [[Example data:Berlin]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ajaxquery = [[Category:Cities]]<br />
| ajaxcoordproperty = Coordinates<br />
| zoom=8<br />
| minzoom=5<br />
| maxzoom=8<br />
| center=Berlin<br />
}}<br />
</pre><br />
<br />
{{#ask: [[Example data:Berlin]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ajaxquery = [[Category:Cities]]<br />
| ajaxcoordproperty = Coordinates<br />
| zoom=8<br />
| minzoom=5<br />
| maxzoom=8<br />
| center=Berlin<br />
}}<br />
<br />
=== Marker clustering ===<br />
<br />
<pre><br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| cluster=on<br />
| zoom=4<br />
}}<br />
</pre><br />
<br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| cluster=on<br />
| zoom=4<br />
| hidenamespace=true<br />
}}<br />
<br />
=== Template (simple) ===<br />
<br />
Adding a link to maps.google.com by using a template. [[Template:Google_Maps_Link|See template "Google Maps Link"]].<br />
<br />
<pre><br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| template=Google Maps Link<br />
}}<br />
</pre><br />
<br />
{{#ask: [[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| template=Google Maps Link<br />
}}<br />
<br />
=== Template (advanced) ===<br />
<br />
This example shows usage of multiple queried values via the [[Template:City Popup|"City Popup" template]].<br />
<br />
<pre><br />
{{#ask:[[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ?Located in<br />
| ?Population<br />
| ?Surface area<br />
| template=City Popup<br />
| showtitle=off<br />
}}<br />
</pre><br />
<br />
{{#ask:[[Category:Cities]]<br />
| format=leaflet<br />
| ?Coordinates<br />
| ?Located in<br />
| ?Population<br />
| ?Surface area<br />
| template=City Popup<br />
| showtitle=off<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=514
Google Maps examples
2020-10-21T00:06:45Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=derbyshire<br />
| gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz<br />
| zoom=7<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=derbyshire<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz<br />
| zoom=7<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Ben Nevis<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Ben Nevis<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}</div>
Jeroen De Dauw
https://maps.extension.wiki/w/index.php?title=Google_Maps_examples&diff=513
Google Maps examples
2020-10-21T00:05:54Z
<p>Jeroen De Dauw: </p>
<hr />
<div>[[Displaying Google Maps|Google maps]] can be [[Customizing Google Maps|customized using various parameters]]. <br />
<br />
This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].<br />
<br />
== Markers, Polygons, Lines, etc ==<br />
<br />
See [[Displaying Google Maps]]<br />
<br />
== KML ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| kml=BerlinDistricts.kml<br />
| zoom=9<br />
}}<br />
<br />
== GKML ==<br />
<br />
<pre><br />
{{#display_map:center=derbyshire<br />
| gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz<br />
| zoom=7<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=derbyshire<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz<br />
| zoom=7<br />
}}<br />
<br />
== Map types ==<br />
<br />
<pre><br />
{{#display_map:center=Berlin<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}<br />
</pre><br />
<br />
{{#display_map:center=Berlin<br />
| service=google<br />
| height=300px<br />
| scrollzoom=off<br />
| types=satellite, terrain<br />
| type=terrain<br />
| zoom=9<br />
}}</div>
Jeroen De Dauw