Page 1 of 1
xMap on Android Devices
Posted: Thu Nov 05, 2015 11:06 am
by Janabat
Hi,
can you provide a short sample for displaying xMap like Google Maps on Android Devices?
It can be very short.
The have to be only the options for zooming and displaying clickable objects (pins) on a map.
Thx for your help.
Kind regards,
Jan
Re: xMap on Android Devices
Posted: Thu Nov 05, 2015 11:48 am
by Bernd Welter
Hello Jan,
if you want to connect to a regular xServer using the generic calls of the SOAP/JSON interface you may just use the existing JAVA clients provided by PTV.
With xMap it is a little bit more challenging:
- interactive maps require a map widget. PTV can provide such a widget in cooperation with a partner.
- it is also an option to use the standard Google maps widget and to integrate your own xMap layers (almost similar to the leaflet layers).
- if you want to use the Google widget approach you have to create two separate layers: one foreground layer with the labels and another background layer with the geographic tiles.
- our dev partner can prepare such a sample within the next weeks but not just today - so please be patient
As soon as I have access to such a sample I can povide it,
Best regards Bernd
Re: xMap on Android Devices
Posted: Thu Dec 03, 2015 10:44 am
by Oliver Heilig
Hi Jan,
I haven't tested this on Android, but i think you have the same options i showed for windows store apps a while ago, see the blog here
http://devblog.ptvgroup.com/2013/04/30/ ... ndow-8-ui/
So for Android:
* Use the Google Maps Android API and add xMap via WMS, see
http://www.azavea.com/blogs/labs/2013/0 ... n-android/. But you have to disable the google base map then. Don't know if that's possible.
* Use the Android WebView and add leaflet as map widget
http://stackoverflow.com/questions/1594 ... online-map. Then you can simply add xMap via WMS. Leaflet works well on android
http://ptv-logistics.github.io/Leaflet.NonTiledLayer/.
As Bernd mentioned, there are more sophisticated ways that also support offline maps, but this goes beyond the xMapServer-API. In this case you should ask you PTV contact person.
Oliver
Re: xMap on Android Devices
Posted: Thu Dec 03, 2015 11:01 am
by Janabat
Hi Oliver,
thank you.
i had forget to post a reply. We still have a prototype using the Google Maps Android API and it's working fine for us.
Now we also try to build a hybrid app (for Android and iOS) using SAP Kapsel (Apache Cordova) and the SAP UI5 Framework and also using the Google Maps SDK Plugin.
Kind regards,
Jan
Re: xMap on Android Devices (2021)
Posted: Tue Jul 13, 2021 4:18 pm
by Bernd Welter
Hello Oli,
how would you recommend to approach to deal with this requirement in the context of 2021?
Any generic news based on Android which we can recommend?
Bernd