DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:openlayersmap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:openlayersmap [2022-12-22 11:32] – [OpenLayersMap Plugin] 2022-12-22 mprinsplugin:openlayersmap [2024-04-08 15:51] (current) – version upped mprins
Line 6: Line 6:
 email      : mprins@users.sf.net email      : mprins@users.sf.net
 type       : syntax, action type       : syntax, action
-lastupdate : 2022-12-22 +lastupdate : 2024-04-08 
-compatible : Hogfather, Igor+compatible : Hogfather, Igor, Jack Jackrum, Kaos
 depends    : geophp depends    : geophp
 conflicts  conflicts 
Line 20: Line 20:
  
 ===== Description ===== ===== Description =====
 +
 A map rendering plugin that will put an [[https://openlayers.org/|OpenLayers]] based map on the wiki page.  A map rendering plugin that will put an [[https://openlayers.org/|OpenLayers]] based map on the wiki page. 
 The component enables users to put GPS data (currently GeoJSON, GPX and KML format are supported) and other geographic services on the map in configurable layout and uses open source components and data ([[https://www.openstreetmap.org/|OSM]]).  The component enables users to put GPS data (currently GeoJSON, GPX and KML format are supported) and other geographic services on the map in configurable layout and uses open source components and data ([[https://www.openstreetmap.org/|OSM]]). 
Line 27: Line 28:
 ===== Upgrading to 2022-06-14 or later ===== ===== Upgrading to 2022-06-14 or later =====
 After upgrading the plugin and removing/uninstalling [[openlayersmapoverlays]]: After upgrading the plugin and removing/uninstalling [[openlayersmapoverlays]]:
-  * if you have used olmap_agslayer you need to change the url; remove the ''/export'' part. eg ''https://geoservices2.wallonie.be/arcgis/rest/services/APP_KAYAK/KAYAK/MapServer/export'' becomes ''https://geoservices2.wallonie.be/arcgis/rest/services/APP_KAYAK/KAYAK/MapServer'' +  * if you have used olmap_agslayer you need to change the url; remove the ''/export'' part. eg ''%%https://geoservices2.wallonie.be/arcgis/rest/services/APP_KAYAK/KAYAK/MapServer/export%%'' becomes ''%%https://geoservices2.wallonie.be/arcgis/rest/services/APP_KAYAK/KAYAK/MapServer%%'' 
-  * if you have used olmap_osmlayer you need to remove the ''$'' from the url. eg. ''https://tiles.openseamap.org/seemark/${z}/${x}/${y}.png'' becomes ''https://tiles.openseamap.org/seemark/{z}/{x}/{y}.png''+  * if you have used olmap_osmlayer you need to remove the ''$'' from the url. eg. ''%%https://tiles.openseamap.org/seemark/${z}/${x}/${y}.png%%'' becomes ''%%https://tiles.openseamap.org/seemark/{z}/{x}/{y}.png%%''
  
 ===== Download and Installation ===== ===== Download and Installation =====
Line 53: Line 54:
  
   * **enableOSM** Enable the use of OpenStreetMap base layers as basemap provider   * **enableOSM** Enable the use of OpenStreetMap base layers as basemap provider
 +  * **enableStadia** Enable the use of Stadia Maps as basemap provider
   * **enableBing** Enable the use of Bing as basemap provider   * **enableBing** Enable the use of Bing as basemap provider
   * **bingAPIKey** Bing requires an API key, get yours at: https://www.bingmapsportal.com/application   * **bingAPIKey** Bing requires an API key, get yours at: https://www.bingmapsportal.com/application
Line 64: Line 66:
 If you want to add (or change) to the available icons for display on the map you can drop them into the directory "icons" in this plugin's directory. They should be about 16px in size. There is a contact sheet available after installing the plugin at ''<yourbaseurl>/lib/plugins/openlayersmap/icons/'' ((eg. http://dokuwikispatial.sourceforge.net/dokuwiki/lib/plugins/openlayersmap/icons/index.php)) If you want to add (or change) to the available icons for display on the map you can drop them into the directory "icons" in this plugin's directory. They should be about 16px in size. There is a contact sheet available after installing the plugin at ''<yourbaseurl>/lib/plugins/openlayersmap/icons/'' ((eg. http://dokuwikispatial.sourceforge.net/dokuwiki/lib/plugins/openlayersmap/icons/index.php))
 Nice icons are available from: Nice icons are available from:
-  * https://mapicons.mapsmarker.com/  * https://labs.mapbox.com/maki-icons/+  * https://mapicons.mapsmarker.com/ 
 +  * https://labs.mapbox.com/maki-icons/
   * http://www.sjjb.co.uk/mapicons/contactsheet/   * http://www.sjjb.co.uk/mapicons/contactsheet/
   * http://projects.opengeo.org/geosilk   * http://projects.opengeo.org/geosilk
Line 75: Line 78:
   * https://wild-water.nl/dokuwiki/beschrijvingen/belgie/salm#kaart (and many other pages)   * https://wild-water.nl/dokuwiki/beschrijvingen/belgie/salm#kaart (and many other pages)
   * http://www.vegan-in-halle.de/wiki/doku.php?id=karte   * http://www.vegan-in-halle.de/wiki/doku.php?id=karte
 +  * [[https://www.heemkundekringblariacum.nl/p/beeldbank/map_overview_1920-1929]] \\ => Links to an OpenStreetMap page on the website of //Heemkundekring Blariacum//, an association for the preservation and digitalization of local history in the Netherlands. It shows several pointers with a page title and direct link to that page showing photo's of the 1920's at that location. Other periods can be found at [[https://www.heemkundekringblariacum.nl/p/beeldbank/geografisch_zoeken]].
  
 ===== Syntax/ Usage ===== ===== Syntax/ Usage =====
Line 83: Line 87:
 </code> </code>
  
-  * **id** The identifier of the map (this needs to be a valid [[http://www.w3.org/TR/CSS21/syndata.html#characters|CSS]]/[[http://www.w3.org/TR/html4/types.html#type-id|XHTML]] identifier as well as a [[http://mathiasbynens.be/notes/javascript-identifiers|valid JavaScript variable]]) eg. ''olmap''.+  * **id** The identifier of the map (this needs to be a valid [[http://www.w3.org/TR/CSS21/syndata.html#characters|CSS]]/[[http://www.w3.org/TR/html4/types.html#type-id|XHTML]] identifier as well as a [[http://mathiasbynens.be/notes/javascript-identifiers|valid JavaScript variable]]) eg. ''olmap'' and must be unique on the page.
   * **width** The width of the map, default is ''400px''.   * **width** The width of the map, default is ''400px''.
   * **height** The height of the map, default is ''300px''.   * **height** The height of the map, default is ''300px''.
Line 96: Line 100:
   * **summary** A description of the map.   * **summary** A description of the map.
  
 +If the values for latitude and longitude differ from the default values lat="50.0" lon="5.1" a Geotag is added to the metadata of the page.
 +The page is therefore added to the spatial index (and the KML and GeoRSS sitemaps) then.
  
 The Points of Interest are formatted: The Points of Interest are formatted:
Line 105: Line 111:
  
 To add a XYZ style (eg. OpenStreetMap tiling scheme) layer to a map use the following syntax:  To add a XYZ style (eg. OpenStreetMap tiling scheme) layer to a map use the following syntax: 
-  <olmap_osmlayer id="olmap" name="piste" url="https://tiles.openpistemap.org/nocontours/{z}/{x}/{y}.png" visible="true" attribution="OpenPisteMap"></olmap_osmlayer>+  <olmap_osmlayer id="olmap" name="piste" url="https://tiles.openpistemap.org/nocontours/{z}/{x}/{y}.png" visible="true" attribution="OpenPisteMap" baselayer="true"></olmap_osmlayer>
  
-Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the XYZ layer url, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame.+Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the XYZ layer url, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame and ''baselayer'' can be set to ''true'' to add the layer as a base mapYou can find some providers at: [[https://wiki.openstreetmap.org/wiki/Raster_tile_providers|Raster tile providers]]
  
 ==== WMS ==== ==== WMS ====
 To add a WMS layer to a map use the following syntax: To add a WMS layer to a map use the following syntax:
-  <olmap_wmslayer id="olmap" name="rain" url="http://openweathermap.org/t/tile.cgi?SERVICE=WMS" attribution="OpenWeatherMap" visible="true" layers="GLBETA_PR"></olmap_wmslayer>+  <olmap_wmslayer id="olmap" name="rain" url="http://openweathermap.org/t/tile.cgi?SERVICE=WMS" attribution="OpenWeatherMap" visible="true" layers="GLBETA_PR" baselayer="false"></olmap_wmslayer>
  
-Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the WMS layer url, ''layers'' are the layers from the map service that you want displayed, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame.+Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the WMS layer url, ''layers'' are the layers from the map service that you want displayed, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame and ''baselayer'' can be set to ''true'' to add the layer as a base map.
  
 ==== ArcGIS REST ==== ==== ArcGIS REST ====
 To add an ArcGIS REST image layer to a map use the following syntax: To add an ArcGIS REST image layer to a map use the following syntax:
-  <olmap_agslayer id="olmap" name="Paddle todat" url="https://geoservices2.wallonie.be/arcgis/rest/services/APP_KAYAK/KAYAK/MapServer" attribution="kayak.environnement.wallonie.be" visible="true" layers="show:0,1,2,3,4,7"></olmap_agslayer>+  <olmap_agslayer id="olmap" name="Paddle todat" url="https://geoservices2.wallonie.be/arcgis/rest/services/APP_KAYAK/KAYAK/MapServer" attribution="kayak.environnement.wallonie.be" visible="true" layers="show:0,1,2,3,4,7" baselayer="false"></olmap_agslayer> 
 + 
 +Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the WMS layer url, ''layers'' are the layers from the map service that you want displayed, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame and ''baselayer'' can be set to ''true'' to add the layer as a base map.
  
-Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the WMS layer url, ''layers'' are the layers from the map service that you want displayed, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame.+==== WTMS ==== 
 +To add a WTMS layer to a map use the following syntax: 
 +  <olmap_wmtslayer id="olmap" name="geolandbasemap" url="https://mapsneu.wien.gv.at/basemapneu/1.0.0/WMTSCapabilities.xml" attribution="basemap.at" visible="true" layer="geolandbasemap" matrixSet=google3857 baselayer="true"></olmap_wmtslayer>
  
 +Where ''id'' is the id of the openlayersmap, ''name'' is the name of this map layer, ''url'' is the WMTS capabilities url, ''layer'' is the layer from the map service that you want displayed, ''visible'' defines whether the layer is visible when the layer is added to the map, ''attribution'' is displayed in the attribution area of the map frame and ''baselayer'' can be set to ''true'' to add the layer as a base map.
      
 ===== Discussion & FAQ ===== ===== Discussion & FAQ =====
plugin/openlayersmap.1671705140.txt.gz · Last modified: 2022-12-22 11:32 by mprins

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki