Opened 9 years ago

Closed 9 years ago

#3857 closed enhancement (wontfix)

add OpenLayers.LonLat in order to display the courrent position on OSM slippy map

Reported by: Hendrik75 Owned by: Tom Hughes
Priority: major Milestone: Wishlist
Component: website Version:
Keywords: Cc:


Several times I was asked about how to know where the slippy map on is centered. A map without any indication of where it is located seems not well accepted.

It is actually possible to check the permalink, but it is not user friendly.

I suggest to add something like

map.setCenter(new OpenLayers?.LonLat?(18500000,-2450000),8);

to the openlayers code in order to display the lat.lon of the mouse cursor.

Change History (1)

comment:1 Changed 9 years ago by Tom Hughes

Resolution: wontfix
Status: newclosed

I have no idea why you think that line of code would make OL display the position of the mouse cursor. What it would actually do is to centre the map on a fixed location.

Ignoring that, there is a control in OL to display the mouse position, but it's horribly ugly and anyway wanting to know the lat/lon of your mouse seems like it would be very much a minority requirement - for most people that information is close to meaningless.

I see no point is making our user interface uglier and more confusing to benefit the small number of people that might find this useful.

Note: See TracTickets for help on using tickets.