jeudi 26 mars 2015

How to open marker popup within my map area without zooming and automatically panning?

I need to open marker popup within my map area without zooming and automatically panning. The problem usually occurs when the marker is in the edge side.


so for this i found one useful library here : http://ift.tt/1IycuUs


the following code works fine for me on cluster markers:


this.markers.on('clusterclick', function(e){ var hover_bubble = new L.Rrose({ offset: new L.Point(0,-10), closeButton: false, autoPan: false }) .setContent(jj) .setLatLng(kk) .openOn(hh); });


I do have other normal markers other than cluster markers.


So for normal markers, i tried :


this.markers.on('click', function(e){ var hover_bubble = new L.Rrose({ offset: new L.Point(0,-10), closeButton: false, autoPan: false }) .setContent(jj) .setLatLng(kk) .openOn(hh); });


which is not working. How to make it work for normal markers also...





Aucun commentaire:

Enregistrer un commentaire