• Gene

    (@gene158)


    I’m trying to use the wpsl_map shortcode with the category and zoom attributes. But it seems like when using the category and zoom attributes together, the zoom doesn’t seem to work. If I’m just using the id and zoom, then the zoom works fine…

    Here’s the link to the page: https://bit.ly/2zwv8Qu

    I’m running the latest version of WP and WP Store Locator.

    Thanks for looking into this…

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

    (@tijmensmit)

    Does it still happen when you disable this option on the settings page ‘Auto adjust the zoom level to make sure all markers are visible?’ ?

    I suspect since you’re using categories it tries to make it all fit on the map, and thereby ignoring the set zoom level.

    Thread Starter Gene

    (@gene158)

    just tried turning off the auto zoom level setting, still not working…

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I checked the code, and if there’s more then 1 marker on the map the fitbounds function runs making sure everything fits on the map. When that happens the zoom value is ignored.

    Not sure yet if that’s a good or bad thing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wpsl_map shortcode doesn’t seem to work with the zoom attribute’ is closed to new replies.