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

Android: use VTM OpenGL vector map library #850

Merged
merged 1 commit into from
Oct 28, 2016
Merged

Android: use VTM OpenGL vector map library #850

merged 1 commit into from
Oct 28, 2016

Conversation

devemux86
Copy link
Contributor

@devemux86 devemux86 commented Oct 28, 2016

We released VTM 0.6.0 OpenGL vector map library. 🙂

Here is an update for Android sample, i.e. GraphHopper + VTM working together:

  • Use VTM OpenGL renderer with offline Mapsforge vector maps
  • Show its overlay API use for the routing markers and calculated route line

@karussell karussell added this to the 0.9 milestone Oct 28, 2016
@karussell
Copy link
Member

Really nice update - thanks a lot @devemux86 !

@karussell karussell merged commit 5a27ecd into graphhopper:master Oct 28, 2016
@devemux86 devemux86 deleted the android branch October 28, 2016 12:40
@devemux86
Copy link
Contributor Author

Probably you could update now the Android screenshot with something more OpenGL in 2.5D!

@karussell
Copy link
Member

Do you know how the pom.xml snippet looks like with those native libs?

@karussell
Copy link
Member

Probably you could update now the Android screenshot with something more OpenGL in 2.5D!

Yeah, tried this but I still rely on (old) Maven ;(

@devemux86
Copy link
Contributor Author

Do you know how the pom.xml snippet looks like with those native libs?

Can you try declaring the natives with the <classifier> tag, e.g.:

<classifier>natives-armeabi</classifier>

@karussell
Copy link
Member

Thanks, that was it! Never heard about classifier, always thought the system path is the way to go, nice!

This is just wow :) ! Not only the rotation & tilt is nice but also the rendering speed!

@devemux86
Copy link
Contributor Author

devemux86 commented Oct 28, 2016

This is just wow :) ! Not only the rotation & tilt is nice but also the rendering speed!

And without an active file tile cache!
We can add it in the future for an even better experience. 🙂

karussell added a commit that referenced this pull request Oct 28, 2016
@karussell
Copy link
Member

karussell commented Oct 28, 2016

Hmmh, tried a landscape screenshot but the text does not rotate. So I included for now a smaller screenshot but it does not look that pretty: https://github.com/graphhopper/graphhopper/blob/master/docs/android/index.md

(I removed the readme in the Android subproject - good idea or should we at least point to the android docs fromt here?)

@devemux86
Copy link
Contributor Author

devemux86 commented Oct 28, 2016

tried a landscape screenshot but the text does not rotate

Probably because app is locked for portrait?

Screenshot indeed should be a large one, at least HD.
Android subproject could use a docs link and the same screenshot, good for demonstration there too. 🙂

@karussell
Copy link
Member

Ok, I'll try.

Android subproject could use a docs link and the same screenshot, good for demonstration there too. 🙂

Problem of this dup info: I completely forgot about it ... I'll re-add a link to the docs + the screen.

@devemux86
Copy link
Contributor Author

devemux86 commented Oct 28, 2016

I'd replace that line with

android:configChanges="keyboardHidden|orientation|screenSize"

to avoid application restart with device orientation changes.

@karussell
Copy link
Member

Nice, that improves it even more - thanks again!

karussell added a commit that referenced this pull request Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants