Class MapViewMoveEndEvent

    • Constructor Detail

      • MapViewMoveEndEvent

        public MapViewMoveEndEvent​(MapBase source,
                                   boolean fromClient,
                                   @EventData("event.detail.rotation")
                                   double rotation,
                                   @EventData("event.detail.zoom")
                                   double zoom,
                                   @EventData("event.detail.center")
                                   elemental.json.JsonArray center,
                                   @EventData("event.detail.extent")
                                   elemental.json.JsonArray extent)
    • Method Detail

      • getRotation

        public float getRotation()
        Gets the View's updated rotation
        Returns:
        updated rotation in radians
      • getZoom

        public float getZoom()
        Gets the View's updated zoom level
        Returns:
        updated zoom level
      • getCenter

        public Coordinate getCenter()
        Gets the View's updated center coordinates
        Returns:
        updated center coordinates
      • getExtent

        public Extent getExtent()
        Gets the updated extent (or bounding box) of the View's currently visible area. Can be used to check whether a specific coordinate is within the viewport.
        Returns:
        updated extent