Hot answers tagged

4 votes
Accepted

Find correct URL for WMTS Time layer for Leaflet

The layer you are trying to display is not WMS layer, so you can't display it as L.tileLayer.wms layer. It's WMTS layer, which means it's raster tile layer, so you have to use plain L.tileLayer layer. ...
TomazicM's user avatar
  • 25k
3 votes

Leaflet - Customer Tile Cache Scheme Review, Munich

No matter what I tried and where I specified maxZoom option, when custom layer was created it had maxZoom option set to 18. The only working solution seems to be to use L.setOptions method to set ...
TomazicM's user avatar
  • 25k
2 votes

Are lines drawn on most web maps wrong?

Just some info to help debug. What I did to verify was use your Mapbox link. In your Mapbox code, you declare centerPoint, but you dont use it. However it does have values hardcoded, which im going to ...
nr_aus's user avatar
  • 3,455
1 vote
Accepted

How to use AJAX request to filter WFS data?

Reason why $.ajax call does not work is missing &outputFormat=application/json parameter in the WFS url, so returned result is not JSON and so $.ajax rejects it. Since you don't have error ...
TomazicM's user avatar
  • 25k
1 vote

Gamma correction of Sentinel-2 imagery using Leaflet

Solved: I used this approach parseGeoraster(url_to_geotiff_file).then(function (georaster) { console.log("georaster:", georaster); // based on https://custom-scripts.sentinel-...
scriptDaddy's user avatar
1 vote

Leaflet - Customer Tile Cache Scheme Review, Munich

For those interested, here is the complete code (LiveViewWorkaround). I will soon deactivate the external links contained above. <script type="text/javascript"> var map = L.map('map',{...
Christian Naujoks's user avatar
1 vote

Leaflet custom layers: how to make them to be combined by user?

Another possibility (to make transition from one selection to another more smooth) is to again use dummy empty layer groups just for selection of properties that are to be used when requesting WMS ...
TomazicM's user avatar
  • 25k
1 vote
Accepted

Leaflet custom layers: how to make them to be combined by user?

One possible solution is to use dummy empty layer groups just for selection of properties that are to be used when requesting WMS layer. Logic goes like this: Create as many dummy empty layer groups ...
TomazicM's user avatar
  • 25k

Only top scored, non community-wiki answers of a minimum length are eligible