Hi,

On 6/27/07, Steven M. Ottens <[EMAIL PROTECTED]> wrote:
> I'm trying to get getFeatureInfo working on MapPaneOL but so far I've
> been out of luck *). However when checking the example in MapViewer demo
> I noticed that none of the maps of devgeo.cciw.ca is working. Anyone
> knows if this is a temporary thing or that we need to change the urls?

I just tried, and the maps worked for me.

> *) the generated request doesn't have an X and Y parameter, which is due
> to a missing containerModel, which WebServiceRequest.js needs. I was
> under the impression that we decided to remove containerModel all
> together, so is this a relic from the past which needs to be fixe dor...?

No need to worry! For compatiblity, we set the containerModel property
to the context model, and all needed containerModel methods are now in
Context.js and OWSContext.js.

The reason for x and y parameters missing is that the demo
GetFeatureInfo widget relies on the Mapbuilder mouseup event to set x
and y in WebServiceRequest.js. So I registered the mouseup event in
MapPaneOL to pass click x and y from the OpenLayers mouseup event to
the "old-style" Mapbuilder mouseup event. Then I modified the demo
GetFeatureInfo widget to use this event instead of the OpenLayers
ZoomBox handler.

The lib/widget GetFeatureInfo widget still uses the OpenLayers ZoomBox
handler, because it sets the x and y request parameters itself.

I think this should be enough to make both
lib/widget/GetFeatureInfo.js and demo/mapViewer/GetFeatureInfo.js
work.

Regards,
Andreas.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to