I am working a map that someone else developed using OpenLayers. Everything
works fine but I cannot understand why there are two calls to
OpenLayers.Control.Click() when initiating the map. The code is as below and
commenting out either of the OpenLayers.Control.Click() calls results in the
click not working. Any ideas gratefully received.

this.map = new OpenLayers.Map("map", {
                                controls: [new 
OpenLayers.Control.Attribution(), 
                                           new OpenLayers.Control.Click(),
                                           new OpenLayers.Control.Navigation(), 
                                           new 
OpenLayers.Control.MousePosition(), 
                                           new OpenLayers.Control.ScaleLine(),
                                           new OpenLayers.Control.Click({
                                                   handlerOptions: {
                                                           "single": true
                                                   }
                                           })
                                ],
                                           units: 'km',
                                           projection: new 
OpenLayers.Projection("EPSG:900913"),
                                           displayProjection: new 
OpenLayers.Projection("EPSG:4326")
                        });

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Two-calls-to-new-OpenLayers-Control-Click-needed-tp4909412p4909412.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to