POST
|
When map fails to load, you will get a blank MapView. For example this points to a secured webmap and invalid login or login that has no access to portal item is used. AuthenticationManager.Current.ChallengeHandler = new ChallengeHandler(async(info) =>
{
return await AuthenticationManager.Current.GenerateCredentialAsync(info.ServiceUri, "<username>", "<password>");
});
MyMapView.Map = new Map(new Uri("http://www.arcgis.com/home/item.html?id=ebda00bd24264cfabe2a269cae28e309")); Could the token-secured credentials have expired?I suspected clearing cookies since new session works for you again. You can subscribe to Map.Loaded/LoadStatusChanged or MapView.LayerViewStateChanged to see whether map or any of its layers failed to load; perhaps, you'll get more information if it's credential issue.
... View more
12-26-2018
02:03 PM
|
1
|
1
|
922
|
POST
|
On sign-out, you may need to also clear authorization cookies. in WPF new ArcGISHttpClientHandler().CookieContainer.GetCookies(requestInfo.ServiceUri)?.Cast<Cookie>()?.ToList().ForEach(c => c.Expired = true); in UWP new Windows.Web.Http.Filters.HttpBaseProtocolFilter().ClearAuthenticationCache(); We have an issue logged for this and another to support invalidating OAuth login.
... View more
12-26-2018
01:05 PM
|
0
|
4
|
922
|
POST
|
You can look at this SDK sample which creates GeoprocessingFeatures.
... View more
12-26-2018
12:49 PM
|
0
|
3
|
783
|
POST
|
What is the Error when you start LocalGeoprocessingService? I am not sure if this blog post will apply to you. You can also use Local Server Utility to troubleshoot.
... View more
12-26-2018
11:56 AM
|
0
|
0
|
651
|
POST
|
Thank you for reporting this. I have logged an issue for SketchEditor to not respond to flick. Meanwhile, you can complete the draw by calling SketchEditor.Stop. Will this work for you? MyMapView.ManipulationDelta += (s, e) =>
{
if (e.IsInertial && MyMapView.SketchEditor.IsEnabled && MyMapView.SketchEditor.CreationMode == SketchCreationMode.FreehandLine || MyMapView.SketchEditor.CreationMode == SketchCreationMode.FreehandPolygon)
MyMapView.SketchEditor.Stop();
};
... View more
12-06-2018
03:51 PM
|
0
|
1
|
3274
|
POST
|
Thank you for reporting this. We are able to reproduce the bug and have logged an issue that when magnifier is moved before touch is released, the vertex added is top-left corner. We'll have to prioritize a fix for the next release. Are you able to wait for the proper fix? At the moment, I cannot offer you a straightforward workaround. You may call SketchEditor.MoveSelectedVertex to update its location but there's work yet to be done to get the proper location. Thanks.
... View more
12-05-2018
05:35 PM
|
0
|
0
|
3483
|
POST
|
Does this error occur in GeometryEngine.Intersects call? If yes, can you share the arc geometry input? You can send its JSON. Although, I'm not sure if deserializing geometry back will fix the issue. Maybe inspect the part and points properties of this.
... View more
11-30-2018
01:23 PM
|
0
|
0
|
584
|
POST
|
Yes, properties of DateTimeOffset type are converted by runtime API to UTC before it's stored or sync'd to server. For example, if you have the following code... this local time will be converted to UTC. f.Attributes["submitted"] = DateTimeOffset.Now;
await t.UpdateFeatureAsync(f); If editor-tracking was enabled, the `created_date` and `last_edited_date`, auto-generated fields, are also stored in UTC. So if your app wants to display these date time attributes in local time, you'd have to call ToLocalTime(). Other date fields related to sync - like when you create geodatabase, the `replicaName` includes creation time is also in UTC or when you sync geodatabase, the `submissionTime`, `lastUpdateTime` are also in UTC. My query sample above with where clause on a date field may be the only other time app is responsible for converting local input to UTC because now we're dealing with text and not a date time object. If you should use QueryParameters.TimeExtent, since Start/End times are of DateTimeOffset type, they are expected to be converted by runtime API to UTC before it's sent for query to server. If you have a specific case in mind that is not addressed here, I can check it out. Thanks.
... View more
11-20-2018
02:26 PM
|
2
|
0
|
798
|
POST
|
The dates are read and stored in UTC. If you want dates displayed in local time, you can use `DateTimeOffset.ToLocalTime()` to convert the date attribute (in UTC) ((DateTimeOffset)f.Attributes["created_date"]).ToLocalTime() And if you are querying for features and have local time as input, convert this first to UTC before setting query parameters. var ld = DateTimeOffset.Parse("11/20/2018 12:47:03 PM -08:00");
p.WhereClause =$"created_date = '{ld.ToUniversalTime()}'"; Was there a specific sync scenario where you don't find this to be working as expected?
... View more
11-20-2018
01:12 PM
|
0
|
2
|
798
|
POST
|
Good news! This bug has been fixed by Microsoft. Please update your nuget package for `Microsoft.NETCore.UniversalWindowsPlatform` to 6.1.9.
... View more
10-12-2018
11:29 AM
|
0
|
0
|
517
|
POST
|
Thanks, Richard for reporting this. I have logged an issue on our end. If you are looking to refresh existing features, you might want to use LoadOrRefresh. I can see how you will need this to get the new features, too. Would QueryFeatures be a substitute? I'll post if I find a better workaround but we'll try to get this fixed in future releases of the API. Thank you.
... View more
09-17-2018
05:37 PM
|
1
|
1
|
576
|
POST
|
Can you check if updating to v100.3 will still cause a crash? If it's still reproducible with latest, do you mind sharing repro code/data? Thank you.
... View more
09-14-2018
01:30 PM
|
0
|
1
|
602
|
POST
|
I am not able to reproduce with this but I recall there's an issue if guid were in lowercase. This seem to be related Can you try this? var table = new ServiceFeatureTable(new Uri("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Notes/FeatureServer/0"));
var result = await table.QueryFeaturesAsync(new QueryParameters() { WhereClause = "globalid = '{5D6BCAA4-D57A-4C97-820F-6E3B5E040CE9}'" }, QueryFeatureFields.LoadAll);c
... View more
09-14-2018
12:57 PM
|
0
|
0
|
852
|
POST
|
I see, thanks for clarification. ResetSublayers will use service-defined visibility so it's not an option for this webmap then. What metadata do you need from the sublayers? Would it work for you to load its metadata onto dummy table no data/features? What we need to avoid until this bug is fixed is loading of sublayer because it adds more to the dynamicLayer request than necessary. MyMapView.LayerViewStateChanged += async (s, e) =>
{
if (e.Layer is ArcGISMapImageLayer && e.LayerViewState.Status == LayerViewStatus.Active)
{
var sublayer = ((ArcGISMapImageLayer)e.Layer).SublayerContents.FirstOrDefault(l => l.Name == "Pavement Markings") as ArcGISMapImageSublayer;
foreach (ArcGISMapImageSublayer sub in sublayer.Sublayers)
{
var table = new ServiceFeatureTable(new Uri($"{((ArcGISMapImageLayer)e.Layer).Source.OriginalString}/{sub.Id}"));
await table.LoadAsync();
var metadata = table.LayerInfo; // can you use this instead?
}
}
};
MyMapView.Map = new Map(new Uri("http://pdx.maps.arcgis.com/home/webmap/viewer.html?webmap=f118c376c6ea49d7839dacc50a7d138f"));
... View more
09-14-2018
10:46 AM
|
0
|
1
|
1209
|
POST
|
Thank you for sharing your repro sample. I have logged an issue. I think it's a valid bug that loading sub layers changed the symbology. To workaround this issue, after you've loaded the sub layer to retrieve metadata, you can reset sub layers such that it does not pass along dynamicLayer parameter in the image request. This should have only happened if you re-arranged sublayers or given a different source. ((ArcGISMapImageLayer)e.Layer).ResetSublayers();
... View more
09-13-2018
05:10 PM
|
0
|
3
|
1209
|
Title | Kudos | Posted |
---|---|---|
1 | 3 weeks ago | |
1 | 11-13-2023 09:05 AM | |
1 | 04-26-2011 06:50 PM | |
1 | 05-26-2023 09:30 AM | |
4 | 05-26-2023 09:42 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|