[OSGeo-Discuss] OpenLayers.Popup ("form") triggered from outside map div
Arnie Shore
shoreas at gmail.com
Fri Aug 31 12:11:14 PDT 2012
Maybe onclick = "event.cancelBubble = true; " someplace in the chain,
if it's bubbling doing that.
On 8/31/12, Dori <izzybitsie at gmail.com> wrote:
> Hi,
>
> I need to create a popup window with a form to be processed in 2 different
> ways: clicking on map or entering a location identifier in a form on a
> <div> other than the map div.
> In both cases the same Javascript function is call.
> If I click on map the sequence of 0) zooming map 1) OpenLayers.Popup
> showing form to select data presentation type, 2)window popup showing form
> to choose info to display, 3)window popup showing report for the data works
> OK.
> If I enter location identifier and submit form then, 0) map zooms OK, and
> then popup 1) above shows up briefly and then init() is called without
> letting me keep with the process of choosing.
>
> Any idea on how to prevent this behind the scenes call to init() when
> identifier form is used?
>
> Thanks
>
More information about the Discuss
mailing list