Skip to content

Commit

Permalink
Merge pull request #3 from MapsPeople/version/1.0.3
Browse files Browse the repository at this point in the history
Version 1.0.3
  • Loading branch information
matiasholst authored Sep 25, 2023
2 parents ad8029a + 4a61fa7 commit 19ed49d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions MPDirectionsRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ export default class MPDirectionsRenderer {
await DirectionsRenderer.setAnimatedPolyline(animated, repeating, durationMs);
}

/**
* Enable/Disable the route end/start label buttons from showing on the route. Default is true
*
* @public
* @async
* @param {boolean} show
* @returns {Promise<void>}
*/
public async showRouteLegButtons(show: boolean): Promise<void> {
await DirectionsRenderer.showRouteLegButtons(show);
}

/**
* Manually set the selected leg index on the route.
*
Expand Down
12 changes: 12 additions & 0 deletions MapControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,4 +861,16 @@ export default class MapControl {
MapControlModule.setOnFloorUpdateListener(false);
}
}

/**
* Set options for location labels
*
* @public
* @param textSize
* @param color
* @param showHalo
*/
public setLabelOptions(textSize: number, color: String, showHalo: boolean): Promise<void> {
return MapControlModule.setLabelOptions(textSize, color, showHalo).then(() => Promise.resolve());
}
}

0 comments on commit 19ed49d

Please sign in to comment.