From 81d79f5e1671e1832c02576e1e0eed222bfb2bf6 Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Sun, 9 Aug 2015 10:56:22 +0100 Subject: [PATCH] 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.) --- app/assets/javascripts/index/new_note.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/assets/javascripts/index/new_note.js b/app/assets/javascripts/index/new_note.js index 55c5cbc93..397daa637 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -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"], -- 2.43.2