Proj4Leaflet create CRS scales/resolution from WMTS getCapacilities ScaleDenominator

المشرف العام

Administrator
طاقم الإدارة
I trying to set up the CRS scales/resolution for a map accordingly to the provided information of an WMTS getCapabilities request. At the moment I'm playing with the following service.

The service provides me with the following TileMatrix information:

00 1889880.95238 200000.0 6075000.0 256 256 3 2 ... Based on an OpenLayers example from this source the resolutions should be:

[ 529.166666667, ... ] I've created a fiddle that uses the resolutions specified in the example. Using these informations the map displays as expected. But how do I calculate the resolution based on the provided ScaleDenominator?



أكثر...
 
أعلى