Can you switch language in satellite view for HERE maps?

293 views Asked by At

just a simple question. Can you select different language for HERE map satellite view? Inside documentation there is example where you specify lg attribute while creating default layers. It works fine as long as I use vector.normal.map layer, but if I switch to satellite view it won't use selected language. Here is the example I have taken from documentation.

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');
}
0

There are 0 answers