mapvue icon indicating copy to clipboard operation
mapvue copied to clipboard

MapboxLanguage设置不起效,只有option.language起效

Open nauYieM opened this issue 1 year ago • 1 comments

map.addControl( new MapboxLanguage({ defaultLanguage:'zh-Hans', }) ); addControl(new MapboxDraw({}))是有效的,但是MapboxLanguage就无效,没明白原因,考虑到style有影响,找到没用mapvue的例子 style一样是有生效的。

nauYieM avatar Aug 06 '24 00:08 nauYieM

有个临时解决方法

const control = new MapboxLanguageControl({
  defaultLanguage: 'zh-Hans',
});
map.addControl(control);
const style = map.getStyle();
map.setStyle("");
map.setStyle(style);

timeroute avatar Aug 15 '24 07:08 timeroute