Git Product home page Git Product logo

Comments (1)

oliverheilig avatar oliverheilig commented on May 28, 2024

Hello,

NonTiledLayer doesn't simply use the screen size, it also considers the maximum geographic boundaries for which the WMS can deliver an image. Before a request the layer calculates the intersection of the map-view with the maxbounds, and also calculates the corresponding pixel widht and height (which can be smaller than the pixelBounds of the map).

The bounding box for a WMS layer is usually defined in the getCapabilities. If you don't know it you can try to set at the layer options L.latLngBounds([-90, -180], [90.0, 180])

When you say that your WMS works great with the LL tileLayer, are you sure your map is really at the correct location? What i mean is can you place a marker correctly on top of the map? AFAIK you would have to implement a custom crs class, see

https://leafletjs.com/reference-1.5.0.html#crs

and set it as crs for the map. Then NonTiledLayer should also work as expected. Leaflet works great with lat/lng push-pins on a "google-tiles" base map, but if you have to use different projections it may become a bit annoying. There is a similar question regarding this issuue #23

Oli

from leaflet.nontiledlayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.