• Resolved mistkaeferl

    (@mistkaeferl)


    I can’t get the zoomhome button to behave: I’d like it to set the map back to its original fitbounds state ideally, but instead it zooms very closely into what I think is the centerpoint of the map when you click the home button. I looked at the documentation of the Extensions Plugin, but I’m not quite sure what I need. I tried different shortcode configurations already.

    At the moment, the map is still simple (I’ll need clusters and extra markers soon, but first I want it to work basically), and my shortcode (apart from all the markers) looks like this:
    [leaflet-map fitbounds height=500 scrollWheelZoom] [zoomhomemap fit]

    There’s a chance I’m completely misunderstanding something, I’m still new to this.
    Thanks so much for any help! Antwort auf Deutsch ist auch perfekt 🙂

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

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

    (@hupe13)

    Erst dachte ich, es liegt an deinem Theme, denn in der Enwicklerkonsole kommt der Fehler:

    The #rescue-center-data element was not found in the DOM!

    Aber dann habe ich es mir installiert und ohne irgendwelche Einstellungen dafür getestet, es funktioniert.

    Wie ist die Option fitbounds bei leaflet-map in den Einstellungen / im Shortcode?

    [leaflet-map fitbounds]

    sollte mit Markern funktionieren.

    Thread Starter mistkaeferl

    (@mistkaeferl)

    Danke für die Antwort. Ach Mist, da lurkt ja noch ein anderes Problem rum, das ich für beseitigt gehalten hatte … aber ja, das sollte mit der Karte nicht in Verbindung stehen.

    Ich habe die Einstellungen auf default, d.h. fitbounds nicht standardmäßig aktiviert. Aber mein Shortcode macht das, denke ich (wenn der Antarktis-Eintrag nicht da ist, sieht es auch besser aus).
    Ich habe fitbounds in den Settings mal probehalber aktiviert, lande aber mit dem Home Button auf meiner Karte immer reingezoomt in Halifax. Sollte ich fitbounds lieber weglassen? Oder über Settings aktivieren und aus dem Shortcode weglassen?

    Plugin Contributor hupe13

    (@hupe13)

    Hast du [zoomhomemap] als letztes angegeben?

    [leaflet-map fitbounds]
    [leaflet-marker lat=... lng=...]Beschreibung1 ....[/leaflet-marker]
    [leaflet-marker lat=... lng=...]Beschreibung2 ....[/leaflet-marker]
    [leaflet-marker lat=... lng=...]Beschreibung3 ....[/leaflet-marker]
    ...
    ...
    [zoomhomemap]
    Thread Starter mistkaeferl

    (@mistkaeferl)

    Oh!
    Problem gelöst, danke dir. (Oje, es ist ja oft irgendwas Einfaches, das man übersieht, aber gnahhh ….)

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

The topic ‘Issue with Home button’ is closed to new replies.