leaflet
leaflet copied to clipboard
Plugins
Some potentially interesting plugins:
- [x] Leaflet.markercluster https://github.com/Leaflet/Leaflet.markercluster
- [x] Proj4Leaflet https://github.com/kartena/Proj4Leaflet
- [x] Esri Leaflet http://esri.github.io/esri-leaflet
- [ ] Leaflet Vector Layers https://github.com/JasonSanford/leaflet-vector-layers
- [x] Leaflet.label https://github.com/Leaflet/Leaflet.label
- [x] Leaflet.Awesome-Markers https://github.com/lvoogdt/Leaflet.awesome-markers
- [ ] OSM Buildings https://github.com/kekscom/osmbuildings
- [ ] Leaflet.AnimatedMarker https://github.com/openplans/Leaflet.AnimatedMarker
- [X] ~~Overlapping Marker Spiderfier~~ https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet. (Not needed once Marker Plugin is upgraded to latest ver.)
- [ ] ~~HeatCanvas https://github.com/sunng87/heatcanvas~~
- [ ] Leaflet Data Visualization Framework https://github.com/humangeo/leaflet-dvf
- [x] leaflet-search https://github.com/stefanocudini/leaflet-search
- [ ] Angular Leaflet directive https://github.com/tombatossals/angular-leaflet-directive
+1 for Leaflet.markercluster
@rbdixon Heard you. I have moved it to the top of the list :)
+1 for Proj4Leaflet.
@lmullen I'll work on them this week. Thanks!
Is there any downside to automatically applying L.Sleep on every map? (vs. just knitr/Shiny ones)
The esri one looks pretty powerful
@jcheng5 I think it makes sense to use L.Sleep by default on all maps.
What about https://github.com/SpatialServer/Leaflet.MapboxVectorTile ? I was looking for a way to serve and render large amount of vector data quickly. So protobuf was the answer, using PGRestAPI and Leaflet.MapboxVectorTile. Example: 700k confetti (sources). What do you think ?
Leaflet.label would be quite nifty for the type of maps I make most often :+1:
Hi! I would be really interested in seeing the leaflet-dvf plug-in. In fact, I have started on this project myself, and would really love to contribute if possible! My focus has been on the various marker options. I have successfully gotten the L.RegularPolygonMarker, L.DiamondMarker, and L.StarMarker to work, but am having difficulty getting the chart markers to work. I believe the issue lies in passing the point data needed to generate the marker charts through R and into the JS plug-in in the correct format. I have no issue passing the lat/lng data through, but am stuck with the point-associated data. Any thoughts or suggestions?
Here is the link to the code I've been working with! https://github.com/asiegmann/RLeaflet-DVF
Thanks for making this great package! I've enjoyed using it and working with it!
I've integrated 6 plugins so far https://github.com/bhaskarvk/leaflet/branches .
More to come.
Hello,
Is it possible to add arrow with the line on leaflet so as to show the direction of the line ?
https://github.com/meteotest/leaflet-arrows
Best regards, wushuzh
I would love to see the OverlappingMarkerSpiderfier integrated. I'm working on a project to map thousands of clinical placements and sometimes have 10+ students at a site (same lat/lon). Clustering is nice, until you have to click multiple times to see all of the students at one site to differentiate each student's subject area. It would be nice to be able to zoom in and out to see all of the placements.
I'd like to add Leaflet.locate to the list.
I implement a similar plugin into leaflet.https://github.com/byzheng/leafletplugins
+1 for OverlappingMarkerSpiderfier. I'm in a similar situation as wmcarver. However, the current cluster option would work for me if I could control the color of the cluster markers. They default to shades of red, yellow, green, which does not work for me because my client must have circle markers that are red yellow and green, which must be in the legend; but then the legend conflicts with the cluster markers because the cluster colors are not intended to reflect the circle marker colors. I would like just grey cluster markers. That way the colors in my legend won't be confused with the cluster colors. If that's not possible, then the OverlappingMarkerSpiderfier would be great!
@18chains A some what convoluted way of achieving what you want.
library(leaflet)
leaflet(quakes) %>% addTiles() %>%
addMarkers(clusterOptions =
markerClusterOptions(iconCreateFunction = JS("
function(cluster) {
return new L.DivIcon({
html: '<div style=\"background-color:rgba(77,77,77,0.55)\"><span>' + cluster.getChildCount() + '</div><span>',
className: 'marker-cluster'
});
} ")))
@18chains @wmcraver I am migrating the cluster plugin to the latest version which has support for spidering of overlapping markers, so overlapping cluster plugin will not be needed after that.
http://rpubs.com/bhaskarvk/leaflet-marker-clusterming Here are the new features aded to the cluster plugin.
+1 need Leaflet.animatedMarker to demonstrate the trajectory path.
Hello, I was looking for a way to implement the same (or very similar) behaviour for showing markers that are overlapped like the one provided in https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet. I've seen that there is a note on the issue's description that states that that plugin would no longer be needed when Marker Plugin is upgraded to latest ver.
Since that item has been redacted, I am assuming that Marker Plugin (whatever it is) has been updated to the last version, but I do not know how should I use it in order to get what I am looking for, neither I found anything on the documentation https://rstudio.github.io/leaflet/
Could you please give me some orientation with that?
@ccamara I think @bhaskarvk was referring to the marker clustering plugin. However, I don't see how this plugin addresses the need for the OverlappingMarkerSpiderfier plugin, which does allow spiderfication only for overlapping markers. To my knowledge, there's no way to achieve that with the marker clustering: it will cluster markers according to zoom and marker count, until you reach maxZoom or freezeAtZoom... But what if you don't want the markers to be clustered in the first place?
I think the mention "Not needed once Marker Plugin is upgraded to latest ver." in the plugin list gives the wrong idea.
If you've found/implemented a solution, I'm interested!