[Chameleon] Zoom to Query
wbronsema at dmsolutions.ca
Mon Feb 13 09:18:11 EST 2006
To just refresh the map image without submitting the page, I use a simple
var img = CWCDHTML_GetImage( 'MapLayerDivImg' );
img.src = gMapDHTMLURL + "&ts="+Math.random();
William A. Bronsema, C.E.T.
Software & Applications Development,
DM Solutions Group Inc.
> -----Original Message-----
> From: chameleon-bounces at lists.maptools.org [mailto:chameleon-
> bounces at lists.maptools.org] On Behalf Of scdyoung at tpg.com.au
> Sent: Sunday, February 12, 2006 7:44 PM
> To: chameleon at lists.maptools.org
> Subject: [Chameleon] Zoom to Query
> Hi all,
> I have been attempting to write a query widget that will zoom to the
> extents of a selected feature (in
> this case a polygon).
> Using the 'executeQuery' function from utils I am to isolate the required
> layer and shape indexes,
> and extract the appropriate shape bounds. I am then able to set the new
> extents of $oMapSession-
> >oMap accordingly, though am unsure as to how I 'refresh' the mapping
> interface; note that this is
> my first attempt at writing my own widget.
> Any help/direction would be appreciated.
> Chameleon mailing list
> Chameleon at lists.maptools.org
More information about the Chameleon