[OpenLayers-Users] Defining a Click Handler

Stephen Woodbridge woodbri at swoodbridge.com
Fri May 4 17:26:28 EDT 2012


On 5/4/2012 5:19 PM, Arnie Shore wrote:
> Folks, the JS line below behaves error-free in one script of mine, but
> in a second one it generates the error message in the error line below.
> It's in my init() function
>
> I'll appreciate any suggestion re how to troubleshoot this.
>
> var click = new OpenLayers.Control.Click();
>
> Error: OpenLayers.Control.Click is not a constructor

Arnie,

This might be a stupid response, but have you verified that OL actually 
loaded and that you don't have a path  or permissions problem on 
OpenLayers.js

-Steve


More information about the Users mailing list