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:
@@ -287,6 +287,7 @@ OpenLayers.Map.prototype = {
|
||||
*/
|
||||
defaultDblClick: function (evt) {
|
||||
var newCenter = this.getLatLonFromPoint( evt.xy );
|
||||
this.zoomIn();
|
||||
this.setCenter(newCenter);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user