Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRS Simple Example #1008

Open
Falke-Design opened this issue Oct 11, 2021 · 1 comment
Open

CRS Simple Example #1008

Falke-Design opened this issue Oct 11, 2021 · 1 comment

Comments

@Falke-Design
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants