Fix commas in Click example thanks to helpful patch from Pedro Simonetti.
(Closes #1525) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -30,7 +30,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
|
||||
);
|
||||
this.handler = new OpenLayers.Handler.Click(
|
||||
this, {
|
||||
'click': this.trigger,
|
||||
'click': this.trigger
|
||||
}, this.handlerOptions
|
||||
);
|
||||
},
|
||||
@@ -39,7 +39,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
|
||||
var lonlat = map.getLonLatFromViewPortPx(e.xy);
|
||||
alert("You clicked near " + lonlat.lat + " N, " +
|
||||
+ lonlat.lon + " E");
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
var map;
|
||||
|
||||
Reference in New Issue
Block a user