New home › Forums › Basic Version › Markers URL link in same window
- This topic has 6 replies, 3 voices, and was last updated 1 year, 10 months ago by Matthew.
-
AuthorPosts
-
September 1, 2021 at 5:26 pm #70465alobaenaParticipant
Hi. First congratullations for the pluging it looks nice but I’m new at this,sorry.
My first problem is that I can’t find the way to link the URL marker to a descripton bellow the map and not in another window.I supose maybe something similar like this:
<p> <id= #001> </p>September 1, 2021 at 5:29 pm #70466alobaenaParticipant(..sorry, I didn’t finish and push enter button)
The point is to move down in the same window and url, not in another.September 2, 2021 at 8:27 am #70472MatthewModeratorHi there,
Thank you for getting in touch with us, we do appreciate your time.
Thank you so much for your kind words, it really means a lot to us and we hope it serves you well!
The functionality that you have described is possible using HTML id targeting. You will first need to ensure that your description that you are wanting to move down to has an ID attribute.
Once that has been done, you can add the respective id into the “Link” input field when creating/editing your marker. An example would be as follows:
The HTML code for your description:
<p id="descriptionOne">My Description</p>
The text that you need to enter for the “Link” input field for your marker:
#descriptionOne
Once this has been done, when you click on your marker link, it should scroll down to the respective description.
Please do let me know if this helps?
Kindest Regards,
MatthewSeptember 2, 2021 at 5:10 pm #70482alobaenaParticipantHello Mathew.
Thank you. I really apreciate your quick response.
Ok. Your instructions works perfectly. But it opens a new window. I can’t find the way to go to link in the same window. Hope you can help me again.
Best.
ALNovember 25, 2021 at 11:22 am #71349mfarmeriParticipantAs implemented on my site’s map, this is not working correctly. As set:
– Click on Map markers opens infowindow
– HTML HTML code included in Marker description box as instructed (e.g. <p id=”descriptionOne”>My Description</p>)
– anchor (e.g. #descriptionOne”) was placed in “Link” input field
– Basic marker list displaying below mapBecause both the infowindow AND the marker list below the map both contain an ID of “descriptionOne” the link in the info window only links to the first instance: the ID in the infowindow and not the ID in the marker list below the map
It’s useless to anchor link within the same infowindow as contains the link.
tl;dr: I’d like the marker on the map to either highlight OR link to the correct marker list item
November 25, 2021 at 11:36 am #71352MatthewModeratorHi @alobaena,
My apologies for the late response, it appears that we did not receive a notification regarding your response on the 2nd of September.
However nonetheless, to ensure that your links do open in a new window/tab, please ensure that the “Open links in a new window” setting (Maps -> Settings -> InfoWindows) is disabled?
I hope this helps?
Kindest Regards,
MatthewNovember 25, 2021 at 11:40 am #71353MatthewModeratorHi @mfarmeri,
Thank you for getting in touch with us, we do appreciate your time.
If I understand correctly, you are having issues with linking to the ID as the ID is displayed in the infowindow as well as in the marker listing. However, you would like to link to the respective ID in the marker listing.
If this is correct, you may use some custom JS code to dynamically remove the ID of the description as the infowindow opens, thus when you click the link, it will only have the ID in the marker listing to link to.
With that said, if you would like some assistance in writing the respective custom JS code, please could I kindly ask if you may provide me with a link to your site so that I may take a closer look?
Please do let me know if this answers your question?
I look forward to hearing back from you.
Kindest Regards,
Matthew -
AuthorPosts
- You must be logged in to reply to this topic.