Center on Marker ID does not work

New home Forums Basic Version General queries Center on Marker ID does not work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36151
    Skillicorns
    Member

    I have created an article using the following short codes so that the map will open centered on marker 1:
    wpgmza id=’1′ marker=’1′ zoom=’5′

    However, the marker is almost always at the very edge of the map – not centered.

    I have attached some screen-shots illustrating the problem.

    FYI – the location of the marker is dynamically updated so I cannot manually center the map in a single location.

    Best regards

    K

    • This topic was modified 2 years, 2 months ago by Skillicorns.
    • This topic was modified 2 years, 2 months ago by Skillicorns.
    Attachments:
    You must be logged in to view attached files.
    #36157
    Skillicorns
    Member

    I worked around it by dynamically updating the map co-ordinates at the same time as the marker co-ordinates.

    Still think it should work as advertised though.

    #36188
    Perry
    Moderator

    Hi there

    Thanks for getting in touch and thank you for sharing your solution.

    I believe the code that does this fetches the lat and lng for the marker dynamically at load time, however I’ll certainly look into this at the next opportunity.

    Is there anything else we can help you with?

    Kind regards
    – Perry

    #36189
    Perry
    Moderator

    Hi there

    Thanks for getting in touch and thank you for sharing your solution.

    I believe the code that does this fetches the lat and lng for the marker dynamically at load time, however I’ll certainly look into this at the next opportunity.

    Is there anything else we can help you with?

    Kind regards
    – Perry

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.