New home › Forums › Pro Add-on › Suppress InfoWindow Entirely
- This topic has 5 replies, 3 voices, and was last updated 1 week ago by Matthew.
February 17, 2023 at 3:49 pm #76424t.bickelParticipant
I beg your pardon if there is already a topic on this. I promise I searched diligently for the answer before posting this here.
How do I suppress the InfoWindow from popping up at all? In the case I have attached, I do not want the “balloon” to appear when the user clicks on the polygon area. I want the user to go directly to the link I have already put in the polygon settings.
Again, please forgive me if this super basic. I have practically stared a hole through my screen trying to figure it out!February 17, 2023 at 3:51 pm #76425t.bickelParticipant
Not sure if the map uploaded. Trying again here.February 17, 2023 at 3:51 pm #76426t.bickelParticipant
Not sure if the map uploaded. Trying again here.
Attachments:You must be logged in to view attached files.February 20, 2023 at 11:23 am #76446MatthewModerator
Thank you for getting in touch with us, we do appreciate your time.
Unfortunately we do not have a setting for this, however, this is possible using some custom JS code which you may find in one of my Gists here: https://gist.github.com/MatthewCodeCabin/479cbebd21436a3476e966b778b3d2d4
Please may you save the code into the “Custom JS” setting block (Maps -> Settings -> Advanced Settings/Custom Scripts)?
Once this has been done, please clear your browser cache and confirm if this helps?
MatthewMarch 18, 2023 at 2:23 am #76746SJNBhamParticipant
Hi – Is there a way to apply this custom code to a single map instead of all maps?
We also submitted an enhancement request for an option to set this behavior in individual maps Advanced Settings similar to the “Click marker opens link” but for polygons. Or to combine them into “Click marker or polygon opens link”. It looks like there’s been interest in this feature based on the multiple forum posts related to this.
Thanks!March 24, 2023 at 2:49 pm #76804MatthewModerator
Thank you your response and time on this, I really appreciate it!
The only way to apply the custom code to a single map would be to check for the map ID on the page and then execute the code if the respective map ID is found.
With regards to your ‘enhancement’ request, please may I ask if you may provide me with the link to your map so that I may take a closer look and possibly write the custom code needed for you?
- You must be logged in to reply to this topic.