Comments (9)
There are several open issues in the old Google Code issue tracker. Please feel free to submit a pull request.
from osmdroid.
Effectively, I didn't check in gooclecode issues. In fact, my issue is 100% redundant with this one:
http://code.google.com/p/osmdroid/issues/detail?id=360
Looking at [email protected] comment #1, it looks like it could be a bug in MOBAC.
from osmdroid.
Note that in MOBAC, it's possible to use the "custom tile processing" to get MapQuest tiles as PNG images instead of JPEG.
Using this option, the resulting GEMF file is displayed correctly under osmdroid, when using any default tile source (TileSourceFactory.MAPNIK or TileSourceFactory.MAPQUESTOSM for instance).
from osmdroid.
I'm also running into this issue — neither the GEMF nor Zip files work with jpgs as the source images. JPGs do work fine as plain old tiles, but once they are packaged they no longer load.
In my case, using MOBAC to convert the tiles to pngs isn't an option, and certainly isn't a fix for this bug... it should be possible to use jpgs.
I thought maybe it had to do with the getDrawable method that takes an InputStream, since it's called for both GEMF and Zip, but after a bit of debugging it seems that when the GEMF/Zip contains jpgs the getDrawable method is never called, suggesting the problem occurs earlier on in the code's execution.
There are no errors that I can see, but I'm not sure how to view the slf4j logs... that would be helpful.
from osmdroid.
old issue, but i just merged some code to remove slf4j. all log output now goes to android's logcat. it may shed some light on the issue.
from osmdroid.
i had some time to look at this, same scenario with jpegs.
Confirming same behavior as detailed above.
final Bitmap bitmap = BitmapFactory.decodeStream(aFileInputStream, null, bitmapOptions);
Just guessing, but this looks like a google problem, not ours.
See https://code.google.com/p/android/issues/detail?id=6066
I tried their work around but it didn't work :(
from osmdroid.
I don't think it's similar to https://code.google.com/p/android/issues/detail?id=6066
- They report that BitmapFactory.decodeStream() returns null, I think that in our case, it never returns.
- We have this issue when using GEMF format. Not with MapQuest online tiles (which are jpeg). Not sure for jpg in a ZIP.
- Apparently, the same issue occurs with the same GEMF files on a QT viewer.
So I really suspect MOBAC GEMF encoding.
from osmdroid.
@MKergall want to open a mobac bug report?
from osmdroid.
#615 fix
from osmdroid.
Related Issues (20)
- Create mapSnapShot app crashed
- osmdroid-mapsforge: Unable to add marker and draw poly line on the map HOT 2
- How to support GCJ-02 HOT 7
- Cannot navigate to a fragment after clicking on a marker HOT 1
- .
- Custom ZoomIn and ZoomOut buttons. How to implement custom zoomOut/zoomIn buttons? HOT 2
- Map animating to previous state after a couple of seconds with Jetpack Compose HOT 1
- java.lang.NullPointerException: Attempt to invoke interface method 'boolean org.osmdroid.views.overlay.OverlayManager.add(java.lang.Object)' on a null object reference HOT 2
- IP tracker and ad in wiki HOT 3
- open street map don't display
- TileSourceFactory US aviation maps don't load any more
- Writing and reading data from the real time database for Osmdroid HOT 1
- delete markers
- Animating the movement of a cursor along a polyline with two colors codes: the completed part and the part to do ? HOT 1
- displaying the route and deleting the marker zi database HOT 1
- BingMapTileSource always crash HOT 2
- Some issues when initializing mapsforge
- Zoom changes ignored if performed while an animation is underway
- Issue: GroundOverlay bad placement when invalidate map
- GroundOverlay - Draw White Image on Android 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmdroid.