Skip to content

Commit

Permalink
Remove ESI waypoints
Browse files Browse the repository at this point in the history
Reverts 2a4b55d
  • Loading branch information
vicb committed Oct 7, 2024
1 parent c52de6f commit de574b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 259 deletions.
243 changes: 0 additions & 243 deletions apps/fxc-front/src/app/components/2d/esi.ts

This file was deleted.

16 changes: 0 additions & 16 deletions apps/fxc-front/src/app/components/2d/map-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import type { RootState } from '../../redux/store';
import { store } from '../../redux/store';
import { setCurrentTrackId } from '../../redux/track-slice';
import { ControlsElement } from './controls-element';
import { esi } from './esi';
import { LineElement } from './line-element';
import { MarkerElement } from './marker-element';
import { PlannerElement } from './planner-element';
Expand Down Expand Up @@ -178,21 +177,6 @@ export class MapElement extends connect(store)(LitElement) {

this.map = new google.maps.Map(this.querySelector('#map') as HTMLElement, options);

// esi
for (const placemark of esi.kml.Document.Placemark) {
const [lng, lat] = placemark.Point.coordinates.split(',').map((s) => Number(s));
new google.maps.Circle({
center: { lat, lng },
radius: 200,
strokeColor: 'black',
strokeWeight: 1,
fillColor: 'gray',
fillOpacity: 0.3,
map: this.map,
clickable: false,
});
}

const controls = document.createElement('controls-element') as ControlsElement;
controls.map = this.map;
this.map.controls[google.maps.ControlPosition.TOP_LEFT].push(controls);
Expand Down

0 comments on commit de574b1

Please sign in to comment.