[mapguide-commits] r8208 - in sandbox/jng/tiling/Doc/samples: . ol2samples ol2samples/tiled ol2samples/xyz

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Jun 14 08:40:30 PDT 2014


Author: jng
Date: 2014-06-14 08:40:30 -0700 (Sat, 14 Jun 2014)
New Revision: 8208

Added:
   sandbox/jng/tiling/Doc/samples/ol2samples/xyz/
Removed:
   sandbox/jng/tiling/Doc/samples/xyz/
Modified:
   sandbox/jng/tiling/Doc/samples/ol2samples/tiled/index.html
   sandbox/jng/tiling/Doc/samples/ol2samples/xyz/index.html
Log:
Update OL2 samples

Modified: sandbox/jng/tiling/Doc/samples/ol2samples/tiled/index.html
===================================================================
--- sandbox/jng/tiling/Doc/samples/ol2samples/tiled/index.html	2014-06-14 15:02:09 UTC (rev 8207)
+++ sandbox/jng/tiling/Doc/samples/ol2samples/tiled/index.html	2014-06-14 15:40:30 UTC (rev 8208)
@@ -44,7 +44,7 @@
         function createMap(reqFeatures) {
             $.getJSON(mapAgentUrl, {
                 "OPERATION": "CREATERUNTIMEMAP",
-                "VERSION": "2.6.0",
+                "VERSION": "3.0.0",
                 "MAPDEFINITION": "Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition",
                 "USERNAME": "Anonymous", //Or you can use "SESSION": "<my session id>"
                 "REQUESTEDFEATURES": reqFeatures,
@@ -152,6 +152,18 @@
                     });
                     map.addLayer(layer);
                     tiledLayers[group.Name[0]] = layer;
+                } else if (group.Type[0] == "3") { //MgLayerGroupType.BaseMapFromTileSet
+                    var layer = new OpenLayers.Layer.MapGuide("MapGuide base layer group via CREATERUNTIMEMAP: " + group.Name[0], mapAgentUrl + "?USERNAME=Anonymous", {
+                        mapdefinition: rtMapInfo.RuntimeMap.TileSetDefinition[0],
+                        basemaplayergroupname: group.Name[0]
+                    }, {
+                        singleTile: false,
+                        defaultSize: new OpenLayers.Size(
+                            parseInt(rtMapInfo.RuntimeMap.TileWidth[0]),
+                            parseInt(rtMapInfo.RuntimeMap.TileHeight[0]))
+                    });
+                    map.addLayer(layer);
+                    tiledLayers[group.Name[0]] = layer;
                 }
             }
             map.zoomToMaxExtent();

Modified: sandbox/jng/tiling/Doc/samples/ol2samples/xyz/index.html
===================================================================
--- sandbox/jng/tiling/Doc/samples/xyz/index.html	2014-06-09 22:32:06 UTC (rev 8190)
+++ sandbox/jng/tiling/Doc/samples/ol2samples/xyz/index.html	2014-06-14 15:40:30 UTC (rev 8208)
@@ -29,7 +29,7 @@
                 ]
             });
             var layer = new OpenLayers.Layer.XYZ( "XYZ Layer From MapGuide",
-                    "../../mapagent/mapagent.fcgi?OPERATION=GETTILEIMAGE&VERSION=1.2.0&CLIENTAGENT=OpenLayers&MAPDEFINITION=Library://Samples/Sheboygan/TileSets/XYZ.TileSetDefinition&BASEMAPLAYERGROUPNAME=Base+Layer+Group&TILECOL=${y}&TILEROW=${x}&SCALEINDEX=${z}",
+                    "../../mapagent/mapagent.fcgi?OPERATION=GETTILEIMAGE&VERSION=1.2.0&CLIENTAGENT=OpenLayers&MAPDEFINITION=Library://Samples/Sheboygan/TileSets/SheboyganXYZ.TileSetDefinition&BASEMAPLAYERGROUPNAME=Base+Layer+Group&TILECOL=${y}&TILEROW=${x}&SCALEINDEX=${z}",
                     {sphericalMercator: true} );
             map.addLayer(layer);
             map.zoomToExtent(map.restrictedExtent);



More information about the mapguide-commits mailing list