diff --git a/components/scrapd-map/component.js b/components/scrapd-map/component.js index 17ce4cc..05689c7 100644 --- a/components/scrapd-map/component.js +++ b/components/scrapd-map/component.js @@ -123,24 +123,23 @@ function clusterMarker(coordinates, count) { function SingleMarker(fatality) { let Icon; - let markerStyle = markerStyle; + let SingleMarkerStyle = markerStyle; if (fatality.Type == 'motorcycle') { - markerStyle = markerStyleMotorcycle; + SingleMarkerStyle = markerStyleMotorcycle; Icon = ; } else if (fatality.Type == 'pedestrian') { - markerStyle = markerStylePedestrian; + SingleMarkerStyle = markerStylePedestrian; Icon = ; } else if (fatality.Type == 'bicycle') { - markerStyle = markerStyleBicycle; + SingleMarkerStyle = markerStyleBicycle; Icon = ; } else if (fatality.Type == 'motor vehicle') { - markerStyle = markerStyleMotor; + SingleMarkerStyle = markerStyleMotor; Icon = ; } return ( - - {/* */} + {Icon} );