Leaflet/Leaflet

More tutorials needed

Open

#4239 aperta il 15 feb 2016

Vedi su GitHub
 (21 commenti) (0 reazioni) (0 assegnatari)JavaScript (6124 fork)batch import
docshacktoberfest2023help wanted

Metriche repository

Star
 (45.018 star)
Metriche merge PR
 (Merge medio 43m) (1 PR mergiata in 30 g)

Descrizione

The tutorials page needs some love. Leaflet has a lot of features, but there are tutorials for just a bunch of them.

We should spend some time converting some of the pages in the debug/ directory into tutorials/examples.

A non-comprehensive list:

  • Complete newbie's guide to How To Use a Leaflet Plugin
  • Image overlays (prettier version of image-overlay.html) https://github.com/Leaflet/Leaflet/pull/8090
  • Map bounds (with bounceAtBounds)
  • Layer opacity
  • WMS (with special attention to Leaflet/WMS nomenclature about the term "layer")
  • Fractional zoom controls (prettier version of zoomdelta.html)
  • setView, setZoom, fitBounds and flyTo (prettier version of zoompan.html)
  • L.CRS.Simple
  • Custom CRSs (using, for example, a map of the galaxy with galactic CRS)
  • A primer on how to create Leaflet plugins (L.Class, L.Class.include vs L.Class.extend, etc)
  • Event propagation, and how to stop click events from reaching the map (this is going to be a FAQ)

From #3271:


  • Link to external tutorials (#1087)

  • How to dynamically reset the styles of Markers and CircleMarker and Polylines (setIcon, setOpacity, setStyle et al) (from #5084)



Suggestions from this thread:

Guida contributor