On Tue, Oct 18, 2011 at 5:30 PM, John Mitchell <[email protected]> wrote:
> I tried using the suggested below code but I get an OpenLayers.Control.Click
> is not a constructor error:
>
> var click = new OpenLayers.Control.Click( {
>    trigger: function(e) {
>       // do your thing
>    }
> });
> map.addControl(click);
> click.activate();

There's no click control in OpenLayers. Look at this example
<http://www.openlayers.org/dev/examples/click-handler.html> for how to
build one.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to