[Chameleon] popup from rectangle

Paul Spencer pspencer at dmsolutions.ca
Tue Nov 9 21:26:25 EST 2004


Ken, the navigation tools all use NAV_INPUT_COORDINATES as follows:

point navigation:  NAV_INPUT_COORDINATES="x,y"

rect navigation: NAV_INPUT_COORDINATES="x1,y1;x2,y2"

The query widget has never been changed to allow for rectangle queries, 
mostly because it was originally written to query WMS layers, which only 
allow for point queries.

If you are trying to create a rectangle query tool, I would suggest 
starting from the ZoomIn widget.

Cheers,

Paul

Ken-ichi wrote:
> Hi again.  I'm trying to make a query-like widget that pops up a results 
> window based on a point OR a rectangular selection on the map.  The 
> Query widget seems to handle the point by just opening up a new window 
> and passing it the values in the form variables MAP_CURSOR_POS_X and 
> MAP_CURSOR_POS_Y.  I've been doing my newbie best to sift through the 
> code and find out how the corner coord. of that DHTML rubber-band box 
> gets translated into form variables before the form is submitted by 
> something like ZoomIn, but to no avail.  Can anyone tell me how one 
> accesses both coordinate pairs for a rubber-band box with JavaScript?
> 
> -Ken-ichi
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
Cheers,

Paul

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the Chameleon mailing list