M.App Enterprise Discussions

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
Regular Contributor
Posts: 246
Registered: ‎10-26-2015

Re: M.App Enterprise Mobile Offline Mode

Thanks for all of the help but I still can't display the WMTS from M.App Enterprise. I tested to see if having an Area assigned to the User was causing the issue but it wasn't.

 

Have you tested this is working in 2018 update 1?

 

Highlighted
Staff
Posts: 19
Registered: ‎10-29-2018

Re: M.App Enterprise Mobile Offline Mode

For a caching on demand WMTS you can use the following URL:

 

https://<yourserver>/api/v2/geoservices/wmts/<tenant>/<wmtsname>/google3857/{z}/{y}/{x}

 

If you have published a WMTS you need to replace <cacheversionwith the current cache version from your warehouse (it currently isn't displayed in Studio):

<warehousepath>\<tenant>\WmtsCache\<wmtsname>\google3857\<cacheversion>

 

https://<yourserver>/api/v2/geoservices/wmts/<tenant>/<wmtsname>/<cacheversion>/google3857/{z}/{y}/{x}

 

If it still doesn't work, please remove all other layers beside:

 

<TileLayer TileRef="AreasWMTS" />

Highlighted
Regular Contributor
Posts: 246
Registered: ‎10-26-2015

Re: M.App Enterprise Mobile Offline Mode

The only file located under D:\Program Files\Hexagon\M.App Enterprise\MAPPE_DEMO\WmtsCache\mobiledata\google3857 is a sqlite file called mobiledata.sqlite. Is the cache version stated somewhere within this SQL Lite Database file? If yes, what application should I use to open the file?

Highlighted
Staff
Posts: 19
Registered: ‎10-29-2018

Re: M.App Enterprise Mobile Offline Mode

Then you haven't published the WMTS and can use the first url without a cache version:

 

https://<yourserver>/api/v2/geoservices/wmts/<tenant>/<wmtsname>/google3857/{z}/{y}/{x}

Highlighted
Regular Contributor
Posts: 246
Registered: ‎10-26-2015

Re: M.App Enterprise Mobile Offline Mode

Thanks for explaining the different WMTS URLs to use. I now have the WMTS displaying in the mobile app.

Highlighted
Frequent Contributor
Posts: 87
Registered: ‎10-10-2015

Re: M.App Enterprise Mobile Offline Mode

Can you show your final xml?, i was trying with many ways, and I do not achieve display any WMS or WMTS layer 

 

Thanks for advance

Coordination in the implementation of solutions with the products of Hexagon Geospatial: Geomedia Professional, ERDAS Imagine, ERDAS Apollo, M.App Enterprise, Geocompressor, Geomedia WebMap, Geomedia Smart Client, Geospatial Portal, with Oracle and SQL Server databases.
Highlighted
Regular Contributor
Posts: 246
Registered: ‎10-26-2015

Re: M.App Enterprise Mobile Offline Mode

For Shell.xaml my entry for a WMTS running from M.App Enterprise was:

 

<UrlTileOverlay Id="AreasWMTS" TileWidth="256" TileHeight="256" MinimumZoomLevel="0" MaximumZoomLevel="20"
Url="https://<server>/api/v2/geoservices/wmts/MAPPE_DEMO/mobiledata/google3857/{z}/{y}/{x}" />

 

This was then referenced in NativeMap.xaml within the <NativeMap.Layers> section as <TileLayer TileRef="AreasWMTS" />

 

I wasn't able to get a WMS to display.

Highlighted
Frequent Contributor
Posts: 87
Registered: ‎10-10-2015

Re: M.App Enterprise Mobile Offline Mode

[ Edited ]

I am publishing my service like this 

 

Publishing_WMTS

 

Is something wrong in my settings?

 

i can not use my service in mobile apps. 

 

 

 

Coordination in the implementation of solutions with the products of Hexagon Geospatial: Geomedia Professional, ERDAS Imagine, ERDAS Apollo, M.App Enterprise, Geocompressor, Geomedia WebMap, Geomedia Smart Client, Geospatial Portal, with Oracle and SQL Server databases.