From e971a95639de43aca78b665ff6bc924450a42db8 Mon Sep 17 00:00:00 2001 From: Neelesh Singh Thakur <55199130+neelesh17@users.noreply.github.com> Date: Wed, 24 Jun 2020 20:19:29 +0530 Subject: [PATCH] Replacing the skytruth-icon with a circle marker (#390) --- src/layercode.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/layercode.js b/src/layercode.js index a62c964df..6a6d94b2b 100644 --- a/src/layercode.js +++ b/src/layercode.js @@ -164,12 +164,11 @@ L.LayerGroup.LayerCode = L.LayerGroup.extend( } if (this.layer == 'skytruth') { - var redDotIcon =new L.icon.skyTruthIcon(); var lat = data.lat; var lng = data.lng; var title = data.title; var url = data.link; - var defaultMarker = L.marker([lat, lng], {icon: redDotIcon}); + var defaultMarker = L.circleMarker(L.latLng([lat, lng]), { radius: 8, weight: 2, fillOpacity: 0.6, color: '#d20000', fillColor: '#f00' }); var minimalMarker = L.circleMarker(L.latLng([lat, lng]), { radius: 5, weight: 1, fillOpacity: 1, color: '#7c7c7c', fillColor: '#f00' }); var content = '' +title + '
' + '
lat: ' + lat + @@ -494,19 +493,6 @@ L.icon.fracTrackerIcon = function() { return new L.Icon.FracTrackerIcon(); }; -L.Icon.SkyTruthIcon = L.Icon.extend({ - options: { - iconUrl: 'https://www.clker.com/cliparts/T/G/b/7/r/A/red-dot.svg', - iconSize: [30, 20], - iconAnchor: [20, 0], - popupAnchor: [-5, -5], - }, -}); - -L.icon.skyTruthIcon = function() { - return new L.Icon.SkyTruthIcon(); -}; - L.Icon.OdorReportIcon = L.Icon.extend({ options: { iconUrl: 'https://www.clker.com/cliparts/T/3/6/T/S/8/ink-splash-md.png',