geoman-io/leaflet-geoman

CRS Simple Example

Open

#1,008 建立於 2021年10月11日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (1,933 star) (404 fork)batch import
good first issueimprovement

描述

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

貢獻者指南

CRS Simple Example · geoman-io/leaflet-geoman#1008 | Good First Issue