osmdroid

Download maps for osmdroid

拈花ヽ惹草 提交于 2019-12-27 11:44:48
问题 I am developing an application in which I need to use maps offline. I'm using osmdroid and osmbonuspack To download the maps I've tried: MobileAtlasCreator but Mapnik maps are locked. osmdroid-packager. It works, but only download 9 me to zoom For me the ideal would be to download the maps from the application itself, and I just want to download the maps you are on a track, not a complete section. How could I fix it? Is there any way to download maps from the phone through my application? 回答1

OSMDroid does not show map

雨燕双飞 提交于 2019-12-25 11:40:23
问题 I have generated a sqlite tile via atlas generator(according to this guide), but when i using this tiles in OSMDroid , OSMDroid does not showing anything! I don't know what is the issue, i have checked everything like zoom levels, center locations and etc.. Here are my codes : MapView map = (MapView) rootView.findViewById(R.id.map); map.setTileSource(new XYTileSource(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "osmdroid" + File.separator + "tehran17.sqlite",

osmdroid, set a custom icon in a mapview

懵懂的女人 提交于 2019-12-25 08:47:23
问题 My App is using a local service, that provides changing locations. These locations are added to my ArrayList: static List<Location> weg = new ArrayList<Location>(); The WegAnsehenActivity now shows the path connecting the points. My goal: I want to change the icon on the path for the last current point completion: I want to change the green arrow on the last position My problem: how can I achieve this ? import org.osmdroid.api.IMapController; import org.osmdroid.tileprovider.tilesource

Empty OsmDroid Map? Where to custom the new map?

折月煮酒 提交于 2019-12-25 03:06:56
问题 Recently I tried to follow these steps: website. with the casual way of adding the map to be visible into the screen using this code: GPSTrackerActivity.java public class GPSTrackerActivity extends Activity { private SDCardHandler SDTool; private ToastSender ToastObject; private FrameLayout frm_lay; private MapView myOpenMapView; private MapController myMapController; @Override protected void onCreate(Bundle in) { super.onCreate(in); setContentView(R.layout.activity_gpstracker); SDTool = new

Making OsmDroid city label text larger

此生再无相见时 提交于 2019-12-25 01:08:15
问题 I find the text/labels for cities and towns to be rather small. Is there anyway i can manipulate the text size? 回答1: Osmdroid works with tiles that are static PNG images. You can not change the tile images. If you want to have a better mapping solution try MapsForge. This app/library works with maps data and renders them dynamically. This way you have more control on rendering maps and you can customize its texts and fonts and colors. Take a look at this: Streetnames openstreetmaps more

OSMDroid Routing problems when following a tutorial

血红的双手。 提交于 2019-12-24 16:52:34
问题 I utilise the following code to put a route overlay onto an OSM droid map, using code gotten from the following tutorial (http://code.google.com/p/osmbonuspack/wiki/Tutorial_1) but slightly tweaked into a custom method, rather than being used in the OnCrerate method. Now this does route and produces a green overlay on the map. However, there is a problem exhibited from the For Loop onwards. This is because road.mNodes is always size zero indicating that no instructions are coming down.

Strange behaviour with Osmdroid overlay at high zoom levels

♀尐吖头ヾ 提交于 2019-12-24 15:20:15
问题 I'm using the osmdroid 3.0.5 jar in my app to display a map view. I'm superimposing an overlay, consisting of horizontal and vertical lines. I've noticed that in certain locations only, at high zoom levels some of the lines disappear, then reappear as the map is dragged. I've produced a minimal sample app which demonstrates the problem which exhibits itself both on a real device and an emulator (Gingerbread 2.3.3). The complete code is shown below - (the 'transform' methods are necessary in

Two finger rotation for OSMdroid mapview

半城伤御伤魂 提交于 2019-12-24 13:44:08
问题 I'm trying to make two finger rotation for my offline maps using osmdroid. I'm new to using maps for android. I have a geoTIFF, I'm planning to extract info using NDK and later send it to JAVA. I need to use the geoPoint to align with True North Up using compass as well. How can I proceed, any help? I did try this: Android Two finger rotation example, but no luck, my app was not able to detect any two finger event. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

Proximity Alert firing twice?

廉价感情. 提交于 2019-12-24 09:16:43
问题 Receiver: public class ProximityAlert extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { int id = intent.getIntExtra("id", -1); String title = intent.getStringExtra("Title"); Intent showDialog = new Intent(context, ShowMapDialog.class); showDialog.putExtra("id", id); showDialog.putExtra("Title", title); context.startActivity(showDialog); } } ShowMapDialog.java: public class ShowMapDialog extends Activity { PowerManager.WakeLock wakeLock; AlertDialog

How to add text below/above in the middle of the polyline in osmdroid

对着背影说爱祢 提交于 2019-12-24 07:58:07
问题 How to add text below/above in the middle of the polyline in osmdroid? setTitle() does not work neither is setSubDescription() . And also how to add button overlays. 回答1: There is a way to do it and it's an opt in feature of the Marker class. The easiest way to find an example is with the LatLonGridOverlay. I'll reduce the logic to something simple to understand below. The key is the order of code, see the title, then set the icon to null, then add to the map. You'll have to figure out where