Petitions too slow?
Jose Manuel C G
gis at mapas-sll.com
Thu Jun 1 12:25:46 EDT 2006
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.
More information about the Mapguide-users
mailing list