[rosa-users] Automatic zoom to query extents or specific points on the map?

Stephen H. Savage shsavage at asu.edu
Fri Jun 2 14:02:58 EDT 2006


Greetings,

   By way of background, I have a MapServer application built with GMap Factory
that uses the ROSA toolbar (see the attached image).  The map serves up
satellite images and shapefiles that are linked to an external MySQL database. 
The primary page has a frame on the left for the map and a frame on the right
for database functions.  I've also modified the query.phtml file generated by
GMap factory to pull only the primary key field values out of the shapefile,
and use them to query the associated MySQL table, displaying the results in the
popup window along with a links to view the record detail or edit it.  Pressing
one of these links opens the appropriate form in the right frame of the parent
window.

So, the map to database side is working fine, but now I need to fire events on
the map based on what happens in the database.  Specifically, I need to do two
things:

1.  When I do a map query, how can I make the map automatically zoom to the
extent of the query (or a bit larger if the query area is very small)?

2.  In the database frame, when a detail of edit form opens on one record,
triggered from the popup, how can I cause the map to center on the assoicated
point location, zoom in, and highlight the spot?

Thanks,

-Steve

Stephen H. Savage, Affiliate Professor and Director
Geo-Archaeological Information Applications (GAIA) Lab
School of Human Evolution and Social Change
Box 872402
Arizona State University
Tempe, AZ  85287-2402

shsavage at asu.edu

http://gaialab.asu.edu/home  -  The GAIA Lab's home page
http://archaeology.asu.edu/Jordan  -  Personal home page 
----- End forwarded message -----



Stephen H. Savage, Affiliate Professor and Director
Geo-Archaeological Information Applications (GAIA) Lab
School of Human Evolution and Social Change
Box 872402
Arizona State University
Tempe, AZ  85287-2402

shsavage at asu.edu

http://gaialab.asu.edu/home  -  The GAIA Lab's home page
http://archaeology.asu.edu/Jordan  -  Personal home page 


More information about the ROSA-users mailing list