From 3b20eb33a90ddf5f492ef70980306a98101d3675 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 5 Jan 2018 01:31:10 +0100 Subject: Fix marker visibility. --- src/js/app/places.js | 4 +--- src/js/world-staff.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/js/app/places.js b/src/js/app/places.js index 5ed04d0..292bf45 100644 --- a/src/js/app/places.js +++ b/src/js/app/places.js @@ -2,9 +2,7 @@ define(['leaflet'], function(L) { // GeoJSON feature grouping function returnMarker(feature, latlng) { - var marker = new L.marker( - latlng, - { opacity: 0.01 }); + var marker = new L.marker(latlng); // bindTooltip was introduced in LeafletJS 1.0. try { marker.bindTooltip( diff --git a/src/js/world-staff.js b/src/js/world-staff.js index 618c2fd..f602515 100644 --- a/src/js/world-staff.js +++ b/src/js/world-staff.js @@ -3,7 +3,7 @@ requirejs(['./slippymap'], function(_foo) { requirejs.config({ baseUrl: '../../js/lib', }); - L.Icon.Default.imagePath = '../../img/leaflet'; + L.Icon.Default.imagePath = '../../img/leaflet/'; requirejs(['app/mapfactory'], function(mkmap) { var map = mkmap('content'); requirejs([ -- cgit v1.2.3