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

Maarten Deen mdeen at xs4all.nl
Mon Jul 22 05:48:10 UTC 2013


On 2013-07-22 06:33, John Firebaugh 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.

Zooming in by using the scroll-wheel did the same in the old framework. 
Basically the new framework removes functionality. I don't think that's 
a good idea.

I hadn't noticed this yet, but IMHO it's a bad thing. There are 
occasions when I am looking for a particular point to be the map center. 
Dragging the map to the center is no solution because my sight is not 
absolute and I do not know what the center of my browserscreen is.

> 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/ [3]

It is nice to give a link to the development map (at least I assume it 
is), but how do you set that marker?

Regards,
Maarten

> 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 [1] - 
> 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 [2]
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk [2]
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk [2]
> 
> 
> 
> Links:
> ------
> [1] https://github.com/Leaflet/Leaflet/pull/1582?source=cc
> [2] http://lists.openstreetmap.org/listinfo/talk
> [3] http://mapui.apis.dev.openstreetmap.org/
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk



More information about the talk mailing list