Diferencia entre revisiones de «Leaflet»

De Wiki Proyectos Beta
Ir a la navegación Ir a la búsqueda
([feat] Add information Layers - Leaflet)
Línea 25: Línea 25:


  const googleStreetsLayer = L.tileLayer(
  const googleStreetsLayer = L.tileLayer(
        "http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",
    "http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",
        {
    {
          maxZoom: 20,
        maxZoom: 20,
          subdomains: ["mt0", "mt1", "mt2", "mt3"],
        subdomains: ["mt0", "mt1", "mt2", "mt3"],
        }
    }
      ).addTo(map);
).addTo(map);

Revisión del 11:00 12 may 2023

Descripción

Última versión estable

La última versión estable es la 1.9.3 que fue lanzada el 21 de septiembre 2022.

Recursos

  • Sitio oficial: EN
  • Documentación oficial: EN
  • Blog oficial: EN

Plugins

  • Leaflet.draw: EN
  • Leaflet.Locate: EN
  • Leaflet.markercluster: EN
  • leaflet-side-by-side: EN

General

Layers

Google Streets

const googleStreetsLayer = L.tileLayer(
    "http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",
    {
        maxZoom: 20,
        subdomains: ["mt0", "mt1", "mt2", "mt3"],
    }
).addTo(map);