setImage

Sets the image that should be used to display the reticle at the design size on the com.arcgismaps.mapping.view.MapView. Use this method to change the reticle image to your own choice of image, using the physical pixel size of the given image. If you need to scale the image, use GeometryEditorReticle.setImage instead.

The center of the image is used as the target position for edits, so bear this in mind when creating your own custom reticle images and ensure the edit position is clear to your users.

Using a reticle image with large areas of transparent or semi-transparent pixels allows you to see sufficient areas of the map to give appropriate context for the edit. This method invokes Bitmap.compress and may be long running.

Since

200.5.0

Parameters

image

Image to be used for the reticle.

See also


fun setImage(image: BitmapDrawable, width: Float, height: Float)

Sets the image that should be used to display the reticle at a desired size on the com.arcgismaps.mapping.view.MapView. The center of the image is used as the target position for edits, so bear this in mind when creating your own custom reticle images and ensure the edit position is clear to your users. The image should be designed to avoid obscuring too much of the map and the geometry editor feedback, for example by using large areas of transparent or semi-transparent pixels. This method invokes Bitmap.compress and may be long running.

Since

200.5.0

Parameters

image

Image to be used for the reticle.

width

The desired width of the image when displayed in the com.arcgismaps.mapping.view.MapView in DIPS.

height

The desired height of the image when displayed in the com.arcgismaps.mapping.view.MapView in DIPs.

See also

Throws

if either width or height are less than or equal to zero.