[OSM-talk] Double-clicking on OSM map does not centre the map
Tom MacWright
tom at macwright.org
Mon Jul 22 04:00:31 UTC 2013
The relevant change in Leaflet:
https://github.com/Leaflet/Leaflet/pull/1582?source=cc - the new behavior
matches all other map sites and frameworks I can think of, with the
exception of Bing. You can replicate the old behavior by clicking the map
and dragging it to change the center.
There's no easy way to 'get the old behavior back' without doing a core
patch to Leaflet, and given that this is the expected behavior with a clear
'other way to do it', I personally don't think it's a high priority to
change.
On Sun, Jul 21, 2013 at 11:26 PM, Clay Smalley <claysmalley at gmail.com>wrote:
> I've noticed the same issue. I liked having an easy way to center the map.
> Is anyone averse to having this changed back?
> On Jul 21, 2013 8:02 PM, "Andrew Errington" <erringtona at gmail.com> wrote:
>
>> It used to be that if you double-clicked on the map it would re-centre
>> on the clicked point and zoom in by one level. Now it doesn't. It
>> zooms in, but doesn't re-centre the map. When did this behaviour
>> change? Is it desirable?
>>
>> I don't like it because now I can't centre the map (by
>> double-clicking) and make a markerlink (by editing the permalink
>> lat/lon to mlat/mlon).
>>
>> Best wishes,
>>
>> Andrew
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk
>>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20130722/c24bd9f6/attachment-0001.html>
More information about the talk
mailing list