osmdroid

OSMDroid zip - how to add custom maps?

戏子无情 提交于 2020-01-11 11:01:49
问题 I am using OSMdroid's MapView and I am planning to add custom maps. I cannot convert them via MOBAC, I need to find out the format preferrences and characteristics. Have you seem some information about it? I have been looking for it for weeks but no luck. 回答1: Do you mean the tile format? I belive this is a good reference. 来源: https://stackoverflow.com/questions/9094076/osmdroid-zip-how-to-add-custom-maps

OSMDroid: onTap example

情到浓时终转凉″ 提交于 2020-01-11 06:15:06
问题 I've started to study Android few weeks ago and now I need your help. My task is create off-line map (using OSMDroid and Mobile Atlas Creator), with two markers on it, path between them and some activity after clicking on this markers. I've done map, markers and path. Here is the code (Android 2.3.3): public class MainActivity extends Activity { private MapView mapView; LocationManager locationManager; ArrayList<OverlayItem> overlayItemArray; @Override public void onCreate(Bundle

OSMDroid: onTap example

徘徊边缘 提交于 2020-01-11 06:14:26
问题 I've started to study Android few weeks ago and now I need your help. My task is create off-line map (using OSMDroid and Mobile Atlas Creator), with two markers on it, path between them and some activity after clicking on this markers. I've done map, markers and path. Here is the code (Android 2.3.3): public class MainActivity extends Activity { private MapView mapView; LocationManager locationManager; ArrayList<OverlayItem> overlayItemArray; @Override public void onCreate(Bundle

Loading Tile Source

蓝咒 提交于 2020-01-06 07:17:06
问题 I'm trying to load a tile source, but for some reason it doenst work. Here's my code: final IRegisterReceiver registerReceiver = new SimpleRegisterReceiver(this); // Create a custom tile source final ITileSource tileSource = TileSourceFactory.MAPNIK; // Create a file cache modular provider final TileWriter tileWriter = new TileWriter(); final MapTileFilesystemProvider fileSystemProvider = new MapTileFilesystemProvider(registerReceiver, tileSource); File myMapTileSource = new File

How to remove Markers from Osmdroid Map

。_饼干妹妹 提交于 2020-01-03 06:27:40
问题 I'm creating an Android Application where i need to set markers on the map. And since my App requires Offline function i need to use Osmdroid to solve this problem. Now my issue is the markers on the map, which i can easily add them by using Markers or the ItemizedOverlay, but the issue i'm having is that i cannot remove markers from the map. The code i have used for adding markers is this one: Marker marker = new Marker(mapView); marker.setPosition(new GeoPoint(41.3746312,19.7710733));

Changing User Agent in OSMDroid

被刻印的时光 ゝ 提交于 2020-01-03 02:56:08
问题 Is it possible to change User Agent I send with every tile request in OSMDroid? I'm currently getting 403 Forbidden error whenever I try to download a tile (as described in another SO question), probably because OSMDroid itself has been banned. 回答1: Please follow Issue 515 to track this issue. We have implemented a fix and we will release a proper update soon. We will be providing a factory interface for customizing the user-agent. 回答2: It looks like the only way to specify the User Agent is

OSMdroid bounds marker

大憨熊 提交于 2020-01-02 04:40:10
问题 ////OSMdroid centered on the markers//// I add markers, I need to map the maximum increases or decreases in such a way that all markers were visible my code: public class mapcode extends Activity { globalvar appState; int stats=0; private MapView mapView; private IMapController mapController; private SimpleLocationOverlay mMyLocationOverlay; private ScaleBarOverlay mScaleBarOverlay; ItemizedIconOverlay<OverlayItem> currentLocationOverlay; DefaultResourceProxyImpl resourceProxy; protected void

android.view.WindowLeaked: Activity has leaked window android.widget.ZoomButtonsController$Container that was originally added here

自闭症网瘾萝莉.ら 提交于 2020-01-01 04:50:08
问题 Working with maps i have an activity which is launched when no connection is available and uses offline maps (MapQuest). The activity runs fine, map is shown, and all overlays, markers and so on. When the user clicks on one of the markers info window another activity is launched and at this moment i get a bunch of red error messages in the log, though the app does not crash. These messages (the init is in the title) seem to talk about the ZoomButtons and touch events. As for ZoomButtons or

OSMdroid : How to load offline map from zip archive - MapTileFileArchiveProvider

你。 提交于 2019-12-29 06:30:33
问题 I really need some help with the OSMdroid library. It is useful to have maps stored in sdcard as zip files. Also, maps can be unzipped and the image files may be used directly for faster rendering. I managed to load tiles from my sdcard when the tiles are unziiped , have .tile extension and are stored in the folder /sdcard/osmdroid/tiles/Mapnik/... To create my map I used the Mobile Atlas Creator and OSMAND tile storage format. I read some tutorials on the web that claim storing zip files

OSMdroid : How to load offline map from zip archive - MapTileFileArchiveProvider

空扰寡人 提交于 2019-12-29 06:30:08
问题 I really need some help with the OSMdroid library. It is useful to have maps stored in sdcard as zip files. Also, maps can be unzipped and the image files may be used directly for faster rendering. I managed to load tiles from my sdcard when the tiles are unziiped , have .tile extension and are stored in the folder /sdcard/osmdroid/tiles/Mapnik/... To create my map I used the Mobile Atlas Creator and OSMAND tile storage format. I read some tutorials on the web that claim storing zip files