Here Maps 无法导入 CustomizableScheme

huangapple go评论45阅读模式
英文:

Here Maps unable to import CustomizableScheme

问题

我无法使用Here地图SDK添加CustomizableScheme。我已将hereSDK.arr放在原始文件夹中。

import com.here.android.mpa.mapping.customization.CustomizableScheme;

不可用。

我想将主题更改为DARKMODE。

CustomizableScheme scheme = map.createCustomizableScheme("newCustomScheme", Map.Scheme.NORMAL_DAY);
英文:

I am unable to add CustomizableScheme using here maps sdk. I have placed hereSDK.arr in raw folder

import com.here.android.mpa.mapping.customization.CustomizableScheme; is un available

I would like to change the theme to DARKMODE
CustomizableScheme scheme = map.createCustomizableScheme("newCustomScheme", Map.Scheme.NORMAL_DAY);

答案1

得分: 1

mapView.getMapScene().loadScene(MapScheme.NORMAL_NIGHT, mapError -> {
if (mapError == null) {
if (displayLocation() != null) {
defaultCoordinates = new GeoCoordinates(displayLocation().getLatitude(), displayLocation().getLongitude());
}
mapView.getCamera().lookAt(defaultCoordinates, mapMeasureZoom);
mapView.getMapScene().addMapMarker(mapMarker);
} else {
Log.d(TAG, "onCreateView:" + mapError);
}
});

英文:

There is a method to set mapscheme using mapview

  mapView.getMapScene().loadScene(MapScheme.NORMAL_NIGHT, mapError -> {
        if (mapError == null) {
            if (displayLocation() != null) {
                defaultCoordinates = new GeoCoordinates(displayLocation().getLatitude(), displayLocation().getLongitude());
            }
            mapView.getCamera().lookAt(defaultCoordinates, mapMeasureZoom);
            mapView.getMapScene().addMapMarker(mapMarker);
        } else {
            Log.d(TAG, "onCreateView:" + mapError);
        }
    });

huangapple
  • 本文由 发表于 2023年4月10日 20:56:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75977329.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定