[mapguide-commits] r5587 - in trunk/MgDev/Doc/samples/phpsamples:
digitizing_features modifying_maps_and_layers
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Mar 3 09:32:22 EST 2011
Author: jng
Date: 2011-03-03 06:32:22 -0800 (Thu, 03 Mar 2011)
New Revision: 5587
Modified:
trunk/MgDev/Doc/samples/phpsamples/digitizing_features/draw_line.php
trunk/MgDev/Doc/samples/phpsamples/modifying_maps_and_layers/layer_functions.php
Log:
#1614: Fix redlining example due to out of date Layer Definition schema version
Modified: trunk/MgDev/Doc/samples/phpsamples/digitizing_features/draw_line.php
===================================================================
--- trunk/MgDev/Doc/samples/phpsamples/digitizing_features/draw_line.php 2011-03-03 14:27:19 UTC (rev 5586)
+++ trunk/MgDev/Doc/samples/phpsamples/digitizing_features/draw_line.php 2011-03-03 14:32:22 UTC (rev 5587)
@@ -69,8 +69,8 @@
//---------------------------------------------------//
// Open the map
- $map = new MgMap();
- $map->Open($resourceService, $mapName);
+ $map = new MgMap($siteConnection);
+ $map->Open($mapName);
$layerName = "Lines";
$layerLegendLabel = "New Lines";
Modified: trunk/MgDev/Doc/samples/phpsamples/modifying_maps_and_layers/layer_functions.php
===================================================================
--- trunk/MgDev/Doc/samples/phpsamples/modifying_maps_and_layers/layer_functions.php 2011-03-03 14:27:19 UTC (rev 5586)
+++ trunk/MgDev/Doc/samples/phpsamples/modifying_maps_and_layers/layer_functions.php 2011-03-03 14:32:22 UTC (rev 5587)
@@ -25,7 +25,7 @@
// Validate the XML.
$domDocument = new DOMDocument;
$domDocument->loadXML($layerDefinition);
- if (! $domDocument->schemaValidate($schemaDirectory . "LayerDefinition-1.1.0.xsd") ) // $schemaDirectory is defined in common.php
+ if (! $domDocument->schemaValidate($schemaDirectory . "LayerDefinition-1.3.0.xsd") ) // $schemaDirectory is defined in common.php
{
echo "ERROR: The new XML document is invalid.<BR>\n.";
return NULL;
More information about the mapguide-commits
mailing list