show

fun show(contentView: View, location: Point, offset: DoubleXY = DoubleXY.zero, rotateOffsetWithGeoView: Boolean = false)

Sets the content and location of the callout and shows it.

Since

200.2.0

Parameters

contentView

the View to display in the callout

location

the geographical location at which to display the callout

offset

offset in screen coordinates from the geographical location at which to place the callout

rotateOffsetWithGeoView

specifies whether the screen offset is rotated with the GeoView. The Screen offset will be rotated with the GeoView when true, false otherwise. This is useful if you are showing the callout for elements with symbology that does rotate with the GeoView


fun show(contentView: View, geoElement: GeoElement, tapLocation: Point? = null)

Sets the content and location of the callout for the given GeoElement and shows it.

The callout location will be determined relative to the tapLocation specified. The callout will be placed at the tapLocation if the tapLocation lies inside the given geoElement's geometry. If the tapLocation is outside the geoElement's geometry then the callout will be displayed at the vertex or coordinate of the geoElement's geometry closest to it. If no tapLocation is provided the callout will be placed at the center of the extent of the specified geoElement's geometry.

Since

200.2.0

Parameters

contentView

the View to display in the callout

geoElement

the GeoElement related to the callout

tapLocation

a Point the user has tapped, or null if the callout is not associated with a tap

Throws