setImage

Sets the image that should be used to display the reticle at the design size on the 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(BitmapDrawable, Float, Float) 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

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 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

See also

Throws

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