Quantcast
Channel: Question and Answer » leaflet
Viewing all articles
Browse latest Browse all 198

Leaflet views: how to zoom on the marker while clicking on it in order to get the popup

$
0
0

I am using the module Leaflet and its sub-module “Leaflet views”" in order to get a map displaying markers based on taxonomy terms.

I am able to show a popup displaying the term page while I click on a marker.

Now, my actual requirement is when I click on the marker, the map is zoomed on the clicked marker (zoom of maximum 3 levels) and just after the popup is displayed. So, my map behavior on the marker click event contains two steps: zooming and popup opening.

How can I hook the module in order to enrich my views?


Viewing all articles
Browse latest Browse all 198