PlotHelper

open class PlotHelper

Helper class for getting marker, polygon, line styles. It also helps clearing routes and various map layers

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var random: Random

Functions

Link copied to clipboard
open fun clearBuildingOverlayLayers(buildingId: Int, @NonNull mapApi: MapApi)
Clears building overlay data for all floors of the given building
Link copied to clipboard
open fun clearBuildingPinLayers(buildingId: Int, @NonNull mapApi: MapstedMapApi)
Clears building overlay data for all floors of the given building
Link copied to clipboard
open fun clearBuildingRoutes(buildingId: Int, @NonNull mapApi: MapstedMapApi)
Clears route data on all floors for the provided building id
Link copied to clipboard
open fun clearPropertyPinLayer(propertyId: Int, @NonNull mapApi: MapstedMapApi)
Clears property pin layer for the given property id
Link copied to clipboard
open fun clearPropertyRoutes(propertyId: Int, @NonNull mapApi: MapstedMapApi)
Clear routes on property layer
Link copied to clipboard
open fun convert(@NonNull m: MapPos): Mercator
open fun convert(@NonNull m: Mercator): MapPos
open fun convert(@NonNull m: MercatorZone): MapPos
open fun convert(@NonNull p: Position): MapPos
open fun convert(@NonNull o: Orientation): BillboardOrientation
open fun convert(@NonNull s: Scaling): BillboardScaling
open fun convert(@NonNull m: List<Mercator>): MapPosVector
Link copied to clipboard
open fun convertNested(@Nullable mvv: List<List<Mercator>>): MapPosVectorVector
Link copied to clipboard
open fun convertSubset(@NonNull m: List<Mercator>, startIdx: Int, endIdx: Int): MapPosVector
Link copied to clipboard
open fun create(@NonNull points: MapPosVector, @NonNull style: LineStyle): Line
Link copied to clipboard
Link copied to clipboard
open fun getLineStyle(bitmapIcon: Bitmap, lineWidth: Float, stretchFactor: Float, lineJoinType: LineJoinType): LineStyle
open fun getLineStyle(color: Color, lineWidth: Float, stretchFactor: Float, lineJoinType: LineJoinType): LineStyle
Creates and returns LineStyle
Link copied to clipboard
open fun getMarkerStyle(context: Context, drawable: Drawable, size: Float): MarkerStyle
open fun getMarkerStyle(context: Context, drawableInt: Int, size: Float): MarkerStyle
Creates and returns MarkerStyle, uses default billboard scaling
open fun getMarkerStyle(drawable: Drawable, size: Float, billboardScaling: BillboardScaling): MarkerStyle
open fun getMarkerStyle(res: Resources, drawableInt: Int, size: Float, billboardScaling: BillboardScaling): MarkerStyle
open fun getMarkerStyle(context: Context, drawableInt: Int, size: Float, billboardScaling: BillboardScaling, billboardOrientation: BillboardOrientation): MarkerStyle
open fun getMarkerStyle(drawable: Drawable, size: Float, billboardScaling: BillboardScaling, anchorPointX: Float, anchorPointY: Float): MarkerStyle
open fun getMarkerStyle(res: Resources, drawableInt: Int, size: Float, billboardScaling: BillboardScaling, anchorPointX: Float, anchorPointY: Float): MarkerStyle
Creates and returns MarkerStyle
Link copied to clipboard
open fun getMarkerStyleFromBitmap(markerBitmapIcon: Bitmap, size: Float, billboardScaling: BillboardScaling, billboardOrientation: BillboardOrientation): MarkerStyle
Creates and returns MarkerStyle
open fun getMarkerStyleFromBitmap(markerBitmapIcon: Bitmap, size: Float, billboardScaling: BillboardScaling, billboardOrientation: BillboardOrientation, resize_width: Int, resize_height: Int): MarkerStyle
Link copied to clipboard
open fun getPointStyle(color: Color, ptSize: Float): PointStyle
Creates and returns PointStyle
Link copied to clipboard
open fun getPolygonStyle(fillColor: Color, lineColor: Color, lineWidth: Float): PolygonStyle
Creates and returns PolygonStyle
Link copied to clipboard
open fun getRandom(coordinate: Double, delta: Double): Double
Gets random coordinate using the delta provided