问题描述
只是一个简单的问题。您可以在此处为卫星地图选择其他语言吗?在文档内部,有一个示例,您可以在创建默认图层时指定lg属性。只要我使用vector.normal.map图层,它就可以正常工作,但是如果切换到卫星视图,它将不使用所选语言。这是我从文档中获取的示例。
function switchMapLanguage(map,platform){
// Create default layers
let defaultLayers = platform.createDefaultLayers({
lg: 'zh'
});
// Set the normal map variant of the vector map type
map.setBaseLayer(defaultLayers.vector.normal.map);
// display default UI components on the map and change default
// language to simplified Chinese.
// Besides supported language codes you can also specify your custom translation
// using H.ui.i18n.Localization.
var ui = H.ui.UI.createDefault(map,defaultLayers,'zh-CN');
// Remove not needed settings control
ui.removeControl('mapsettings');
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)