GithubHelp home page GithubHelp logo

ghybs / leaflet.markercluster.freezable Goto Github PK

View Code? Open in Web Editor NEW
30.0 3.0 7.0 67 KB

Adds ability to freeze clusters at specified zoom

License: MIT License

JavaScript 100.00%
leaflet markercluster freezing leaflet-plugins javascript

leaflet.markercluster.freezable's People

Contributors

ghybs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

leaflet.markercluster.freezable's Issues

dynimcally added markers are clustered despite disableClustering

Hello ghybs,

thanks for your work.

I' am using your plugin to enable or disable Clustering in my project (with the latest source code of leaflet, markercluster and freezable). Well, it works fine unless Clustering is disabled and markers will be added afterwards. Those makers will be always clustered.
Updateing the map, for example moving, does partly solve the problem. It will be shown correctly disabled if I enable and disable Clustering again.

I wrote a similar example, as I am using in my project in jsfiddle, with a bit older source but with the same issue:
http://jsfiddle.net/tdj6gmbf/5/
Uncheck "Clustering" and then "Add"

Am I doing something wrong or is this a bug?

Issues with Leaflet 1.3.4 and MarkerCluster 1.4.1

When using this plugin with Issues with Leaflet 1.3.4 and MarkerCluster 1.4.1, when using .addLayer or .addLayer, .removeLayer or .removeLayer, get the following error here and there:
1

Any chance of getting a compatibility update?

How browser freezing can be avoided for 20K plus node unclustering

Since you mentioned in one of your so post answer that after un clustering when large number of markers are loading on the map, it will freeze/hang the browser. It is indeed happening in one of my project where browser is getting hung for 30-40 second then loading all the markers ( 20k+ ) on the map. Do you have solution to this in the version of plugin and can you guide me on this? Also it would be nicer to have a loader which will be notifying the progress of un clustering. Thanks.

bower package

I use a bower package for leaflet and leafler.MarkerCluster, so when I add "<script src="leaflet.markercluster.freezable.js"></script>" to my index.html file it throws an error, I think it's due to that the "Leaflet.MarkerCluster.Freezable" library is loaded before the others.
Is ther a bower package for "Leaflet.MarkerCluster.Freezable" ?

disableClustering() Removes Existing Unclustered Markers

Performing a disableClustering() on a layer that has markers already unclustered, causes those markers to be removed from the feature group of that layer and only the newly unclustered ones to be visible. Panning the view slightly restores these removed markers back to the map.

Markers disapear when adding them to a freezable group

I made a leaflet playground here:
http://playground-leaflet.rhcloud.com/bilav/1/edit?html,output

What I am doing is moving some markers between a regular cluster group and a freezable cluster group. I am doing this to make some individual markers not cluster sometimes.

I find that any marker that exists outside of the original view/zoom of the map disappears when I first add it to the frozen group. Panning the map or changing the zoom makes the markers appear as expected.

Compatibility with leaflet-1.0.0?

I use it without problems with leaflet-1.0.0 and Leaflet.markerCluster. Is leaflet-1.0.0 compatibility official?
If so we should update the README.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.