[OSM-talk] Double-clicking on OSM map does not centre the map

Clay Smalley claysmalley at gmail.com
Mon Jul 22 05:45:33 UTC 2013


That's totally understandable. Though to do that, I usually scroll. I'm
accustomed to behavior where I scroll if I want to zoom without centering,
and double click if I want to zoom and center.

Though I'm sure there are issues like touch screen interfaces where using a
scroll wheel isn't an option. I totally support the change, and I'm sure
I'll get used to it soon enough.
On Jul 21, 2013 9:36 PM, "John Firebaugh" <john.firebaugh at gmail.com> wrote:

> The rationale for making the change in Leaflet is to make it so that you
> can zoom in several levels on a given point without needing to reposition
> your cursor at each zoom level. For that reason, I prefer the new behavior.
>
> Included in the next set of changes to the map UI is the ability to add a
> marker to the permalink. It will be positionable via dragging. No URL
> editing required:
>
> http://mapui.apis.dev.openstreetmap.org/
>
>
> On Sun, Jul 21, 2013 at 9:00 PM, Tom MacWright <tom at macwright.org> wrote:
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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/20130721/6b866646/attachment.html>


More information about the talk mailing list