osmdroid

Android - osmbonuspack - how to rotate the marker title on the map

℡╲_俬逩灬. 提交于 2021-02-08 03:14:14
问题 My mapview (osmbonuspack) rotates into the walking direction. How can I rotate the marker's title on the map so that they are horizontal - i.e. easy for reading? I see that the marker itself does not need any rotation while the map is turned. Any change in the walking direction will result in the right rotation of the map using: mapview.setMapOrientation( (float) -headingByCompass); So on any change, I first find all Markers on the mapview. Then I tried to rotate them ... but the title

Android - osmbonuspack - how to rotate the marker title on the map

感情迁移 提交于 2021-02-08 03:12:33
问题 My mapview (osmbonuspack) rotates into the walking direction. How can I rotate the marker's title on the map so that they are horizontal - i.e. easy for reading? I see that the marker itself does not need any rotation while the map is turned. Any change in the walking direction will result in the right rotation of the map using: mapview.setMapOrientation( (float) -headingByCompass); So on any change, I first find all Markers on the mapview. Then I tried to rotate them ... but the title

Android - osmbonuspack - how to rotate the marker title on the map

萝らか妹 提交于 2021-02-08 03:12:14
问题 My mapview (osmbonuspack) rotates into the walking direction. How can I rotate the marker's title on the map so that they are horizontal - i.e. easy for reading? I see that the marker itself does not need any rotation while the map is turned. Any change in the walking direction will result in the right rotation of the map using: mapview.setMapOrientation( (float) -headingByCompass); So on any change, I first find all Markers on the mapview. Then I tried to rotate them ... but the title

Android - osmbonuspack - how to rotate the marker title on the map

依然范特西╮ 提交于 2021-02-08 03:11:01
问题 My mapview (osmbonuspack) rotates into the walking direction. How can I rotate the marker's title on the map so that they are horizontal - i.e. easy for reading? I see that the marker itself does not need any rotation while the map is turned. Any change in the walking direction will result in the right rotation of the map using: mapview.setMapOrientation( (float) -headingByCompass); So on any change, I first find all Markers on the mapview. Then I tried to rotate them ... but the title

OSMDROID displays multiple maps with polylines in Android

泄露秘密 提交于 2021-01-29 12:39:25
问题 I see multiple maps with polyline when I start my android application. How can I show only one map? MainActivity : public class MainActivity extends AppCompatActivity { MapView map; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Context ctx = getApplicationContext(); Configuration.getInstance().load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx)); setContentView(R.layout.activity_main); map = findViewById(R.id.mapViewMain); map