diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-09-27 16:15:41 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-09-27 16:15:41 +0100 |
commit | 799d7c752b7c8795df38468b8e6d852f13d92973 (patch) | |
tree | 1f9a77ed561bda757c3fc80e100b82325bc31e9e | |
parent | 0c510470b5c5d2910955187d4ec94c89840bb571 (diff) | |
download | leaflet-soton-799d7c752b7c8795df38468b8e6d852f13d92973.tar leaflet-soton-799d7c752b7c8795df38468b8e6d852f13d92973.tar.gz |
Small tweak to room marker positions
-rw-r--r-- | src/leaflet-soton.js | 8 |
1 files 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; } |