Removed old unused variables from maphandler
This commit is contained in:
parent
218fb6d783
commit
a41bb64284
@ -4,7 +4,7 @@ import '@geoman-io/leaflet-geoman-free'
|
||||
import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css'
|
||||
|
||||
import './maphandler.css'
|
||||
import { greenIcon, redIcon, violetIcon } from './icons.ts'
|
||||
import { greenIcon, redIcon } from './icons.ts'
|
||||
import type { Endpoint, Polygon as InterfacePolygon, PathSegment } from '../../interfaces.ts'
|
||||
import type { Position } from 'geojson';
|
||||
|
||||
@ -267,13 +267,9 @@ class MapHandler {
|
||||
this.path.clearLayers();
|
||||
var firstMarker = true;
|
||||
endpoints.forEach(endpoint => {
|
||||
var settings;
|
||||
var marker;
|
||||
if (firstMarker) {
|
||||
marker = L.marker([endpoint.latitude, endpoint.longitude], {icon: redIcon}).addTo(this.endMarkers);
|
||||
settings = {
|
||||
icon: redIcon
|
||||
};
|
||||
} else {
|
||||
marker = L.circleMarker([endpoint.latitude, endpoint.longitude], {radius: 2, fillOpacity: 1.0, color: 'purple', bubblingMouseEvents: false}).addTo(this.endMarkers);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user