[Geomoose-users] Zoom To Selected
FRANZ OKYERE
franzzoa at hotmail.com
Fri Sep 10 10:42:20 EDT 2010
Hi Bill,
You place it in itemquery.php.
After
if(($totalResults == 1 and $firstResult != false) or ($totalResults >= 1 and $zoomToFirst == true)) { $bounds = $firstResult->bounds; printf('GeoMOOSE.zoomToExtent(%f,%f,%f,%f);', $bounds->minx, $bounds->miny, $bounds->maxx, $bounds->maxy); }
That will be with GM 2.0 but with 2.2 the query.php, which I haven't tried it yet- you may have to do a little research.
All the best.
Franz Okyere
GIS Specialist
Ghana
From: bharbour at bcbe.org
To: franzzoa at hotmail.com
Date: Fri, 10 Sep 2010 09:23:55 -0500
Subject: RE: [Geomoose-users] Zoom To Selected
Franz:
Thanks for offering the help!!
Just were should I replace or insert the
code you sent???
Baldwin County Public Schools
Bill Harbour
GIS Coordinator
Information Technology Services
Baldwin County Board of Education
1071 B Ave
Loxley, AL 36551
V 251-580-1916
F 251-972-6851
Office 251-972-6850
bharbour at bcbe.org
http://www.bcbe.org
"When life gets too unreal, sit down
with a good book." - Garrison Keillor
From: FRANZ OKYERE
[mailto:franzzoa at hotmail.com]
Sent: Friday, September 10, 2010
4:55 AM
To: Bill Harbour
Subject: RE: [Geomoose-users] Zoom
To Selected
Dear Bill,
Try this if you dare. If you can access to the results of
your query within an array, then in the query.php you can adopt the following
code which works for me in GM 2.0. What happens is that you get an automatic
zoom to the results of your query.
for( $m = 0; $m < sizeof($maind); $m++){
$fisult = $resultFeatures[$m];
$bounj = $fisult->bounds;
#Monica lewinski
$shpminx =
$bounj->minx;
$shpminy =
$bounj->miny;
$shpmaxx =
$bounj->maxx;
$shpmaxy =
$bounj->maxy;
print "<p>" . "<img
src='find1.png'>" . "<a href=\"javascript:
GeoMOOSE.zoomToExtent($shpminx,$shpminy,$shpmaxx,$shpmaxy)\">" .
"<strong>" .$mapin[$m] . "</strong>" .
"</a>". "</p>". "<p>" .
$mowner[$m] . "</p>";
Franz Okyere
GIS Specialist
From: bharbour at bcbe.org
To: geomoose-users at lists.sourceforge.net
Date: Thu, 9 Sep 2010 15:38:05 -0500
Subject: [Geomoose-users] Zoom To Selected
Is there an equivalent to ESRI’s zoom to
selected??? I’m using a query service to find subdivision(s). All
the parcels in the sub get highlighted. If I do a search that
contains parts of a sub name…say the first letters in multiple phases, then all
of those subs are hightlighted. Is there a way to tell the query service
to zoom to the extent of the selected features??
Thanks,
Baldwin County Public Schools
Bill Harbour
GIS Coordinator
Information Technology Services
Baldwin County
Board of Education
1071 B Ave
Loxley, AL 36551
V 251-580-1916
F 251-972-6851
Office 251-972-6850
bharbour at bcbe.org
http://www.bcbe.org
"When life gets too
unreal, sit down with a good book." - Garrison
Keillor
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by: Show off your parallel programming
skills. Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ Geomoose-users mailing list
Geomoose-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100910/0ad3f33e/attachment.html
More information about the Geomoose-users
mailing list