• Resolved acmdesigns

    (@acmdesigns)


    In previous versions of WP Google Maps (v6), I was able to use the globally scoped openInfoWindow() function and simply pass the marker ID.

    After upgrading to v8, this is no longer possible. How can I do it assuming I have the marker ID?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DylanAuty

    (@dylanauty)

    Hi @acmdesigns,

    Thank you for getting in touch, my apologies for the trouble experienced.

    During recent updates, we worked on the overall core code structures to improve the features available to developers.

    The preferred method of opening an info-window by it’s marker ID can be seen below:
    WPGMZA.getMapByID(1).getMarkerByID(1).openInfoWindow();

    Where the 1 within the getMapByID() method would be the map ID and the 1 within the getMarkerByID() would be the marker ID.

    From there you have access to the marker instance and call the openInfoWindow() method to open the info-window accordingly.

    I hope this helps?

    • This reply was modified 3 years, 8 months ago by DylanAuty.
    Thread Starter acmdesigns

    (@acmdesigns)

    Thanks. This was exactly what I needed and it works beautifully. Is there any documentation for this or other development-related help on the site?

    Plugin Author DylanAuty

    (@dylanauty)

    Hi @acmdesigns,

    Fantastic news, so glad to hear that helped!

    Unfortunately, we don’t have developer-oriented documentation at this stage, but it is something we are working on for the future, as the architecture improves!

    With that said, you are welcome to reach out to us at any stage if you do have other development questions, happy to help! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how do I programatically open the marker info window?’ is closed to new replies.