<div dir="ltr">Hi,<div>I'm using OL 3/4 for an application where a TMS layer is defined:</div><div><br></div><div>new ol.layer.Tile({<br></div><div><div>   source: new <a href="http://ol.source.XYZ">ol.source.XYZ</a>({</div><div>      url: "<a href="http://localhost:8080/tms/1.0.0/mylayer/webmercator/{z}/{x}/{-y}.png">http://localhost:8080/tms/1.0.0/mylayer/webmercator/{z}/{x}/{-y}.png</a>",</div><div>   })</div><div>})</div></div><div><br></div><div>(the inverted "y" in a XYZ layer makes it behave as a TMS layer).</div><div><br></div><div>The map is EPSG:3857 and the layer source (WMS service) is also EPSG:3857</div><div><br></div><div>This OL app works perfectly with other cache tools, like mapcache, with a standard mercator grid.</div><div>When I use it with MapProxy things get wrong becasue TileServiceGrid skips the first level for GLOBAL_(WEB)MERCATOR : <a href="https://github.com/mapproxy/mapproxy/blob/master/mapproxy/service/tile.py#L381">https://github.com/mapproxy/mapproxy/blob/master/mapproxy/service/tile.py#L381</a></div><div><br></div><div>If self._skip_first_level is forced to False everything goes fine.</div><div><br></div><div>I noticed that even in you OpenLayers 2 Demo you start resolutions from 78271.516964, which is the second level of the the classical mercator grid.</div><div><br></div><div>My questions are: </div><div><br></div><div> - why is the first level skipped? </div><div> - how could I define a GLOBAL_WEBMERCATOR grid without skipping the first level? I don't want to force it at level of (internal) code, obviusoly.</div><div><br></div><div>Thanks so much,</div><div>Giovanni </div><div><br></div></div>