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();
}
Aggregations