Integrated Google map: automatically turn off a leader?

enter image description here

Is it possible to stop the leader automatically displaying on the integrated google map? I know that a user can click to cancel it and all that, but as my card is set up, the callout almost always sticks out of the frame, and besides the fact that you look very bad, the name is cropped, making it completely useless. Is there any URL parameter or something that I can pass to an iFrame to stop it from appearing>

+4
source share
1 answer

There is an iwloc parameter that determines where to indicate the info window.

I don't know where it is documented somewhere, but it looks like it works as follows:

  • If the iwloc parameter is absent, the info industry is displayed for the first marker (place), and the A-marker is available

  • When the iwloc parameter is present and is set to a value from AJ, an index pointer is displayed for the marker (location) with the index specified through the iwloc parameter when the marker (location) exists.

So what to do: add the iwloc parameter to iframe-src with a value other than AJ, for example:

&iwloc=false 
+5
source

Source: https://habr.com/ru/post/1403233/


All Articles