Skip to content

Commit

Permalink
Replacing the skytruth-icon with a circle marker (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
neelesh17 authored Jun 24, 2020
1 parent 78621cb commit e971a95
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/layercode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<a href='+url+'>' +title + '</a><br>' +
'<br><strong> lat: ' + lat +
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit e971a95

Please sign in to comment.