Search in sources :

Example 1 with MapMoveEndEvent

use of org.gwtopenmaps.openlayers.client.event.MapMoveEndListener.MapMoveEndEvent in project geo-platform by geosdi.

the class CatalogMapMoveListenerProvider method get.

@Override
public MapMoveEndListener get() {
    return new MapMoveEndListener() {

        @Override
        public void onMapMoveEnd(MapMoveEndEvent eventObject) {
            Map map = eventObject.getSource();
            fireCatalogBBoxChangeEvent(CatalogMapExtentReprojector.reprojects(new Projection(map.getProjection()), map.getExtent()));
        }
    };
}
Also used : MapMoveEndEvent(org.gwtopenmaps.openlayers.client.event.MapMoveEndListener.MapMoveEndEvent) Projection(org.gwtopenmaps.openlayers.client.Projection) MapMoveEndListener(org.gwtopenmaps.openlayers.client.event.MapMoveEndListener) Map(org.gwtopenmaps.openlayers.client.Map)

Aggregations

Map (org.gwtopenmaps.openlayers.client.Map)1 Projection (org.gwtopenmaps.openlayers.client.Projection)1 MapMoveEndListener (org.gwtopenmaps.openlayers.client.event.MapMoveEndListener)1 MapMoveEndEvent (org.gwtopenmaps.openlayers.client.event.MapMoveEndListener.MapMoveEndEvent)1