<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><P>Hi Vishal,</P>
<P> </P>
<P>Try this php code as provided by Ary Sucaya</P>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$userInfo = new MgUserInformation($sessionId);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$siteConnection = new MgSiteConnection();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$siteConnection->Open($userInfo);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$map = new MgMap($siteConnection);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$map->Open($mapName);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$queryOptions = new MgFeatureQueryOptions();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$queryOptions->SetFilter("$attributeName = '$attributeValue'");</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$layer = $map->GetLayers()->GetItem($layerName);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$featureReader = $layer->SelectFeatures($queryOptions);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selection = new MgSelection($map);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selection->AddFeatures($layer, $featureReader, 0);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selectionXml = $selection->ToXml();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">echo $selectionXml;</P>
<P><FONT size=2> </FONT></P>
<P>execute that php code from your javascript function and add <FONT size=2><STRONG><FONT size=3>parent.parent.mapFrame.ExecuteMapAction(10);</FONT></STRONG> subsequently</FONT></P>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Cheers !!</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Max<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Vishaal <vs2k2000@rediffmail.com><BR>To: mapguide-users@lists.osgeo.org<BR>Sent: Friday, February 29, 2008 1:34:58 PM<BR>Subject: Re: [mapguide-users] Select To Features & Zoom<BR><BR><BR>Hi Max,<BR><BR>i too want to do the same zoom to selected parcel thing. i have a list of<BR>records selected and now i want that if i click on a record then that record<BR>should get zoomed into. can you share your code with me and the logic about<BR>it....<BR>thanks in advance..<BR><BR>regards,<BR>Vishal<BR><BR><BR>max_samart wrote:<BR>> <BR>> Hi All,<BR>> I am working on some application and what i want to do is that<BR>> when i query and get the results in the grided format with icon(Link) for<BR>> the records and when i click on that link/icon I can zoom to
that<BR>> geometry (ZoomToView) as well as select that geometry and display the<BR>> record in the property pane,I am able to do the zoom to view for different<BR>> record but how can i select the features as well as display the property<BR>> in the property pane at the same time.Looking for some kind of<BR>> suggestions.<BR>> <BR>> Cheers <BR>> Max !!<BR>> <BR>> <BR>> <BR>> ____________________________________________________________________________________<BR>> Looking for last minute shopping deals? <BR>> Find them fast with Yahoo! Search. <BR>> <A href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target=_blank>http://tools.search.yahoo.com/newsearch/category.php?category=shopping</A><BR>> _______________________________________________<BR>> mapguide-users mailing list<BR>> <A href="mailto:mapguide-users@lists.osgeo.org"
ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>> <A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>> <BR>> <BR><BR>-- <BR>View this message in context: <A href="http://www.nabble.com/Select-To-Features---Zoom-tp14879630s16610p15752959.html" target=_blank>http://www.nabble.com/Select-To-Features---Zoom-tp14879630s16610p15752959.html</A><BR>Sent from the MapGuide Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR><A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
<hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping">
Find them fast with Yahoo! Search.</a></body></html>