Class GeoMapView
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.MapView
io.jmix.mapsflowui.component.model.GeoMapView
- All Implemented Interfaces:
Serializable
The class represents map's viewport. It provides methods for configuring map center,
zoom and rotation.
For more details see: View docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapView
MapView.StateChangeEventNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent -
Field Summary
FieldsFields inherited from class io.jmix.mapsflowui.kit.component.model.MapView
constrainOnlyCenter, currentExtent, extent, maxZoom, minZoom, projection, rotation, showFullExtent, smoothExtentConstraint, zoomFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, metaProperties, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Coordinateprotected voidvoidsetCenter(org.locationtech.jts.geom.Coordinate center) Sets the map center.Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapView
getConstrainOnlyCenter, getCurrentExtent, getExtent, getMaxZoom, getMinZoom, getProjection, getRotation, getShowFullExtent, getSmoothExtentConstraint, getType, getZoom, setConstrainOnlyCenter, setExtent, setMaxZoom, setMinZoom, setProjection, setRotation, setShowFullExtent, setSmoothExtentConstraint, setZoomMethods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSuperParent, getSyncId, hashCode, isAttachedToMap, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMetaProperty, setParent, unmarkDirtyInDepth
-
Field Details
-
center
protected org.locationtech.jts.geom.Coordinate center
-
-
Constructor Details
-
GeoMapView
public GeoMapView()
-
-
Method Details
-
getCenter
public org.locationtech.jts.geom.Coordinate getCenter()- Returns:
- map center
-
setCenter
public void setCenter(org.locationtech.jts.geom.Coordinate center) Sets the map center.For more details see: #setCenter() docs
- Parameters:
center- map center coordinate
-
onStateChangeEvent
- Overrides:
onStateChangeEventin classMapView
-