- Notifications
You must be signed in to change notification settings - Fork855
Add support for mapId option.#1086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Hello@itsmichaeldiego, I'm reaching out to see if you could take a look at this PR. It's enabling mapId support inside map options. Thanks in advance! |
strarsis commentedNov 22, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@jakeFeldman: Awesome! I really need this as I want to use such a map style by map ID! |
strarsis commentedNov 22, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@jakeFeldman: Also note that the mapId can only be changed (after it was set) by completely resetting the Google Maps instance (seehttps://stackoverflow.com/a/62947623/4150808). |
humbroll commentedAug 29, 2023
I need this PR as well. I hope it's merged to the main. Is this project not active anymore? It seems like it's been a while since the PR was created. |
Not too sure. Doesn't seem like its maintained anymore. |
kevin1193 commentedSep 4, 2023
Waiting for this to be merged! Would be a good feature. |
options = omit(options, ['styles']); | ||
} | ||
console.log('options', options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
should remove this
Uh oh!
There was an error while loading.Please reload this page.
Description
This PR adds support for mapId. By default
mapId
works by adding to the options prop, but we get a warning in the console. This resolves said warning by removing the styles property from the maps option.I've updated the type defs in the DefinitelyTyped repo as well (PR here)
closes#1070