android-maps

Drawing shapes in Android MapView independent of the zoom level

限于喜欢 提交于 2021-02-05 17:44:37
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Drawing shapes in Android MapView independent of the zoom level

心已入冬 提交于 2021-02-05 17:41:22
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Drawing shapes in Android MapView independent of the zoom level

十年热恋 提交于 2021-02-05 17:36:14
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Drawing shapes in Android MapView independent of the zoom level

浪尽此生 提交于 2021-02-05 17:34:09
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new