NativeScript / NativeScript/plugins
Google Maps myLocationEnabled
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 123
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
Hi,
I'm trying to enable the "My Location" button. This worked previous but now appears to not work. Any ideas what I may be doing wrong?
onMapReady({ map }: { map: GoogleMap }) {
geolocation.enableLocationRequest(false, true)
.then(() => {
geolocation.isEnabled().then(isEnabled => {
if (!isEnabled) {
return;
}
map.myLocationEnabled = true;
});
});
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior from the onMapReady snippet, focusing on geolocation.enableLocationRequest, geolocation.isEnabled, and map.myLocationEnabled. Inspect the Google Maps plugin implementation and determine why enabling the location control no longer takes effect; done means identifying a reproducible cause and confirming the button works again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100