Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Nov 29, 2023
1 parent b54bfe5 commit 83a0f5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/components/route-planner/route-planner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class RoutePlanner {
this.routeStartPlace.Location.latitude + ',' + this.routeStartPlace.Location.longitude,
this.routeDestinationPlace.Location.latitude + ',' +
this.routeDestinationPlace.Location.longitude)
.then((result: google.maps.DirectionsResult) => {
.then((result: any) => {
if (result.routes != null && result.routes.length > 0) {
this.logging.log('Got route directions, analysing..');
this.routePolyline = (<any>result.routes[0]).overview_polyline;
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/GoogleMapsDirections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class GoogleMapsDirections {
});
}

public analyseRoutes(routeResults: google.maps.DirectionsResult, kWhPerKM: number): Array<JourneyRoute> {
public analyseRoutes(routeResults: any, kWhPerKM: number): Array<JourneyRoute> {
const journeyRoutes = new Array<JourneyRoute>();

// analyse power consumption of the routes and summarise the route
Expand Down
3 changes: 2 additions & 1 deletion src/app/services/mapping/providers/MapBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export class MapBoxMapProvider implements IMapProvider {

initAPI() {
if (mapboxgl) {
(<any>mapboxgl).accessToken = environment.mapBoxToken;
//(<any>mapboxgl).accessToken = environment.mapBoxToken;
Object.getOwnPropertyDescriptor(mapboxgl, "accessToken").set(environment.mapBoxToken);
}
}

Expand Down

0 comments on commit 83a0f5b

Please sign in to comment.