-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clustering prevents programatically focus to happen #320
Comments
This problem exists because the directive does not know if the marker is moved by a drag action or by the spiderfy animation of the cluster. |
Created a PR solving this issue. Now the popup appears when the marker is in a MarkerCluster Layer and it is visible, if it is inside a MarkerCluster it can't appear. |
Any luck on this? Having the same issue. When clustering, the popup stops showing up when programmatically focusing. I also get this: TypeError: Cannot read property 'style' of undefined. |
I have run into this too. I want to move to the spot and zoom in as tight as possible. Then it would be clever to figure out somehow with a native markercluster function if this item is in a cluster, and programatically open the cluster with a fireEvent, but I haven't wrapped my head around it yet... In the meantime I have changed an option of the L.MarkerClusterGroup in the leaflet.markercluster.js and told it to turn off the clustering at zoom level 18: and this is my function for programatically opening the marker
|
w00t!I got something hobbled together. It must have been the Sandman watching over my shoulder helping me improve the QOB (quality of bugs) in exchange for something that just works, without needing to turn off clustering at any specific zoom level!!! By the way, I am using this version of Leaflet.markercluster from teastman because I am dynamically adding geocoded image assets via socket.io... Furthermore, this has the additional benefit, that when the Problem 1: This is my leaflet div (in jade):
This is my ng-repeat (in a seperate listview div)
This is in my controller.js:
I'd love feedback if someone has an idea how to improve this, especially because I have the feeling that there are a few things here that aren't necessary... |
w00t v2So, I fixed up that previous solution with promises instead of the hacky setTimeout, namespaced the variables and passed them from .then to .then and now its not only smoother but has a somewhat lower memory footprint.
|
this issue still remains in 0.8.5, any progress on it :] ? i'm using the fix that @denjello created for now :] |
I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it. |
@denjello |
I have recently added clustering to my leaflet map but the message popup stopped showing up when the marker is inside a cluster.
As a workaround I have been using $timeout( function () { marker.focus = true }, 1000 ); but I was wondering if this is a bug or if is there any other way to make this happen.
Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: