location module
Interfaces
Location | |
LocationProps |
Functions
get |
Fetches current user coordinates or allows user to choose location on map. |
show |
Shows the location on map corresponding to the given coordinates. |
Function Details
getLocation(LocationProps, (error: SdkError, location: Location) => void)
Fetches current user coordinates or allows user to choose location on map.
function getLocation(props: LocationProps, callback: (error: SdkError, location: Location) => void)
Parameters
- props
-
@microsoft/teams-js.@microsoft.teams-js.location.LocationProps
- callback
-
(error: SdkError, location: Location) => void
Callback to invoke when current user location is fetched
showLocation(Location, (error: SdkError, status: boolean) => void)
Shows the location on map corresponding to the given coordinates.
function showLocation(location: Location, callback: (error: SdkError, status: boolean) => void)
Parameters
- location
-
@microsoft/teams-js.@microsoft.teams-js.location.Location
Location which needs to be shown on map *
- callback
-
(error: SdkError, status: boolean) => void
Callback to invoke when the location is opened on map
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for