MapStyle

A Map Style lets you to configure how vector maps have to be rendered in a MapView.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var address: Long

Functions

Link copied to clipboard
fun createPOIStyle(classID: Long, style: POIStyle): Error?

Create a POI style

Link copied to clipboard
fun createPolygonStyle(classID: Long, style: ClosedStyle): Error?

Create a Polygon style

Link copied to clipboard
fun createPolylineStyle(classID: Long, style: PolylineStyle): Error?

Create a Polyline style

Link copied to clipboard
fun deleteStyle(classID: Long)

Delete a PoiStyle, PolylineStyle or PolygonStyle by providing it's classId

Link copied to clipboard
open override fun dispose()

Call this method if you want to dispose immediately all underlying native resources.

Link copied to clipboard

Get the visibility status of all forms belonging to the specified class ID.

Link copied to clipboard
fun getPOICategories(minClassID: Long = CartoConst.KB_VEHICLE_REPAIR.toLong(), maxClassID: Long = CartoConst.KB_TRUCK_REPAIR_AND_SERVICE.toLong()): List<POICategory>

Returns the POI categories of this map style, sorted by ascending class ID (BENAV5-1511).

Link copied to clipboard

Changes the size of all fonts by a given scale with respect to original font sizes.

Link copied to clipboard
fun setClassesVisibility(visibilities: Map<Long, Boolean>): Int

Shows or hides several classes at once (BENAV5-1511).

Link copied to clipboard
fun setClassVisibility(classID: Long, visible: Boolean): Boolean

Show or hide all forms belonging to the specified class ID (without deleting anything).

Link copied to clipboard
fun showCustomTraffic(showOpenFlow: Boolean, showClosedFlow: Boolean)

Sets the visibility for custom traffic flow layers.

Link copied to clipboard
fun showTraffic(showFlow: Boolean, showPOI: Boolean)

Set the traffic visibility.