xMap on Android Devices

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.
Post Reply
Janabat
Posts: 3
Joined: Thu Nov 05, 2015 10:27 am

xMap on Android Devices

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 2698
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xMap on Android Devices

Post 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
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: xMap on Android Devices

Post 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
Janabat
Posts: 3
Joined: Thu Nov 05, 2015 10:27 am

Re: xMap on Android Devices

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 2698
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xMap on Android Devices (2021)

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply