时间:2019-05-03 来源:小程序工厂
M***:
u should invoke `wx.createMapContext()` to get a MapContext object, then use `if`.
suck as:
var context = wx.createMapContext(mapId);
if (context.getRegion) {
// supported
} else {
// not supported
}
W***:
Thank you. It's also good alternative way, I took note of it.
I just found out that it works if I use
wx.canIUse('mapContext.getRegion')
Problem solved now.
W***:系统记录