Ширина между -90 и +90 ° < /p>
Ширина составляет 90,5 ° < /p>
она все еще должна работать, потому что минимальный и максимум должен составлять -180 и 180. < /p>
Код: Выделить всё
mapView = findViewById(R.id.map);
mapView.setTileSource(TileSourceFactory.MAPNIK);
mapView.setVerticalMapRepetitionEnabled(false);
mapView.setHorizontalMapRepetitionEnabled(false);
mapController = (MapController) mapView.getController();
mapController.setZoom(5);
mapController.setCenter(new GeoPoint(47.0,19));
mapView.setMultiTouchControls(true);
Polygon hidePolygon = new Polygon();
double centerLat = 0.0;
double centerLon = 0.0;
double height = 50;
double width = 181;
List rectanglePoints = Arrays.asList(
new GeoPoint(centerLat + height / 2, centerLon - width / 2),
new GeoPoint(centerLat + height / 2, centerLon + width / 2),
new GeoPoint(centerLat - height / 2, centerLon + width / 2),
new GeoPoint(centerLat - height / 2, centerLon - width / 2),
new GeoPoint(centerLat + height / 2, centerLon - width / 2)
);
hidePolygon.setPoints(rectanglePoints);
hidePolygon.getFillPaint().setARGB(255,0,0,0);
mapView.getOverlayManager().add(hidePolygon);
Подробнее здесь: https://stackoverflow.com/questions/794 ... ong-places
Мобильная версия