POST
|
Hi, In an earlier version of the .NET SDK we were able to remove the "for development use only" watermark with the following: Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ClientId = "mYcLieNTid"; try { Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize(); } catch (Exception ex) { Console.WriteLine("Unable to initialize the ArcGIS Runtime with the client ID provided: " + ex.Message); } With version 100.0.0 of the SDK it seems that the ClientId attribute is no longer a member of the ArcGISRuntimeEnvironment class. Has it moved? Is there a different way to add the client ID? Looking through the documentation I only see a way to initialize with a license or a named user. Thanks, Schuyler
... View more
12-01-2016
01:00 PM
|
0
|
1
|
765
|
POST
|
More on this: So it seems that adding the entry NSLocationWhenInUseUsageDescription to the Info.plist file pops the "Allow app to access your location while you use the app?" alert. After allowing the access the device location is now working...
... View more
12-01-2016
06:13 AM
|
0
|
0
|
346
|
POST
|
Awesome Rich. Thank you for the additional information and explanation. Schuyler
... View more
12-01-2016
05:59 AM
|
0
|
0
|
1669
|
POST
|
I wonder if this is related the same issue I was having. Try changing the iOS Build options linker behavior to "Don't Link" as answered in my post: Default constructor not found for type Esri.ArcGISRuntime.Xamarin.Forms.MapView
... View more
11-30-2016
05:36 AM
|
0
|
0
|
1029
|
POST
|
Hello, I am running a Xamarin Forms project built on Xamarin Studio Mac OS X. When deployed to an iPad Air I am not able to see the device location. From the samples it seems that this one line of code plots my current device location on my map: MyMapView.LocationDisplay.IsEnabled = true; But is there some other configuration I need to make this work? My screenshot below shows that IsEnabled = true, but it still doesn't plot my location on the map. For what it's worth, it seems the Location and MapLocation objects of the LocationDisplay don't have any values. The Started attribute is also false. Thanks for your help, Schuyler
... View more
11-30-2016
05:29 AM
|
0
|
1
|
787
|
POST
|
Looks like that did the trick for iPhone/iPad. Thank you much! Schuyler
... View more
11-29-2016
06:30 AM
|
0
|
0
|
1669
|
POST
|
Hi, Using Xamarin Studio on Mac OS X, I created a brand new Xamarin forms project and added the Esri.ArcGISRuntime.Xamarin.Forms and Esri.ArcGISRuntime.Xamarin.iOS packages (both v100.0.0) via NuGet. Created a simple Xaml page just like the sample: <?xml version="1.0" encoding="utf-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms" xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" xmlns:local="clr-namespace:EsriTest" x:Class="EsriTest.EsriTestPage"> <Grid> <esriUI:MapView x:Name="MyMapView"/> </Grid> </ContentPage> With the code behind: public partial class EsriTestPage : ContentPage { public EsriTestPage () { InitializeComponent (); Initialize (); } private void Initialize () { // Create new Map with basemap Map myMap = new Map(Basemap.CreateImagery()); // Assign the map to the MapView MyMapView.Map = myMap; } } It compiles and deploys fine to an iPad Air device (iOS 10.1.1), but when I hit this page I get a System.MissingMethodException - Default constructor not found for type Esri.ArcGISRuntime.Xamarin.Forms.MapView: [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private void InitializeComponent() { this.LoadFromXaml(typeof(EsriTestPage)); // throws exception here MyMapView = this.FindByName <global::Esri.ArcGISRuntime.Xamarin.Forms.MapView>("MyMapView"); } Any help is appreciated... thanks.
... View more
11-28-2016
11:50 AM
|
0
|
4
|
3008
|
POST
|
Hello, I am developing a Windows Store App using the ArcGIS Runtime SDK for .Net. To initialize the environment, I am using the sample code provided: Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ClientId = "mYcLieNTid"; try { Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize(); } catch (Exception ex) { } If an incorrect client ID is used, I will hit the catch clause with an "invalid client ID" message as expected. The problem is that when I set the client ID again, it causes an exception with the message "you can't set the client ID after initializing" or a win32 runtime error on the Initialize() method. I have tried setting the client ID to null before setting again, but that gave me the same results. Any ideas? The only way I seem to be able to try to initialize the environment again is by shutting the app down completely. Thanks
... View more
12-05-2014
08:25 AM
|
0
|
0
|
2105
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|