Skip to content

Commit

Permalink
make ts happy
Browse files Browse the repository at this point in the history
  • Loading branch information
graphographer committed Apr 8, 2024
1 parent 7d3c4af commit d565726
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions src/components/BeMap.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
import { HighlightableMap } from 'highlightable-map';
import { Marker, icon, marker } from 'leaflet';
import { css, html, unsafeCSS } from 'lit';
import { customElement } from 'lit/decorators.js';
import { live } from 'lit/directives/live.js';
import { autorun, reaction } from 'mobx';
import bluePin from '../images/blue_pin.png';
import redPin from '../images/red_pin.png';
import { autorun } from 'mobx';
import './BeMapCountryDropdown';
import { StateProvider } from './StateProvider';

const blueMarker = icon({
iconUrl: bluePin,
iconSize: [36, 36],
iconAnchor: [18, 36]
});
// const blueMarker = icon({
// iconUrl: bluePin,
// iconSize: [36, 36],
// iconAnchor: [18, 36]
// });

const redMarker = icon({
iconUrl: redPin,
iconSize: [36, 36],
iconAnchor: [18, 36]
});
// const redMarker = icon({
// iconUrl: redPin,
// iconSize: [36, 36],
// iconAnchor: [18, 36]
// });

const REGIONS: [string, [number, number]][] = [
['Africa Regional', [15, 19]],
['Asia Regional', [30, 89]],
['Middle East Regional', [29, 49]],
['Worldwide', [10, -30]],
['Europe and Eurasia Regional', [45, 40]],
['Latin America and the Caribbean Regional', [8.5, -80.8]]
];
// const REGIONS: [string, [number, number]][] = [
// ['Africa Regional', [15, 19]],
// ['Asia Regional', [30, 89]],
// ['Middle East Regional', [29, 49]],
// ['Worldwide', [10, -30]],
// ['Europe and Eurasia Regional', [45, 40]],
// ['Latin America and the Caribbean Regional', [8.5, -80.8]]
// ];

const HIGHLIGHT_COLORS: Record<string, string> = {
4: '#002F6C',
Expand Down Expand Up @@ -119,7 +116,7 @@ export class BeMap extends StateProvider {
}
});

let selectedMarker: Marker<any>;
// let selectedMarker: Marker<any>;

this.highlightableMap.addEventListener(
'hm-rendered',
Expand Down

0 comments on commit d565726

Please sign in to comment.