Comments (1)
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)
- Pane option HOT 3
- Issue when using EPSG4326 Projection HOT 11
- Version control (npm) HOT 6
- Default pane invalid HOT 2
- Error Handling
- Licence information HOT 2
- NoWrap option not available HOT 2
- bringToBack and bringToFront not working HOT 3
- Blinking in Mozilla Firefox 50.1.0 HOT 6
- Vaadin Plugin HOT 3
- WMS goes to upper left corner when zooming in HOT 7
- Replace L.Mixin.Events with L.Evented HOT 3
- Support the 'loading' event HOT 1
- WMS getImageUrl Question HOT 2
- Add TypeScript type definitions HOT 12
- WMS Option detectRetina HOT 4
- GetFeatureInfo HOT 3
- Event handler for end of process HOT 3
- Add your plugin to Leaflet plugins site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet.nontiledlayer.