createFromGeoElement

fun createFromGeoElement(geoElement: GeoElement, bufferDistance: Double): FenceParameters

Static factory function to create a FenceParameters. This method creates the appropriate type of FenceParameters based on the type of the GeoElement that was supplied. The supported types of GeoElement are Graphic and Feature.

If passed an unsupported GeoElement, this method will return null.

Return

A FenceParameters created from a GeoElement.

Since

200.1.0

Throws

if the provided GeoElement is not a Graphic or Feature.