POST
|
Thanks, this solves my problem. I had tried that solution but adding the MapView of the wrong namespace.
... View more
05-31-2017
08:10 PM
|
0
|
1
|
1315
|
POST
|
I'm developing a map app to Android and UWP Platforms using Xamarin.Forms and ESRI ArcGIS Runtime SDK 100.0 Xamarin.Forms. As part of the workflow the app make a calling to Survey123 through an uri string like this: arcgis-survey123://?itemID=1f1e0aa447c04398893f6f1a0df9de50¢er=6.246874,-75.604511&field:Pedido=79414&field:Proyecto=&field:ID_Tarea=79414&field:Direccion_Pagina=Calle%2040%2081A-176&field:Barrio_Vereda=Laureles&field:Municipio=MEDELLIN&field:Revisor=Marcelo%20Torres On Android and Windows 10 Desktop all went OK, but on Windows 10 Mobile Survey does not begin and the device shows a message like this: Althoug Survey123 is installed on the device. How I have to call Survey123 on Windows 10 Mobile?
... View more
05-30-2017
10:35 PM
|
0
|
0
|
568
|
POST
|
I'm developing an Xamarin.Forms mapping app to Android and UWP Platforms using ESRI ArcGISRuntime SDK .NET 100.0 . As part of the workflow the app loads a basemap and a lot of different operational layers based on ArcGIS Tiled and Dynamic Map Services. At almost all development time I wrote and tested code in Debug mode of Visual Studio 2017 and everything went right. But as part of testing time I made a Release apk and appx files to tester teams. The testers of Android version reported that installations went OK, but Windows 10 and Windows 10 Mobile testers reported that basemaps and operational layers did not load. Then I tested inside Visual Studio launching the UWP project in Release mode and I realized that it was true. On the other hand, to upload the application packages to the stores (Play Store and Windows Store) the app must me compiled in Release mode. Checking the two configurations at project property window I noted there was a pair of differences among Debug and Release mode the "General / Compile with .NET Native tool chain" checkbox was not checked in the first case and checked in the second case: I wrote a lite version of the app to proof the point, and the behavior is the same: this is the code of the ViewModel class of the MapPage.xaml that does this part of the workflow: using Esri.ArcGISRuntime.Mapping;
using Prism.Mvvm;
using Prism.Services;
using System;
using Xamarin.Forms;
/// <summary>
///
/// </summary>
namespace MapTest.ViewModels
{
/// <summary>
///
/// </summary>
public class MapPageViewModel : BindableBase
{
private Map _map;
/// <summary>
///
/// </summary>
public Map Map
{
get { return _map; }
set { SetProperty(ref _map, value); }
}
private IPageDialogService dialogService;
/// <summary>
///
/// </summary>
/// <returns></returns>
public IPageDialogService GetDialogService()
{
return dialogService;
}
/// <summary>
///
/// </summary>
/// <param name="value"></param>
public void SetDialogService(IPageDialogService value)
{
dialogService = value;
}
/// <summary>
///
/// </summary>
public MapPageViewModel(IPageDialogService dialogService)
{
Map = new Map();
SetDialogService(dialogService);
AddLayers();
}
/// <summary>
///
/// </summary>
private void AddLayers()
{
try
{
Map.Basemap = Basemap.CreateTopographic();
AddLayer("http://sampleserver5.arcgisonline.com/arcgis/rest/services/Elevation/WorldElevations/MapServer", "dynamic");
ShowAlert("MapTest", "Finish");
}
catch (Exception ex)
{
ShowAlert("Exception", ex.Message);
}
}
/// <summary>
///
/// </summary>
/// <param name="url"></param>
/// <param name="tipo"></param>
private void AddLayer(string url, string tipo)
{
Layer layer = null;
if (tipo == "tiled")
{
layer = new ArcGISTiledLayer(new Uri(url));
}
else if (tipo == "dynamic")
{
layer = new ArcGISMapImageLayer(new Uri(url));
}
try
{
this.Map.OperationalLayers.Add(layer);
ShowAlert("MapTest", "layer Added.");
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// /
/// </summary>
/// <param name="title"></param>
/// <param name="message"></param>
private void ShowAlert(string title, string message)
{
System.Diagnostics.Debug.WriteLine(message);
Device.BeginInvokeOnMainThread(async () =>
{
await this.GetDialogService().DisplayAlertAsync(
title,
message,
"Close");
});
}
}
} The complete solution is published at github in this address: https://github.com/marceloctorres/MapTest. Someone can help me to find the solution or at least a workaround? I would appreciate it. Marcelo.
... View more
05-30-2017
08:10 PM
|
1
|
3
|
2231
|
POST
|
And yes I checked that the right permission was enabled on UWP and Android manifest files...
... View more
03-22-2017
01:54 PM
|
0
|
0
|
782
|
POST
|
Hello I did the test you wrote...always throws exception, tested with UWP (Local Machine) and Android (VS Android Simulator)... I made a workaround using SystemLocationDataSource on Esri.ArcGISRuntime.Location namespace... Thanks
... View more
03-22-2017
01:52 PM
|
0
|
0
|
782
|
POST
|
I'm developing a Xamarin.Forms application, and I need to get the Device Locations. I peek LocationDisplay of my MapView but always returns null. How I do to initialize the app to get GPS Loction from device?
... View more
03-21-2017
10:42 AM
|
0
|
4
|
1349
|
Title | Kudos | Posted |
---|---|---|
1 | 05-30-2017 08:10 PM |
Online Status |
Offline
|
Date Last Visited |
05-29-2022
04:47 PM
|