leaflet icon indicating copy to clipboard operation
leaflet copied to clipboard

Plugins

Open yihui opened this issue 9 years ago • 22 comments

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

yihui avatar May 13 '15 23:05 yihui

+1 for Leaflet.markercluster

rbdixon avatar May 19 '15 15:05 rbdixon

@rbdixon Heard you. I have moved it to the top of the list :)

yihui avatar May 19 '15 20:05 yihui

+1 for Proj4Leaflet.

lmullen avatar May 19 '15 21:05 lmullen

@lmullen I'll work on them this week. Thanks!

yihui avatar May 19 '15 21:05 yihui

Is there any downside to automatically applying L.Sleep on every map? (vs. just knitr/Shiny ones)

jcheng5 avatar May 19 '15 22:05 jcheng5

The esri one looks pretty powerful

pssguy avatar May 19 '15 23:05 pssguy

@jcheng5 I think it makes sense to use L.Sleep by default on all maps.

yihui avatar May 20 '15 06:05 yihui

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 ?

fxi avatar Jun 02 '15 07:06 fxi

Leaflet.label would be quite nifty for the type of maps I make most often :+1:

cjtexas avatar Jun 22 '15 15:06 cjtexas

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!

asiegmann avatar Aug 05 '15 17:08 asiegmann

I've integrated 6 plugins so far https://github.com/bhaskarvk/leaflet/branches .

More to come.

bhaskarvk avatar Sep 11 '15 16:09 bhaskarvk

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

wushuzh avatar Oct 09 '15 08:10 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.

wmcraver avatar Jan 19 '16 21:01 wmcraver

I'd like to add Leaflet.locate to the list.

ilarischeinin avatar Jun 07 '16 14:06 ilarischeinin

I implement a similar plugin into leaflet.https://github.com/byzheng/leafletplugins

byzheng avatar Jun 07 '16 20:06 byzheng

+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!

jeremy-allen avatar Sep 12 '16 22:09 jeremy-allen

@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'
        });
    } ")))

bhaskarvk avatar Sep 13 '16 03:09 bhaskarvk

@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.

bhaskarvk avatar Sep 13 '16 15:09 bhaskarvk

http://rpubs.com/bhaskarvk/leaflet-marker-clusterming Here are the new features aded to the cluster plugin.

bhaskarvk avatar Sep 13 '16 18:09 bhaskarvk

+1 need Leaflet.animatedMarker to demonstrate the trajectory path.

harryprince avatar Nov 22 '18 07:11 harryprince

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 avatar Feb 17 '20 21:02 ccamara

@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!

ComeMaes avatar Nov 12 '20 15:11 ComeMaes