[mapguide-users] RE: Petitions too slow?

Andy Morsell amorsell at spatialgis.com
Thu Jun 1 18:15:57 EDT 2006

That's pretty close to what I am doing, but I still can't get it to work
consistently.  I had started using
parent.parent.SetSelectionXML(selectionXml); but discovered that by simply
doing a MGSelection.Save at the server worked, but no Properties displayed.
I fiddled around with it a little more and re-implemented the JavaScript
side of things.  In IE7 it started showing properties, but for the incorrect
object (even though the correct object was highlighted).  In Firefox, it
would highlight but not display the properties.

I'm starting to think this may be a bug in the .NET implementation of the
API since that is our only difference - you are using the PHP version.


-----Original Message-----
From: Jose Manuel C G [mailto:gis at mapas-sll.com] 
Sent: Thursday, June 01, 2006 9:26 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] RE: Petitions too slow?

Well, all is in the examples and documentation. I modified gotopoint.php and
use xml. Maybe is not a clean solution, but work :)


Here is my code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   <body class="AppFrame" onLoad="OnPageLoad()"> <?php include
			$refcat = trim($_GET['REFCAT']);
			$queryOptions = new MgFeatureQueryOptions();
			if (strlen($refcat) > 0){
				$queryOptions->SetFilter("ID LIKE '" .
$refcat . "'");
				$featureResId = new
				$featureReader =
"Parcels", $queryOptions);
				$layer =

			$selection = new MgSelection($map);
			$selection->AddFeatures($layer, $featureReader, 0);
			$selectionXml = $selection->ToXml();
   <script language="javascript">
      function OnPageLoad()
         selectionXml = '<?php echo $selectionXml; ?>'; 
		 parent.ZoomToView(<?= $_GET['X'] ?>, <?= $_GET['Y'] ?>, <?=
$_GET['Scale'] ?>, true);
View this message in context:
Sent from the OSGeo MapGuide forum at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org

More information about the Mapguide-users mailing list