Leaflet/Leaflet

More tutorials needed

Open

#4.239 aberto em 15 de fev. de 2016

Ver no GitHub
 (21 comments) (0 reactions) (0 assignees)JavaScript (6.124 forks)batch import
docshacktoberfest2023help wanted

Métricas do repositório

Stars
 (45.018 stars)
Métricas de merge de PR
 (Mesclagem média 43m) (1 fundiu PR em 30d)

Description

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:

Guia do colaborador