Reputation: 51
hello i'm trying to customize here navigation inside my app
is it possible to change the thickness of the route line inside the nav ( similar thread Android HereMaps SDK Route Line Thickness? )?
is it possible to change the maximum/minimum zoom while I'm using NavigationManager.MapUpdateMode.ROADVIEW?
and finally is it possible to move mapView.positionIndicator at the bottom of the screen inside navigation?
Upvotes: 2
Views: 221
Reputation: 89
Yes you can change thickness of MapRoute
If you really want to use MapRoute You can use CustomizableScheme for that :
CustomizableScheme scheme = map.createCustomizableScheme("newCustomScheme", Map.Scheme.NORMAL_DAY);
scheme.setVariableValue(CustomizableVariables.RouteStyle.ROUTESTYLE_1_WIDTH , *Width in pixels* , range);
you can check the CustomizableVariables.RouteStyle Class
if you want to use Polylines tho you can try this :
MapPolyline mp = new MapPolyline(new GeoPolyline(route.getRouteGeometry()));
mp.setLineWidth(20);
map.addMapObject(mp);
Upvotes: 1
Reputation:
map.setTransformCenter(new PointF((540.0), (1162.8)));
to shift the map movement center lower.Upvotes: 1