From e0b36fa9e4b1413693718fae6ca880c55df593ef Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Tue, 12 Jul 2016 21:30:59 +0200 Subject: [PATCH] Move icon anchor to tip of icons The spawn and location icons should now have the tip of the icon image point at the actual location. Previously, the icons were centred onto it, which was slightly off in the vertical direction. --- overviewer_core/data/js_src/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overviewer_core/data/js_src/util.js b/overviewer_core/data/js_src/util.js index dc486c6..30034b1 100644 --- a/overviewer_core/data/js_src/util.js +++ b/overviewer_core/data/js_src/util.js @@ -134,6 +134,7 @@ overviewer.util = { iconUrl: overviewerConfig.CONST.image.spawnMarker, iconRetinaUrl: overviewerConfig.CONST.image.spawnMarker2x, iconSize: [32, 37], + iconAnchor: [15, 33], }); var latlng = overviewer.util.fromWorldToLatLng(ovconf.spawn[0], ovconf.spawn[1], @@ -689,6 +690,7 @@ overviewer.util = { iconUrl: overviewerConfig.CONST.image.queryMarker, iconRetinaUrl: overviewerConfig.CONST.image.queryMarker2x, iconSize: [32, 37], + iconAnchor: [15, 33], }); var locationm = L.marker(latlngcoords, { icon: locationIcon, title: "Linked location"});