Support » Plugin: WP Store Locator » Zoom in on external button click

  • Hi,

    First of all, thanks for this great plugin!

    I have a query. I have added 4 links(City names) above WPSL shortcode.
    I wanted these links to function like follows:
    If I click on a link, the map will be zoomed on a particular LAT/LONG or on a particular marker in the map which I have added.

    I tried Googling. Found some examples, but can’t figure out how to achieve this from an external script.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit


    This will unfortunately only work if you edit the core files.

    You will need to access the markersArray var that holds a list of the active markers and the lat/lng from those markers.

    If you click on x link, then you can add code to look up a marker with a specific title in the markersArray, and that gives you the coordinates to zoom in on.

    I can’t think of any other way to make that work.

    Hi Tijmen,

    Thanks for the help!

    I will try that and post here if it is successful. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zoom in on external button click’ is closed to new replies.