英文:
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);
}
});
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论