GeometryMapObjectBuilder
Class for setting properties and then creating geometric objects.
ru.dgis.sdk.NativeObject
GeometryMapObjectBuilder()
fun setObjectAttribute(name: String, value: AttributeValue): GeometryMapObjectBuilder
Setting the map object property.
fun setObjectAttributes(values: Map): GeometryMapObjectBuilder
Setting the properties of the map object.
values
Map
Set of "name":"value" pairs for added properties of the map object
The method does not replace the entire set of object properties, i.e. if the property is missing in values, but has already been added to object previously, it will not be changed.
fun setGeometry(geometry: Geometry): GeometryMapObjectBuilder
Setting the geometry of the map object.
fun setVisible(visible: Boolean): GeometryMapObjectBuilder
Set the visibility of the map object.
fun setDraggable(draggable: Boolean): GeometryMapObjectBuilder
Setting the possibility of dragging a map object.
fun setUserData(userData: Any?): GeometryMapObjectBuilder
Installing user data.
User data is not used in any way in the SDK and is only needed to return it to the user.
fun createObject(): GeometryMapObject
Constructing a map object.
The object must have geometry
After calling this function, GeometryMapObjectBuilder is not suitable for setting the parameters of a map object or for creating it
fun setObjectAttribute(name: String, value: Boolean): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Long): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Int): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Double): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Float): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: String): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: ByteArray): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Color): GeometryMapObjectBuilder