mprins / dokuwiki-plugin-openlayersmap

Add maps (OpenStreetMap, Bing, ... and your own data) to your wiki pages using the OpenLayers toolkit
https://www.dokuwiki.org/plugin:openlayersmap
Other
5 stars 0 forks source link

Multiple maps on one page #48

Closed peterfromearth closed 1 year ago

peterfromearth commented 1 year ago

If I use more then one map on a page the maps are located right after each other

environment

expected behaviour

the map should be displayed where they are defined

actual behaviour

all maps are located at the location of the first map.

steps to reproduce actual behaviour

define more than one map on different location on one page

error log

ERRORS

debug log

DEBUG
mprins commented 1 year ago

Your report is missing key information for debugging and/or analysis. Please provide the exact syntax/code you used.

peterfromearth commented 1 year ago

Ok found my problem. I did not used the id attribute to define different ids.

I used it like this

====== Map1 ======
<olmap width="600px" height="400px" lat="31.5822" lon="-6.5074" zoom="7" controls="1" baselyr="OpenStreetMap" gpxfile=":blog:xxx.gpx">
</olmap>

====== Map2 ======
<olmap width="600px" height="400px" lat="31.5822" lon="-6.5074" zoom="7" controls="1" baselyr="OpenStreetMap" gpxfile=":blog:yyy.gpx">
</olmap>

after I added id attribute it worked.

====== Map1 ======
<olmap id="a" width="600px" height="400px" lat="31.5822" lon="-6.5074" zoom="7" controls="1" baselyr="OpenStreetMap" gpxfile=":blog:xxx.gpx">
</olmap>

====== Map2 ======
<olmap id="b" width="600px" height="400px" lat="31.5822" lon="-6.5074" zoom="7" controls="1" baselyr="OpenStreetMap" gpxfile=":blog:yyy.gpx">
</olmap>

(you could define a random id if none is defined)

thanks for the plugin!

mprins commented 1 year ago

documentation is clear on using id : https://www.dokuwiki.org/plugin:openlayersmap#syntax_usage using a random value was never a possibility in the past where the id was needed as an extension point for other plugins. not sure if it's possible now.

github-actions[bot] commented 11 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.