Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 6
Registered: ‎03-02-2017

Mobile-App: WMS is not displayed correctly

[ Edited ]

Hello, everyone,

I would like to include a WMS in the mobile app. Here is the GetCapabilities-Request:

http://gis1.sutter-ag.ch/WI_LKMAP_079_WMS/service.svc/get?version=1.3.0&Service=WMS&Request=GetCapab...

Unfortunately the WMS appears wrong in the mobile app or with empty tiles. I integrated it as follows:

 

	<Shell.Tiles>
	  <UrlTileOverlay Id="WMS" TileWidth="1024" TileHeight="1024" MinimumZoomLevel="1" MaximumZoomLevel="50000" Url="http://gis1.sutter-ag.ch/WI_LKMAP_079_WMS/service.svc/get?version=1.3.0&amp;service=WMS&amp;request=GetMap&amp;crs=EPSG%3A2056&amp;bbox=
	  {bbox}&amp;width={width}&amp;height={height}&amp;layers=Linie&amp;styles=&amp;format=image/png&amp;transparent=true" />
	</Shell.Tiles>

Is that correct? Do I still have to adjust anything?
Thank you very much for your help.

 

 

Staff
Posts: 1,030
Registered: ‎10-19-2015

Re: Mobile-App: WMS is not displayed correctly

you have to use a service which supports EPSG:3857, as stated in the documentation:

 

Configuration of tile sources for map views (WMTS, WMS and TMS). Projection must be EPSG:3857.

https://community.hexagongeospatial.com/t5/M-App-Enterprise-Tutorials/M-App-Enterprise-Mobile-Docume...

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Occasional Contributor
Posts: 6
Registered: ‎03-02-2017

Re: Mobile-App: WMS is not displayed correctly

Hi Stefano, 
thanks for your input!
We got now the service containing the epsg 3857. Unfortunately, I am still not able to visualize within the mobile App.
The GetMap-Request of the service is perfectly working:
<Shell.Tiles> 
       <UrlTileOverlay Id="WMS" TileWidth="512" TileHeight="512" MinimumZoomLevel="0" MaximumZoomLevel="20" Url="http://gis.sutter-ag.ch/LK_2773_L_WMS/service.svc/get?version=1.3.0&amp;service=WMS&amp;request=GetMap&amp;format=image/png&amp;crs=EPSG:3857&amp;width={width}&amp;height={height}&amp;layers=Abwasser_L&amp;bbox={bbox}&amp;transparent=true&amp;styles=" />     
</Shell.Tiles>
The GetMap-Request of the service is perfectly working:
 
To create the Url I have taken the reference of another post: 
 
Staff
Posts: 578
Registered: ‎11-12-2015

Re: Mobile-App: WMS is not displayed correctly

Hi odeseoe,

 

The WMS is visible in my Mobile M.App using the code you have provided. Is it still not visible for you? Perhaps try zoom in and zoom out on the Map or even adjust the min/max zoom parameters in the Shell.

 

Here is what I see for this WMS. I can't say it is correct location or not but it looks as though it is.

abwasser.PNG

Contributor
Posts: 85
Registered: ‎11-30-2015

Re: Mobile-App: WMS is not displayed correctly

Thanks for your support!

 

On the one side I am very happy to hear that it is working on the other side it's confusing me, because the very same is not working at ours..

 

So it seems like there is something else wrong. 

Is it possible that you might send us your shell that includes the WMS? Or at least the shell.xaml?

 

Thanks a lot and regards,

Hella

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.