• Resolved crdunst

    (@crdunst)


    Hi guys, hopefully a quick question for you – is it possible to have a ‘master’ map, and include it on a page with a shortcode, but passing a location to centre the map on that location (either by name or lat/long)?

    It’s for a custom post type of locations, and in our template I’d include the shortcode and pass the location in as an attribute to show the map of that area?

    Thanks in advance.

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

    (@dylanauty)

    Hi @crdunst,

    Thanks for reaching out! Yes, we do support this and quite a few shortcode level overrides.

    The following documentation should be helpful:

    More specifically, what you’d be looking for is:

    [wpgmza id="1" marker="1"]

    Or alternatively, if you’d like to be run with direct coordinates instead:

    [wpgmza id="1" lat="36.778" lng="-119.417" zoom="12"]

    The second option will load at the specific coordinates with the preferred zoom level. The first option will focus on the specific marker, opening it’s info-window as well, if configured to do so.

    I hope that helps?

    Thread Starter crdunst

    (@crdunst)

    That’s perfect, thanks. I’m not sure how I missed your documentation page, but that has everything we need, thanks for your help.

    Plugin Author DylanAuty

    (@dylanauty)

    Glad to hear that helped @crdunst – If you need anything else, give us a shout!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.