<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23562"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=343231218-09032014>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=343231218-09032014></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>from the OL 2.13.1
code (Map.js zoomTo) i would think, the map should center<BR>on the click
location. But it does not.</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>You can switch to
the defaultDblClick from OL 2.12.</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><BR><FONT color=#0000ff size=2 face=Arial>OL
2.12<BR>---------<BR>OpenLayers.Control.Navigation.prototype.defaultDblClick =
function (evt) {<BR> var newCenter =
this.map.getLonLatFromViewPortPx( evt.xy
);<BR> this.map.setCenter(newCenter,
this.map.zoom + 1);<BR> };</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><BR><FONT color=#0000ff size=2 face=Arial>OL
2.13.1<BR>---------<BR>OpenLayers.Control.Navigation.prototype.defaultDblClick =
function (evt) {<BR>
this.map.zoomTo(this.map.zoom + 1, evt.xy);<BR>
};</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><BR><SPAN class=343231218-09032014><FONT color=#0000ff
size=2 face=Arial>Arnd</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von
</B>Steve.Toutant@inspq.qc.ca<BR><B>Gesendet:</B> Freitag, 7. März 2014
20:51<BR><B>An:</B> openlayers-users@lists.osgeo.org<BR><B>Betreff:</B>
[OpenLayers-Users] double clicking doesn't recenter map
anymore<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT size=2 face=sans-serif>With Ol2.10, double clicking on the
map used to zoom in and the location I double clicked became the center of the
map</FONT> <BR><FONT size=2 face=sans-serif>With 2.13 it doesn't</FONT>
<BR><BR><FONT size=2 face=sans-serif>is there a new parameter I need to use in
2.13? How can I get back the old behavior?</FONT> <BR><FONT size=2
face=sans-serif>thanks</FONT> <BR><FONT size=2 face=sans-serif>steve</FONT>
<P></P></BODY></HTML>