Skip to content

Commit

Permalink
Merge pull request #305 from headwaymaps/mkirk/dep-updates
Browse files Browse the repository at this point in the history
update deps
  • Loading branch information
michaelkirk authored Jan 20, 2024
2 parents 06b7747 + e077a8f commit 67aa678
Show file tree
Hide file tree
Showing 3 changed files with 598 additions and 540 deletions.
12 changes: 11 additions & 1 deletion services/frontend/www-app/src/components/BaseMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,22 @@ export const baseMapPromise = new Promise<BaseMapInterface>((resolver) => {
baseMapPromiseResolver = resolver;
});
// tsc was failing with:
// TS2589: Type instantiation is excessively deep and possibly infinite
// So I added a simpler type here.
// If we need, we can expose more of the maplibre-gl.Marker methods or
// maybe a future version of TSC will be smart enough to deal with reverting
// this.
interface SimpleMarker {
remove: () => void;
}
export default defineComponent({
name: 'BaseMap',
data: function (): {
flyToOptions?: FlyToOptions;
boundsToFit?: LngLatBoundsLike;
markers: Map<string, Marker>;
markers: Map<string, SimpleMarker>;
layers: string[];
loaded: boolean;
touchHandlers: Map<BaseMapEventType, Array<BaseMapEventHandler>>;
Expand Down
Loading

0 comments on commit 67aa678

Please sign in to comment.