Double click should zoom and center.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-12 20:32:14 +00:00
parent 2d44a29619
commit 45f0b84316

View File

@@ -287,6 +287,7 @@ OpenLayers.Map.prototype = {
*/
defaultDblClick: function (evt) {
var newCenter = this.getLatLonFromPoint( evt.xy );
this.zoomIn();
this.setCenter(newCenter);
},