Simplify new-note marker placement - always in the centre
(This removes a tweak added in 40b3c82
, which we believe is
no longer relevant now the new-note dialogue is sidebar
rather than bubble.)
This commit is contained in:
parent
63dbfc15a6
commit
81d79f5e16
1 changed files with 1 additions and 7 deletions
|
@ -108,13 +108,7 @@ OSM.NewNote = function(map) {
|
|||
var mapSize = map.getSize();
|
||||
var markerPosition;
|
||||
|
||||
if (mapSize.y > 800) {
|
||||
markerPosition = [mapSize.x / 2, mapSize.y / 2];
|
||||
} else if (mapSize.y > 400) {
|
||||
markerPosition = [mapSize.x / 2, 400];
|
||||
} else {
|
||||
markerPosition = [mapSize.x / 2, mapSize.y];
|
||||
}
|
||||
markerPosition = [mapSize.x / 2, mapSize.y / 2];
|
||||
|
||||
newNote = L.marker(map.containerPointToLatLng(markerPosition), {
|
||||
icon: noteIcons["new"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue