Class GeoMapView

All Implemented Interfaces:
Serializable

public class GeoMapView extends MapView
The class represents map's viewport. It provides methods for configuring map center, zoom and rotation.

For more details see: View docs

See Also:
  • 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

      protected void onStateChangeEvent(MapView.StateChangeEvent event)
      Overrides:
      onStateChangeEvent in class MapView