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

sathishpsk9 sathishpsk9 at gmail.com
Mon Aug 3 04:47:02 EDT 2009



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->getElementsByTagName('MinY')->item(0);
       $MinYNode->nodeValue = $BldgMinY;
       $MaxXNode            = $doc->getElementsByTagName('MaxX')->item(0);
       $MaxXNode->nodeValue = $BldgMaxX;
       $MaxYNode            = $doc->getElementsByTagName('MaxY')->item(0);
       $MaxYNode->nodeValue = $BldgMaxY;
     } else {
       echo '<pre class="error">Unable to retrieve a valid bounding box for  
the map. Please report this to the system administrator.</pre>';
     }
     


 -- The above code to is to set extents of map to the extents of newly
modified mapdefintion..

At times it is happens that the currently loaded map has got different
extents than newly modified mapdefintion  and you cannot see that new
layer...bcoz it outs of current bounds .........

Thanks 
Satish

-- 
View this message in context: http://n2.nabble.com/Having-problem-in-adding-a-layer-to-the-map-permanently-tp3361903p3376544.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list