[mapguide-users] Bypassing initial view at startup - and adding
stuart.jones at jacobs.com
Thu Sep 4 07:50:45 EDT 2008
Kenneth Skovhede, GEOGRAF A/S wrote:
> You must add your layer to the MapDefinition in step 1.
OK. I changed my code to do a $map->Create() based upon the Library Map
Definition, whereupon I create the polygon and layer and add it successfully
I save that to an MgResourceIdentifier derived from
Then what I try and do is GetResourceContent() on that MgResourceIdentifier
to load as XML. Then I create a new MgResourceIdentifier derived from
"Session:$sessionId//$sessionMdName.MapDefinition", and when I call
SetResource() against that the script breaks.
I suspect that something is going wrong before that though, because the
script also breaks if I try and echo the variable populated by the saveXML()
View this message in context: http://www.nabble.com/Bypassing-initial-view-at-startup-tp9623015p19308752.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users