osmdroid

How to cache/download google map v2 tile programmatically?

好久不见. 提交于 2019-12-04 00:09:52
How to cache/download google map v2 tile programmatically?, is it possible? Bcos according to this prntscr.com/3cyiqf its not possible but as I have seen this link TileProvider using local tiles I thought that if Android provides TileProvider class to load/use tile from the asset than it should be something available for caching/downloading a tile programmatically/run time My Actual requirement is : If user is connected with internet at that time he can able to download/cache a tile of specific area or he can download/cache, visible map in the phone screen only and whenever he goes offline at

How to use MOBAC created OSMDroid SQLite tile source file offline?

走远了吗. 提交于 2019-12-03 15:01:28
问题 I've been pulling my hair out trying to get my own offline Mobile Atlas Creator OSMDroid SQLite map working with OSMDroid 3.0.8 without luck. It's been a long 3 days. I'll try to explain with clips from my application. I've been extending ItemizedIconOverlay and OverlayItem so I hope it doesn't get too confusing. I created my own OSMDroid SQLite map file with 3 different zoom levels for a small are, like 10 square kms. I copied the resulting "base.sqlite" file into my project /res/raw/

Graphhopper, osmdroid for osmdroid offline routing

﹥>﹥吖頭↗ 提交于 2019-12-03 13:50:53
问题 I have been messing around for a while with osmdroid and osm bonus pack(amazing libs!), and have been pondering on the idea of offline routing and turn by turn navigation, now, I haven't tried anything yet, but something sounds very promising in throwing graphhopper in on the mix: The official Wiki guide is as following: Download a raw map file(.osm, .osm.pbf, etc.). Run ./graphhopper.sh import map_file Now, this is designed to work with MapsForge, and I haven't had the chance to check out

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

守給你的承諾、 提交于 2019-12-03 12:50:26
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 touch events (multitouch) in the code, there are only 2 lines : map.setBuiltInZoomControls(true); map

osmdroid - higher zoom level?

跟風遠走 提交于 2019-12-03 12:23:30
问题 I'm trying to implement a MapView using the osmdroid library. However at the moment the furthest I seem to be able to zoom in isn't sufficient enough for my purposes. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Setup map view: mapView = new MapView(this, 256); setContentView(mapView); // Parse parameters Intent intent = getIntent(); center = intent.getDoubleArrayExtra(INITIAL_CENTER); multiTouch = intent.getBooleanExtra(MULTI_TOUCH,

Animating markers on OpenStreet Maps using osmdroid

社会主义新天地 提交于 2019-12-03 09:01:37
I'm using the google Maps marker animation logic given here . My marker gets animated,but after each marker.setPosition(newPosition); I need to call mapView.invalidate(); which refreshes the map resulting in very sluggish animation. Is there any workaround? zapotec The next solution is working correctly for me: import org.osmdroid.api.IGeoPoint; import org.osmdroid.api.IMapController; import org.osmdroid.util.GeoPoint; import org.osmdroid.views.MapView; import org.osmdroid.views.Projection; import org.osmdroid.views.overlay.Marker; public void animateMarker(final Marker marker, final GeoPoint

How to use OSM map in an android application.? Is there any tutorial to learn about using OSM in android.?

与世无争的帅哥 提交于 2019-12-03 05:06:55
问题 Hi guys from past one week i'm searching for a tutorial/manual or steps to include Open street map into my android application. All i found is either a big project with lot more functionality on it, otherwise so many questions ended without proper conclusion about "HOW"..! Is there any proper blog/site or document that can a fresher can refer.? 回答1: I don't know of any tutorials but here's the code I wrote for a minimal example using Osmdroid. // This is all you need to display an OSM map

How to use MOBAC created OSMDroid SQLite tile source file offline?

余生颓废 提交于 2019-12-03 04:57:57
I've been pulling my hair out trying to get my own offline Mobile Atlas Creator OSMDroid SQLite map working with OSMDroid 3.0.8 without luck. It's been a long 3 days. I'll try to explain with clips from my application. I've been extending ItemizedIconOverlay and OverlayItem so I hope it doesn't get too confusing. I created my own OSMDroid SQLite map file with 3 different zoom levels for a small are, like 10 square kms. I copied the resulting "base.sqlite" file into my project /res/raw/ directory. Note that the GeoPoints in my application should be well within the map's tile range. The "base

Graphhopper, osmdroid for osmdroid offline routing

末鹿安然 提交于 2019-12-03 03:51:37
I have been messing around for a while with osmdroid and osm bonus pack(amazing libs!), and have been pondering on the idea of offline routing and turn by turn navigation, now, I haven't tried anything yet, but something sounds very promising in throwing graphhopper in on the mix: The official Wiki guide is as following: Download a raw map file(.osm, .osm.pbf, etc.). Run ./graphhopper.sh import map_file Now, this is designed to work with MapsForge, and I haven't had the chance to check out the resulting .ghz file, containing the routing data for the map, BUT my question is this, could it be

osmdroid - higher zoom level?

[亡魂溺海] 提交于 2019-12-03 02:53:37
I'm trying to implement a MapView using the osmdroid library. However at the moment the furthest I seem to be able to zoom in isn't sufficient enough for my purposes. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Setup map view: mapView = new MapView(this, 256); setContentView(mapView); // Parse parameters Intent intent = getIntent(); center = intent.getDoubleArrayExtra(INITIAL_CENTER); multiTouch = intent.getBooleanExtra(MULTI_TOUCH, DEFAULT_MULTI_TOUCH); zoomButtons = intent.getBooleanExtra(ZOOM_BUTTONS, DEFAULT_ZOOM_BUTTONS); zoomLevel