Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setMapType requires an array #324

Open
sasalem-c opened this issue Jan 25, 2024 · 3 comments
Open

setMapType requires an array #324

sasalem-c opened this issue Jan 25, 2024 · 3 comments

Comments

@sasalem-c
Copy link

I noticed that setMapType function signature requires an array of MapType while it should be a single object.
image

@jaywcjlove
Copy link
Member

@sasalem-c What's the problem?

@sasalem-c
Copy link
Author

As per the official Baidu documentation, setMapType has one parameter of MapType object not an array. Setting it to any array won't change map type.

@jaywcjlove
Copy link
Member

image image

@sasalem-c The documentation does not explicitly identify the specific types of MapTypes, this is inferred from the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants