Package com.tomtom.sdk.maps.display.polygon

Types

Link copied to clipboard
data class InnerPolygonOptions(    val coordinates: List<GeoCoordinate>,     val fillColor: Color? = null,     val innerPolygonOptions: InnerPolygonOptions? = null)

Configures options for a inner polygon that will be used in PolygonOverlay. See the TomTomMap.addPolygonOverlay(options: PolygonOverlayOptions) to check how to add a new PolygonOverlay. Inner polygons can be nested.

Link copied to clipboard
fun interface OnPolygonClickListener

Interface for notifying about the Polygon being clicked.

Link copied to clipboard
class Polygon

A Polygon overlay which was added to the map.

Link copied to clipboard
interface PolygonController

Controls Polygon-specific features on the map. Allows Polygon management and the user interactions with the Polygon.

Link copied to clipboard
class PolygonNotFoundException(id: UniqueId) : RuntimeException

Exception thrown when a Polygon with the given id cannot be found on the map.

Link copied to clipboard
data class PolygonOptions(    val coordinates: List<GeoCoordinate>,     val outlineColor: Color = Color.TRANSPARENT,     val outlineWidth: Double = DEFAULT_OUTLINE_WIDTH,     val fillColor: Color = DEFAULT_FILL_COLOR,     val image: Image? = null,     val isImageOverlay: Boolean = false)

Configures options for a Polygon overlay which can be added and displayed on the map. See the TomTomMap.addPolygon(options: PolygonOptions) to check how to add a new Polygon.

Link copied to clipboard
class PolygonOverlay

PolygonOverlay consists of inner polygon and outer area color used to color area outside of polygon.

Link copied to clipboard
interface PolygonOverlayController

Controls PolygonOverlay-specific features on the map. Allows PolygonOverlay management and the user interactions with the PolygonOverlay.

Link copied to clipboard
class PolygonOverlayNotFoundException(id: UniqueId) : RuntimeException

Exception thrown when a PolygonOverlay with the given id cannot be found on the map.

Link copied to clipboard
data class PolygonOverlayOptions(val outerColor: Color, val innerPolygonOptions: InnerPolygonOptions)

Configures options for a PolygonOverlay, which can be added and displayed on the map. See the TomTomMap.addPolygonOverlay(options: PolygonOverlayOption) to check how to add a new PolygonOverlay.