[mapguide-users] Mapguide Tiles with OpenLayers

Jackie Ng jumpinjackie at gmail.com
Mon Nov 6 18:00:24 PST 2017


If your tileset is using the XYZ provider, you can consume it in leaflet with
L.tileLayer

Your URL is your mapagent GETTILEIMAGE request, but use your tile set id as
the MAPDEFINITION and use {x} for TILEROW, {y} for TILECOL and {z} for
SCALEINDEX

For example:

L.tileLayer("http://yourmapguideserver/mapguide/mapagent/mapagent.fcgi?OPERATION=GETTILEIMAGE&VERSION=1.2.0&CLIENTAGENT=Leaflet&USERNAME=Anonymous&MAPDEFINITION=Library://Samples/Sheboygan/TileSets/SheboyganXYZ.TileSetDefinition&BASEMAPLAYERGROUPNAME=Base+Layer+Group&TILECOL={y}&TILEROW={x}&SCALEINDEX={z}")

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list