Questions tagged [mapsforge]

Mapsforge is a library for offline map rendering on Android devices.

Mapsforge is a library for offline map rendering on Android devices and stands under the LGPLv3 license.

110 questions
28
votes
6 answers

Java: Scale Mapsforge Map when using online bitmap tiles instead of offline renderer

I use MapsForge 0.8 to display maps in my Android app. When using online tiles (which are just bitmaps and not vector data that can be adjusted in the runtime renderer), the map is really tiny on my Hi-resolution device and I can't read anything. I…
juergen d
  • 201,996
  • 37
  • 293
  • 362
15
votes
2 answers

Add opaque "shadow" (outline) to Android TextView

I have a TextView in my Activity to which I want to add a shadow. It is supposed to look like in OsmAnd (100% opaque): But it looks like this: You can see that the current shadow is blurred and fades away. I want a solid, opaque shadow. But…
juergen d
  • 201,996
  • 37
  • 293
  • 362
10
votes
3 answers

Get the Latitude and Longitude of a position clicked on a maps forge 0.5.1 MapView

I use the maps forge 0.5.1 libraries (api reference) I have followed all the official instructions but I have the following problem : I have attached an onTouchListener on the (org.mapsforge.map.android.view.MapView)mapView but when I try to…
karvoynistas
  • 1,295
  • 1
  • 14
  • 30
8
votes
1 answer

Osmdroid vs Mapsforge

I will develop a new Android application, in the past I developed an a application and I used Mapsforge, but now I see their web and they havent got release since Mar 2013... What do you recommend me to use, Osmdroid or Mapsforge? Thanks in advance
RoberV
  • 587
  • 5
  • 22
5
votes
1 answer

How to fix native SIGABRT using Mapsforge on Android

I'm using Mapsforge 0.6.1 and I can reproduce the issue with the following reduced example, which is basically a copy of this tutorial: https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Android-App.md I've made some minor…
C. L.
  • 571
  • 1
  • 8
  • 26
4
votes
1 answer

Style mapsforge map like google map or mapsme

I'd like to know if there are existing rendertheme for mapsforge that would mimick GoogleMaps maps style, or even better mapsme (mapswithme) style ? I'm currently using rendertheme-v4 which is not as nice looking and clear than the 2 other…
jav974
  • 1,022
  • 10
  • 22
4
votes
1 answer

OsmBonusPack ofline POI search from Mapsforge map file

Please bare with the newbie.. Having gone through a few posts here, it seems to be possible a holy grail with Mapsforge, osmdroid, graphhopper and OsmBonusPack for offline routing and turn by turn navigation. I want to develop an android app for my…
PraxisNFP
  • 41
  • 2
3
votes
1 answer

How to move the setContentView(View view) method to a fragment

I'm using a library (VTM) that was designed to be used with activities, and requires the setContentView method passing it a view, like this: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MapView…
Daehan
  • 55
  • 3
3
votes
3 answers

Using map.osm and osmarender.xml from Android project in web project

I edited an .osm file and a style file (osmarender.xml) some time ago and included it in an Android project (using osmosis and the Mapsforge library). Works fine and looks good. Now I would like to reuse these files in a web project using OpenLayers…
kalabalik
  • 3,792
  • 2
  • 21
  • 50
3
votes
1 answer

Rotate marker to the device heading at precise location when map is rotating.

Using new version of mapsforge 0.5.1, map rotates fine with onSensorChanged event. I have added a custom GPS location marker at GPS point on onLocationChanged event. When the map rotates, the marker is also rotated to point towards the device…
h1m4l
  • 189
  • 3
  • 14
3
votes
2 answers

Offline map freezes the app after proguard on android

I have an Android app using nutiteq OSM map, with mapsforge renderer, and a map file stored in the assets folder. It works perfectly without proguard, but after obfuscation, the app freezes, without any log info. In the proguard.cfg: -keep class…
Szoszi
  • 41
  • 5
2
votes
1 answer

Osmdroid 6.0.1 with Mapsforge: invalid resource

We were using osmdroid in our Android app together with Mapsforge for offline maps for some time now. This week we decided to update to version 6.0.1. Since then I receive the following errors when I try to display a map which is using…
little_planet
  • 655
  • 1
  • 6
  • 13
2
votes
2 answers

Mapsforge InternalRenderTheme Missing Error

I tried to start my first project with mapsforge. So I did this, change app/build.gradle dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { …
beli3ver
  • 363
  • 3
  • 15
2
votes
1 answer

Block certain road in graphhopper

I would like to block certain road and avoid it when generating route. I'm using the Graphhopper basic map sample I found this code Weighting. I believe this is the function I'm looking for but I have no luck integrating it. I really appreciate…
Mellorine
  • 265
  • 1
  • 5
  • 13
2
votes
3 answers

Mapsforge simplest map viewer - map not rendered with default theme

I'm trying to run the example of the simplest map viewer from mapsforge project: A very basic Android app example - GitHub with Android Studio. During the application run I'm encoutering a problem - map isn't rendered:…
1
2 3 4 5 6 7 8