Closed malash closed 3 years ago
These bad cases can reproduce the issue that empty setting field cause the map fails to render on iOS devices.
setting
GojiJS ( v0.11.0 ):
import React from 'react'; import { render, Map } from '@goji/core'; render(<Map latitude={31.2253} longitude={121.45928} />);
Native WeChat Mini Program:
https://developers.weixin.qq.com/s/0e9NPsmd7fss
I thought several solutions, but non of them are 100% perfect to solve the issue.
value: {}
properties
map.js
setting="{{setting || defauleValue}}"
map.wxml
{}
setting="{{setting}}"
By now, I prefer to disable the usage of setting property to unblock white screen issue. And I will fix this bug later.
https://developers.weixin.qq.com/miniprogram/dev/component/map.html#setting
Why
These bad cases can reproduce the issue that empty
setting
field cause the map fails to render on iOS devices.GojiJS ( v0.11.0 ):
Native WeChat Mini Program:
https://developers.weixin.qq.com/s/0e9NPsmd7fss
How
I thought several solutions, but non of them are 100% perfect to solve the issue.
setting
, including these ways:value: {}
forproperties
field inmap.js
setting="{{setting || defauleValue}}"
inmap.wxml
, but literal{}
doesn't work in wxml.setting="{{setting}}"
field inmap.wxml
at all.By now, I prefer to disable the usage of
setting
property to unblock white screen issue. And I will fix this bug later.Ref
https://developers.weixin.qq.com/miniprogram/dev/component/map.html#setting