From 799d7c752b7c8795df38468b8e6d852f13d92973 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 27 Sep 2014 16:15:41 +0100 Subject: Small tweak to room marker positions --- src/leaflet-soton.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js index dfd2ad7..2a52b16 100644 --- a/src/leaflet-soton.js +++ b/src/leaflet-soton.js @@ -729,11 +729,13 @@ SELECT * WHERE {\ var myIcon = L.divIcon({ className: 'ls-room-marker', html: content, - iconSize: new L.Point(100, 30), - iconAnchor: new L.Point(50, 15) + iconSize: new L.Point(100, 14), + iconAnchor: new L.Point(50, 7) }); - var marker = L.marker(iconCoords, {icon: myIcon}); + var marker = L.marker(iconCoords, { + icon: myIcon + }); return marker; } -- cgit v1.2.3