Relative Content

Tag Archive for javascriptmapsopenlayersopenlayers-6mapguide

Calculate the XYZ tile grid given an extent and resolution for a MapGuide server using OpenLayers

I’m trying to add a tiled map from MapGuide to my OL map. However, with my current code, the X and Y values in the request call are incorrect. I have tried specifying the tile grid with resolutions and extents, but it seems to have no effect. I have also considered using WMTS with a WMTS grid, but given the structure of the call I need to make, it doesn’t seem to be supported. How can I transform the tileCoord that Open Layers is generating to the ones I need to request?