[mapguide-users] RE: Petitions too slow?

Andy Morsell amorsell at spatialgis.com
Fri Jun 2 11:58:02 EDT 2006


Yes, when programmatically selecting an object (not manually by clicking it)
the object highlights on the map but the data in the properties window does
not appear.   


Andy 

-----Original Message-----
From: Butler, Juan P [mailto:jpbutler at co.pinellas.fl.us] 
Sent: Friday, June 02, 2006 6:54 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] RE: Petitions too slow?

Andy:

I'm sorry; I caught the tail end of this thread.  What is not happening for
you when selecting an item?  The data in the Properties window not
appearing?

- Juan

-----Original Message-----
From: Andy Morsell [mailto:amorsell at spatialgis.com]
Sent: Thursday, June 01, 2006 6:16 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] RE: Petitions too slow?

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.


Andy 

-----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 :)

Cheers,

Here is my code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
   <body class="AppFrame" onLoad="OnPageLoad()"> <?php include
'appconstants.php';
 
			$refcat = trim($_GET['REFCAT']);
			
			$queryOptions = new MgFeatureQueryOptions();
			
			if (strlen($refcat) > 0){
				$queryOptions->SetFilter("ID LIKE '" .
$refcat . "'");
				$featureResId = new
MgResourceIdentifier("Library://21015/Data/Parcels.FeatureSource");
				$featureReader =
$featureService->SelectFeatures($featureResId,
"Parcels", $queryOptions);
				$layer =
$map->GetLayers()->GetItem('Parcels');

			$selection = new MgSelection($map);
			$selection->AddFeatures($layer, $featureReader,
0);
			$selectionXml = $selection->ToXml();
?>
   </body>
   <script language="javascript">
      function OnPageLoad()
      {
         selectionXml = '<?php echo $selectionXml; ?>'; 
         parent.parent.SetSelectionXML(selectionXml);
		 parent.ZoomToView(<?= $_GET['X'] ?>, <?= $_GET['Y'] ?>,
<?=
$_GET['Scale'] ?>, true);
      }
   </script>
</html>
--
View this message in context:
http://www.nabble.com/Petitions+too+slow--t1715911.html#a4665152
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




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


---------------------------------------------------------------------
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