Search in sources :

Example 11 with BoundingBox

use of com.codename1.maps.BoundingBox in project codenameone-google-maps by codenameone.

the class MapInfoPanel method updateMapPosition.

public void updateMapPosition(int zoom, Coord center) {
    centerCoords.setText(coordString(center));
    BoundingBox bbox = map.getBoundingBox();
    swCoord.setText(coordString(bbox.getSouthWest()));
    neCoord.setText(coordString(bbox.getNorthEast()));
    zoomSlider.setMinValue(map.getMinZoom());
    zoomSlider.setMaxValue(map.getMaxZoom());
    zoomSlider.setProgress(zoom);
    revalidate();
}
Also used : BoundingBox(com.codename1.maps.BoundingBox)

Aggregations

BoundingBox (com.codename1.maps.BoundingBox)7 Coord (com.codename1.maps.Coord)7 Dimension (com.codename1.ui.geom.Dimension)3 Point (com.codename1.ui.geom.Point)3 Mercator (com.codename1.maps.Mercator)2 FloatingActionButton (com.codename1.components.FloatingActionButton)1 InteractionDialog (com.codename1.components.InteractionDialog)1 ToastBar (com.codename1.components.ToastBar)1 MapContainer (com.codename1.googlemaps.MapContainer)1 MapObject (com.codename1.googlemaps.MapContainer.MapObject)1 Util (com.codename1.io.Util)1 MapListener (com.codename1.maps.MapListener)1 ProxyHttpTile (com.codename1.maps.ProxyHttpTile)1 PointsLayer (com.codename1.maps.layers.PointsLayer)1 Button (com.codename1.ui.Button)1 Component (com.codename1.ui.Component)1 ComponentSelector.$ (com.codename1.ui.ComponentSelector.$)1 Container (com.codename1.ui.Container)1 Display (com.codename1.ui.Display)1 EncodedImage (com.codename1.ui.EncodedImage)1