[OpenLayers-Users] Two calls to "new OpenLayers.Control.Click()" needed

steveyoung stephen.young at chello.at
Mon Apr 23 03:23:48 EDT 2012


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.


More information about the Users mailing list