• I use the leaflet wp plugin and set the standard zoom setting to 14. In the front end after a refresh the map is still zoomed in instead of out.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor hupe13

    (@hupe13)

    Each map needs a defined initial state. This can you do either global in the settings or for each map:

    [leaflet-map fitbounds ....]
    [leaflet-map lat=... lng=... zoom=...]

    You seems to have enabled fitbounds in the settings and each map uses this setting.

    Plugin Contributor hupe13

    (@hupe13)

    P.S. Das Copyright zu übersetzen und statt “Leaflet” “Merkblatt” zu schreiben, ist bestimmt nicht richtig.

    Thread Starter kuiperonline

    (@kuiperonline)

    Hupe,

    On the page I have this code

    [leaflet-map fitbounds zoom=15 scrollwheel]
    [fullscreen]
    [leaflet-marker lat=37.72553 lng=23.93671 ]

    and in de plugin settings I have fitbounds selected and zoom = 15 as default.

    Isn’t that correct?

    Thread Starter kuiperonline

    (@kuiperonline)

    In regard to the translation. This is the google translate plugin. I could turn it off, but every browser has the translate option and will do the same thing. So I do not see any harm in it.

    I found following info on this subject:
    How to Disable Google Translate from Translating Specific Words or Content Blocks | Daddy Design

    Plugin Contributor hupe13

    (@hupe13)

    Isn’t that correct?

    Use either – or.

    [leaflet-map fitbounds ....]
    
    [leaflet-map lat=... lng=... zoom=...]

    The effect shows an example I created in response to another question.

    So write:

    [leaflet-map lat=37.72553 lng=23.93671 zoom=15 scrollwheel]
    [fullscreen]
    [leaflet-marker]Some text[/leaflet-marker]

    Regarding translation: Sorry for writing in German, but at first sight it looked like a german site, but at second sight I realized that some things are strange. So the plugin seems to be quite good.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Zoom not working’ is closed to new replies.