uiwjs/react-baidu-map

setMapType requires an array

sasalem-c opened this issue · 3 comments

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

@sasalem-c What's the problem?

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.

image image

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