geoman-io/leaflet-geoman

CRS Simple Example

Offen

#1.008 geöffnet am 11.10.2021

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (404 Forks)batch import
good first issueimprovement

Repository-Metriken

Stars
 (1.933 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 9T 6h) (5 gemergte PRs in 30 T)

Beschreibung

It would be good, if we have a sample with CRS-Simple Map.

The JS-Code would be:

      var map = L.map('map', {
        crs: L.CRS.Simple,
        minZoom: -2,
      });

      var bounds = [
        [0, 0],
        [1000, 1000],
      ];
      var image = L.imageOverlay(
        'https://leafletjs.com/examples/crs-simple/uqm_map_full.png',
        bounds
      ).addTo(map);

      map.fitBounds(bounds);
      map.pm.addControls();

We need someone who makes the html around it like index.html

Contributor Guide