geoman-io/leaflet-geoman

CRS Simple Example

Aperta

#1008 aperta il 11 ott 2021

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (404 fork)batch import
good first issueimprovement

Metriche repository

Star
 (1933 stelle)
Metriche merge PR
 (Merge medio 9g 6h) (5 PR mergiate in 30 g)

Descrizione

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

Guida contributor