Class NavigationTrimbleMapsMap.Builder
-
- All Implemented Interfaces:
public class NavigationTrimbleMapsMap.BuilderCreates NavigationTrimbleMapsMap object.
-
-
Constructor Summary
Constructors Constructor Description NavigationTrimbleMapsMap.Builder(MapView mapView, TrimbleMapsMap trimbleMapsMap, LifecycleOwner lifecycleOwner)NavigationTrimbleMapsMap builder. NavigationTrimbleMapsMap.Builder(MapSurface mapSurface, TrimbleMapsMap trimbleMapsMap, LifecycleOwner lifecycleOwner)
-
Method Summary
Modifier and Type Method Description NavigationTrimbleMapsMap.BuilderrouteBelowLayerId(String routeBelowLayerId)NavigationTrimbleMapsMap.BuildervanishRouteLineEnabled(boolean vanishRouteLineEnabled)NavigationTrimbleMapsMap.BuildervanishingRouteLineUpdateIntervalNano(long vanishingRouteLineUpdateIntervalNano)Set minimum update interval (in nanoseconds) of the vanishing point when enabled. NavigationTrimbleMapsMap.BuilderuseSpecializedLocationLayer(boolean useSpecializedLocationLayer)NavigationTrimbleMapsMap.BuilderwithRouteClickPadding(float padding)Indicates the size of the bounding box used to determine which route line was clicked. NavigationTrimbleMapsMap.BuilderwithSourceMaxZoom(int sourceMaxZoom)Maximum zoom level at which to route line tiles are created and over-zoomed otherwise (higher means greater detail at high zoom levels). NavigationTrimbleMapsMap.BuilderwithSourceTolerance(float sourceTolerance)Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance) for the GeoJsonSources created to display the route line. NavigationTrimbleMapsMapbuild()
-
-
-
Constructor Detail
-
NavigationTrimbleMapsMap.Builder
NavigationTrimbleMapsMap.Builder(MapView mapView, TrimbleMapsMap trimbleMapsMap, LifecycleOwner lifecycleOwner)
NavigationTrimbleMapsMap builder.- Parameters:
mapView- MapViewtrimbleMapsMap- TrimbleMapsMaplifecycleOwner- LifecycleOwner
-
NavigationTrimbleMapsMap.Builder
NavigationTrimbleMapsMap.Builder(MapSurface mapSurface, TrimbleMapsMap trimbleMapsMap, LifecycleOwner lifecycleOwner)
-
-
Method Detail
-
routeBelowLayerId
NavigationTrimbleMapsMap.Builder routeBelowLayerId(String routeBelowLayerId)
- Parameters:
routeBelowLayerId- optionally pass in a layer id to place the route line below
-
vanishRouteLineEnabled
NavigationTrimbleMapsMap.Builder vanishRouteLineEnabled(boolean vanishRouteLineEnabled)
- Parameters:
vanishRouteLineEnabled- determines if the route line should vanish behind the puck during navigation.
-
vanishingRouteLineUpdateIntervalNano
NavigationTrimbleMapsMap.Builder vanishingRouteLineUpdateIntervalNano(long vanishingRouteLineUpdateIntervalNano)
Set minimum update interval (in nanoseconds) of the vanishing point when enabled.
Defaults to DEFAULT_VANISHING_POINT_MIN_UPDATE_INTERVAL_NANO. Decreasing this number will improve the smoothness of updates but impact the performance.
- Parameters:
vanishingRouteLineUpdateIntervalNano- minimum update interval
-
useSpecializedLocationLayer
NavigationTrimbleMapsMap.Builder useSpecializedLocationLayer(boolean useSpecializedLocationLayer)
- Parameters:
useSpecializedLocationLayer- determines if the location puck should use a specialized render layer.
-
withRouteClickPadding
NavigationTrimbleMapsMap.Builder withRouteClickPadding(float padding)
Indicates the size of the bounding box used to determine which route line was clicked. Upon a map click an attempt will be made to find a route line intersecting the bounding box. This is used to select alternative route lines on the map. Larger values result in a larger bounding box requiring less accuracy on the part of the user. You should use the device's screen density in determining what value to use here rather than a single value for all devices.
- Parameters:
padding- value in pixels
-
withSourceMaxZoom
@NonNull() NavigationTrimbleMapsMap.Builder withSourceMaxZoom(int sourceMaxZoom)
Maximum zoom level at which to route line tiles are created and over-zoomed otherwise (higher means greater detail at high zoom levels). Defaults to 16.
-
withSourceTolerance
@NonNull() NavigationTrimbleMapsMap.Builder withSourceTolerance(float sourceTolerance)
Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance) for the GeoJsonSources created to display the route line. Defaults to 0.375.
-
build
NavigationTrimbleMapsMap build()
-
-