plugin:openlayersmap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:openlayersmap [2020-07-13 15:03] – a note on Hogfahter mprins | plugin:openlayersmap [2021-04-26 11:39] – mprins | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : mprins@users.sf.net | email : mprins@users.sf.net | ||
type : syntax, action | type : syntax, action | ||
- | lastupdate : 2019-03-21 | + | lastupdate : 2021-04-26 |
- | compatible : Angua, 2012-10-13, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, 2016-06-26, 2017-02-19, Greebo,!Hogfather | + | compatible : Angua, 2012-10-13, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, 2016-06-26, 2017-02-19, Greebo, |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : media maps embed geo spatial | tags : media maps embed geo spatial | ||
- | downloadurl: | + | downloadurl: |
- | sourcerepo : https://sourceforge.net/p/dokuwikispatial/ | + | sourcerepo : https://github.com/mprins/dokuwiki-plugin-openlayersmap/ |
- | bugtracker : https://sourceforge.net/p/dokuwikispatial/issues/ | + | bugtracker : https://github.com/mprins/dokuwiki-plugin-openlayersmap/issues/ |
---- | ---- | ||
===== Description ===== | ===== Description ===== | ||
- | A map rendering plugin that will put an [[http:// | + | A map rendering plugin that will put an [[https:// |
- | 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 ([[http:// | + | 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:// |
It can also be configured to use non-open data (Google, Virtual Earth) providers. | It can also be configured to use non-open data (Google, Virtual Earth) providers. | ||
The plugin dynamically loads the OpenLayers API on demand, depending on the API license keys that are entered in the configuration section various base map layers are available. | The plugin dynamically loads the OpenLayers API on demand, depending on the API license keys that are entered in the configuration section various base map layers are available. | ||
- | |||
- | ===== | ||
- | :!: **you may need to turn off the [[config: | ||
- | |||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
:!: Note: for old releases (2008-05-05, | :!: Note: for old releases (2008-05-05, | ||
- | Search and install the plugin using the [[plugin: | + | Search and install the plugin using the [[plugin: |
- | Alternate locations for the plugin and older version are available at: http:// | + | Alternate locations for the plugin and older version are available at: https:// |
:!: This plugin needs the server to have [[phpfn> | :!: This plugin needs the server to have [[phpfn> | ||
+ | |||
==== Change Log ==== | ==== Change Log ==== | ||
- | === version 4.14 === | ||
- | * some small fixes | ||
- | |||
- | === version 4.13 === | ||
- | * Russian language files providd by Aleksej Kozlov | ||
- | * some small bugfixes | ||
- | * many more configuration options provided by Aleksej Kozlov | ||
- | |||
- | === version 4.12 === | ||
- | * use EPSG:3857 as basemap projection | ||
- | * add a geo: uri to the header of popup to open the location in your satnav | ||
- | * react to page resize | ||
- | |||
- | === version 4.11 === | ||
- | * fix hike and bike static map url | ||
- | * update google maps api to 3.29 | ||
- | * allow to add Thunderforest API key | ||
- | |||
- | === version 4.10 === | ||
- | * add french translation by Digitalin | ||
- | * use latest version of OpenLayers 2.14-dev | ||
- | |||
- | === version 4.9 === | ||
- | * some PHP 7 fixes | ||
- | |||
- | === version 4.8 === | ||
- | * drop support for MapQuest; their tile service was discontinued | ||
- | * add support for Stamen maps (terrain and toner-lite) | ||
- | * disable hillshading layer; it is no longer available | ||
- | |||
- | === version 4.7 === | ||
- | * PHP 7 compatibility fixes | ||
- | |||
- | === version 4.6 === | ||
- | * use latest version of OpenLayers 2.14-dev | ||
- | * update google maps api to 3.22 release | ||
- | |||
- | === version 4.5 === | ||
- | * use latest version of OpenLayers 2.14-dev | ||
- | |||
- | === version 4.4 === | ||
- | * use latest version of OpenLayers 2.14-dev | ||
- | |||
- | === version 4.3 === | ||
- | * some small bugfixes | ||
- | * update google maps api to 3.17 release | ||
- | |||
- | === version 4.2 === | ||
- | * add background to map | ||
- | * display Point of Interest coordinates in popups | ||
- | * allow coordinate display in decimal degrees or degrees, minutes, seconds | ||
- | |||
- | === version 4.1 === | ||
- | * add a fullscreen option for the map | ||
- | * fix an IE8 bug | ||
- | * fix static map generation, different maptypes were not respected | ||
- | * add configuration option for a MapQuest API key (needed for remote static map generation) and Google API key | ||
- | * semi-responsive map rendering (on page load only); prevent maps that are larger than the page width | ||
- | |||
- | === version 4.0 === | ||
- | * use OpenLayers 2.14-dev | ||
- | * keyboard accessible zoom control replacing the pan/zoom bar | ||
- | * keyboard accessible layer switcher control | ||
- | * keyboard accessible feature info control | ||
- | * removed the toolbar | ||
- | * remove the Cloudmade layers; Cloudmade went " | ||
- | * removed the option to set openlayers library, this is no longer possible | ||
- | * remove styling admin option and remove associated images, use the wiki styling from now on | ||
- | * add help pages (en, nl) | ||
- | |||
- | == deleted files == | ||
- | * controlbar images: | ||
- | * lib/ | ||
- | * lib/dark/* | ||
- | * lib/ | ||
- | * lib/grey/* | ||
- | * lib/ | ||
- | * lib/theme/* | ||
- | * img/ | ||
- | * img/ | ||
- | * logo/ | ||
- | |||
- | === version 3.1 === | ||
- | * use OpenLayers 2.13 | ||
- | * improvements and bugfixes in the static map generator | ||
- | * upgrade the google api | ||
- | * add orange style | ||
- | * drop cUrl requirement by enabling fall-back to file_get_contents | ||
- | * add support for GeoJSON | ||
- | * remove permalink from the map | ||
- | * some accessibility enhancements | ||
- | == deleted files == | + | The [[https:// |
- | * overview-switcher-minimize.png | + | |
- | * overview-switcher-maximize.png | + | |
- | === version 3.0 === | ||
- | * A local static map generator was added. Note that this requires php-curl and the geophp plugin. | ||
- | * A management interface for the static map generator was added | ||
- | ===Version 2.1 === | + | {{rss> |
- | * provide an extension point for [[openlayersmapoverlays]] | + | |
- | * updated the [[http://openlayers.org|OpenLayers]] build to 2.12 Final | + | |
- | ===Version 2.0=== | ||
- | | ||
- | * support for “Angua” and jQuery | ||
- | * fix a negative coordinates bug ([[http:// | ||
- | * Spanish translation | ||
- | * small fixes and enhancements | ||
- | * updated the [[http:// | ||
- | * more icons | ||
- | * add some more open base layers (transport, landscape, | ||
- | * accessibility improvements | ||
- | * remove the depercated t@h base layer | ||
- | * using v3.8 of the Google api for Goole maps | ||
- | * various small enhancements and fixes | ||
- | * use [[http:// | ||
- | ===Version 1.0=== | ||
- | | ||
- | * Yahoo was removed; they are shutting down their maps api ([[http:// | ||
- | * switched to Google Maps v3 ([[http:// | ||
- | * Add support for ReST access of the Bing layers (bing road, bing sat, bing hybrid) and deprecated Virtual Earth (ve) [[https:// | ||
- | * option to disable OSM base layers | ||
- | * option to disable MapQuest Open layers | ||
- | * Accessibility and printing enhancements: | ||
- | * enhancements to show a static fallback map for users that do not have javascript or css which is also used as the print page((this option may be disabled)) | ||
- | * a table with the points of interest((this option may be disabled)) | ||
- | * a description can be entered for the map | ||
- | * better styling | ||
- | * theme' | ||
- | * :!: dimensions for map width and heigth must be in pixels [px]; previously other units such as % and em may have worked. This is to make sure that the static fallback map works properly. | ||
- | * use [[http:// | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 176: | Line 46: | ||
* **enableOSM** Enable the use of OpenStreetMap base layers as basemap provider | * **enableOSM** Enable the use of OpenStreetMap base layers as basemap provider | ||
- | * **enableMapQuest** Enable the use of MapQuest Open as basemap provider | + | * **enableMapQuest** Enable the use of MapQuest Open as basemap provider |
- | * **enableGoogle** Enable the use of Google as basemap provider | + | * **enableGoogle** Enable the use of Google 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:// | * **bingAPIKey** Bing requires an API key, get yours at: https:// | ||
+ | * **tfAPIKey** Thunderforest (cyclemap, | ||
* **mapquestAPIKey** MapQuest Static Maps API key, get yours at: http:// | * **mapquestAPIKey** MapQuest Static Maps API key, get yours at: http:// | ||
- | * **googleAPIkey** Google Static Maps API key, get yours at: https:// | + | * **googleAPIkey** Google Static Maps API key, get yours at: https:// |
* **iconUrlOverload** URL for map icons when using static maps on a non-public access host such as with [[install: | * **iconUrlOverload** URL for map icons when using static maps on a non-public access host such as with [[install: | ||
* **enableA11y** Enable a11y/print output (static map, legend table). If you use maps with a lot of POI you will want to turn this off | * **enableA11y** Enable a11y/print output (static map, legend table). If you use maps with a lot of POI you will want to turn this off | ||
Line 427: | Line 298: | ||
+ | ----- | ||
+ | After installing the plugin (in Hogfather, DokuwikiStick), | ||
+ | |||
+ | Warning: file_get_contents(http:// | ||
+ | |||
+ | Warning: Cannot modify header information - headers already sent by (output started at D: | ||
+ | |||
+ | Those were clean installs, so I have no idea what could have gone wrong. | ||
+ | --- [[user> | ||
+ | |||
+ | ----- | ||
+ | Like [[user> | ||
+ | |||
+ | This allowed some of my maps to render but some didn't throwing an error about a division by zero. | ||
+ | |||
+ | < | ||
+ | 2021/04/10 10:05:57 [error] 44968# | ||
+ | xtension/ | ||
+ | penlayersmap/ | ||
+ | Stack trace: | ||
+ | #0 / | ||
+ | #1 / | ||
+ | #2 / | ||
+ | #3 / | ||
+ | #4 / | ||
+ | #5 / | ||
+ | #6 / | ||
+ | #7 / | ||
+ | </ | ||
+ | |||
+ | This only occurred on maps with a single '' | ||
+ | |||
+ | If I drop a second independant point/geom on the map this problem doesn' | ||
+ | |||
+ | A bit of digging showed that this is because with a single geom listed in the OpenLayersMap entry such as... | ||
+ | |||
+ | < | ||
+ | <olmap id=" | ||
+ | 9" zoom=" | ||
+ | penStreetMap" | ||
+ | ~~ More examples: http:// | ||
+ | 53.357647, | ||
+ | ternal link: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ...the value of '' | ||
+ | |||
+ | <code php> | ||
+ | if (count ( $geoms ) <= 2) { | ||
+ | dbglog($geoms," | ||
+ | return; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | I've reported the issue on SourceForge (see [[https:// | ||
+ | |||
+ | --- [[user> |
plugin/openlayersmap.txt · Last modified: 2024-04-08 15:51 by mprins