[mapguide-users] Syntax of MgResourceIdentifier

GordonL gordon.luckett at arrowgeomatics.com
Wed Feb 17 15:50:00 EST 2010


Hi, I have a new temporary layer I want to add, but I can't name it
dynamically.  For example:

$layerName = "DQN20042";
$tempID = "Session:" . $mgSessionId . '//' . $layerName .
".LayerDefinition";
$tempLayerResId = new MgResourceIdentifier($tempID);

does not work, but...

$tempID = "Session:" . $mgSessionId . "//test.LayerDefinition";
$tempLayerResId = new MgResourceIdentifier($tempID);

Does work.

Any ideas?  
gordon

-- 
View this message in context: http://n2.nabble.com/Syntax-of-MgResourceIdentifier-tp4588434p4588434.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list