Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offline-map #312

Closed
Mantj opened this issue May 20, 2016 · 5 comments
Closed

offline-map #312

Mantj opened this issue May 20, 2016 · 5 comments

Comments

@Mantj
Copy link

Mantj commented May 20, 2016

when i used
map.setTileSource(new XYTileSource("MapQuest", 0, 18, 256, ".jpg", new String[] {}));
eclipse tell me thats error.
So I use
map.setTileSource(new XYTileSource("MapQuest", null,0, 18, 256, ".jpg", new String[] {}));
but I can not see the map.
By the way
osmdroid 4.3
osmbonuspack 5.0
slf4j 1.6.1

please help me~

@spyhunter99
Copy link
Collaborator

do you have an offline tile archive already prepared and copied to the device in /sdcard/osmdroid?
does the offline tile archive use the "MapQuest" tile source name?

@Mantj
Copy link
Author

Mantj commented May 21, 2016

yes,I used MOBAC to download the offline tile.

@spyhunter99
Copy link
Collaborator

Did you produce a sqlite file or a zip file? In either case, you'll want to open the archive and verify that the source name is exactly "MapQuest"

@Mantj
Copy link
Author

Mantj commented May 22, 2016

Yes,of course.
I use
map.setTileSource(new XYTileSource("MapQuest", 0, 18, 256, ".jpg", new String[] {}));
in android studio,and I can successfully get my offline-map
but when I use this in eclipse,it tells me thats error,and ask me use
map.setTileSource(new XYTileSource("MapQuest", null,0, 18, 256, ".jpg", new String[] {}));
why I must add "null"?is it because I use osmdroid 4.3.jar?

@spyhunter99
Copy link
Collaborator

the only possibility if that you have two different versions in play for
android studio and for eclipse. There was an API change that removed the
need for the null parameter when the resource proxy was removed.

On Sat, May 21, 2016 at 10:52 PM, Mantj notifications@github.com wrote:

Yes,of course.
I use
map.setTileSource(new XYTileSource("MapQuest", 0, 18, 256, ".jpg", new
String[] {}));
in android studio,and I can successfully get my offline-map
but when I use this in eclipse,it tells me thats error,and ask me use
map.setTileSource(new XYTileSource("MapQuest", null,0, 18, 256, ".jpg",
new String[] {}));
why I must add "null"?is it because I use osmdroid 4.3.jar?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#312 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants