Re: [mapguide-users] Having problem in adding a layer to the map permanently

2009-08-03 Thread sathishpsk9
HI chandany5, Thank you for your quick reply. Can you tell me what is the purpose of using the following code? if ($gotBBox) { $MinXNode= $doc->getElementsByTagName('MinX')->item(0); $MinXNode->nodeValue = $BldgMinX; $MinYNode= $doc-

Re: [mapguide-users] Having problem in adding a layer to the map permanently

2009-08-02 Thread chandany5
Hi James, Thank you for your quick reply. Can you tell me what is the purpose of using the following code? if ($gotBBox) { $MinXNode= $doc->getElementsByTagName('MinX')->item(0); $MinXNode->nodeValue = $BldgMinX; $MinYNode= $doc->getE

Re: [mapguide-users] Having problem in adding a layer to the map permanently

2009-07-31 Thread James Card
On Fri, 31 Jul 2009 21:50:33 -0700, chandany5 wrote: Thank you for your quick reply. Can you tell me which API should I use to modify the mapDefinitions. I tried many things but still I could not get the layer appear on the map permanently. OK, I dug up some code where we did something sim

Re: [mapguide-users] Having problem in adding a layer to the map permanently

2009-07-31 Thread chandany5
Hi James, Thank you for your quick reply. Can you tell me which API should I use to modify the mapDefinitions. I tried many things but still I could not get the layer appear on the map permanently. James Card wrote: > > On Fri, 31 Jul 2009 03:53:19 -0700, Chandan Kumar > wrote: > >> $byteS

Re: [mapguide-users] Having problem in adding a layer to the map permanently

2009-07-31 Thread James Card
On Fri, 31 Jul 2009 03:53:19 -0700, Chandan Kumar wrote: $byteSource = new MgByteSource($layerDefinition, strlen($layerDefinition)); $byteSource->SetMimeType(MgMimeType::Xml); $resourceId = new MgResourceIdentifier("Library://Samples/Sheboygan/Layers/RecentlyBuilt.LayerDefinition"); $resour

[mapguide-users] Having problem in adding a layer to the map permanently

2009-07-31 Thread Chandan Kumar
Hi, I am a newbie. I want to save a user created layer to the map permanently. I am using the layer created by the code in "change_layers_via_dom.php" given in the developer guide. It gives the layer of parcels which has been built after 1980. Now I want to save this layer to the library and add th