May 28, 2020 at 11:05 am #59458tillinParticipant
for a “city-guide like” website I would like to know if it’s possible to have one “global” map that would be visible on a number of pages, each featuring a different point of interest.
Ideally I would like to have a tree-like access to information and adjust the map accordingly. So on a parent page visitors would first see the map with all POIs – on sub-pages the map would then only show a specific neighborhood with the related POIs. On child pages visitors would find information about each POI with the map zomed-in accordingly.
Would this scenariou be possible with mainatining just one map instance – or would I have to provide one instance per page?
t…June 1, 2020 at 7:30 am #59487[email protected]Member
Thanks for getting in touch and apologies for the delay over the weekend.
This is possible and can be done using GET variables to control the map and to set which marker is shown.
To do this, you can simply add the ‘?markerid=YOUR_MARKER_ID’ string the the url with the ‘YOUR_MARKER_ID’ part being the ID of the marker you want to focus on. Additionally, you can also set the zoom by adding ‘mzoom’ to the URL.
As an example, here is a link that will focus on marker ID 83 and set the initial zoom to 12:
You can find more information on using GET variables here as well: https://www.wpgmaps.com/documentation/using-get-variables-to-control-your-map-linking-to-a-marker-from-another-page/
Please let me know if this helps and works as expected for your requirements.
Thanks again for your time.
- You must be logged in to reply to this topic.