|
POST
|
Assuming this is a copy of your actual code just with removed password and server. You spelled default wrong, which would cause it to not open automatically. The hWnd represents the window handle of a parent window. This only comes into play if you were writing a custom standalone application. Then you could use the handle of the form that was the parent of the dialog. But if you don't want it to open than 0 is the proper value. Also even in a standalone 0 works just fine.
... View more
03-10-2019
10:30 AM
|
0
|
1
|
2382
|
|
POST
|
MapView:GraphicsOverlays is a GraphicsOverlayCollection which has a CopyTo method. This would be similiar to a Clone. You create a new array and then copy into that array and then you can assign the new GraphicsOverlayCollection to the overview MapView LayerCollection operationalLayers = new LayerCollection();
Layer[] tempLayers = new Layer[map.OperationalLayers.Count];
map.OperationalLayers.CopyTo(tempLayers, 0);
foreach (var operationalLayer in tempLayers)
{
map.OperationalLayers.Remove(operationalLayer);
operationalLayers.Add(operationalLayer);
} The above is done to replace the OperationalLayers in a map, but the general idea is the same, just using GraphicOverlays. Instead of the .Remove, .Add like above use the temp array and add them to you other MapView
... View more
03-08-2019
10:07 AM
|
1
|
1
|
2784
|
|
POST
|
Like Morten Nielsen says, just wire up the events to an EventAggregator in the code behind of the view that contains MapView. This does assume you are using a framework that provides event aggregation. I use Prism, but MVVM Light would work as well private void WireUpMapViewEventHandlers(IEventAggregator eventAggregator)
{
MapView.GeoViewTapped += (s, e) => { eventAggregator.GetEvent<GeoViewTappedEvent>().Publish(e); };
MapView.GeoViewDoubleTapped += (s, e) => { eventAggregator.GetEvent<GeoViewDoubleTappedEvent>().Publish(e); };
MapView.GeoViewHolding += (s, e) => { eventAggregator.GetEvent<GeoViewHoldingEvent>().Publish(e); };
MapView.ViewpointChanged += (s, e) => { eventAggregator.GetEvent<ViewpointChangedEvent>().Publish(MapView.VisibleArea.Extent); };
MapView.NavigationCompleted += (s, e) => { eventAggregator.GetEvent<NavigationCompletedEvent>().Publish(MapView.VisibleArea.Extent); };
} Now just need to add an event handler anywhere in the application you want to respond to the event. The problem (to me) with using an EventToCommand type approach is that this only allows response to these events in the MapViewModel. This is fine in a simple application but if you want the application to grow beyond the single ViewModel it really won't support it (imo). As pointed out by Morten, the code in the code behind is only associated to the MapView. So, I would not consider it breaking any MVVM principle. No other part of the application knows anything about the MapView other than that it fires these events
... View more
03-04-2019
10:53 AM
|
1
|
1
|
7315
|
|
POST
|
As it seems someone actually read my early diatribe I have been able to come to a solution that does not require the MapViewController and is able to do everything with eventing and the above described Action. This has made Identify and the MapView completely decoupled. Display of Callouts is done within our 'MapModule' and just requires a MapPoint and a UIElement be passed as Event arguments Setting Viewpoints/Zooming and Export of a MapView image are also done with eventing so these are now decoupled and do not require the MapView in any other part of the application. I still have a hangup with MapViewInteractionOption because I need a way to know the existing setting and the LocationDisplay. For these I created an IMapViewSettings which is initialized in my MapView and injected into modules were required. The LocationDisplay issue is that the API no longer allows you to set this in Xaml, in 10.x you could. If that was possible I am pretty sure I could do what I need with data binding. We have a custom LocationDataSource and so this needs to be set. I am still looking at a way to do this with eventing, but the InteractionOptions issue seems unsolvable to me without the MapViewSettings class at this point.
... View more
03-04-2019
10:26 AM
|
0
|
0
|
3877
|
|
POST
|
Hi, I asked this in the ArcGIS Enterprise group Search by Date Created or Modified because I think it is really a syntax issue with search, but I am trying to do from a Runtime application so checking here. I want to run a search for PortalItems in a group using the Date Modified of the item. But I cannot seem to get this correct because it never returns results. The code in Runtime is pretty straightforward: //Portal uses time in Unix time > milliseconds
DateTimeOffset offset = new DateTimeOffset(new DateTime(2018, 1, 1));
long unixTime = offset.ToUnixTimeMilliseconds();
long unix2Time = new DateTimeOffset(DateTime.Now).ToUnixTimeMilliseconds();
//Query by group and pass in query string
parameters =
PortalQueryParameters.CreateForItemsOfTypeInGroup(PortalItemType.CodeSample,
group.GroupId, $"modified:[{unixTime} TO {unix2Time}]");
parameters.Limit = 50;
PortalQueryResultSet<PortalItem> itemResultSet = await portal.FindItemsAsync(parameters); In the sample I am using a date range from before I setup portal to today, I know the items are in that range. I have also tried to use created instead of modified just to see if it is an issue with modified, and used 0 as a start date. Based on the the API search reference this is the format to use Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers. Using this example the Find return no results. If I remove the date query piece I get all the CodeSample items in the group as expected just not filtered by date. Looking at the PortalQueryParameters you can see the query is: type:"Code Sample" AND group:"006591a762ce4705827561768866d03c" AND (modified:"[1259692864000 TO 1551311005864]") If I go into Portal and run the search directly no results, run without date component and it works fine. I have tried just running queries in Portal using the date component without anything else and I can never get any results to return. So it would seem to me the documented syntax for running these queries is incorrect. Has anyone done anything to query for portal items based on date modified/created and would know the proper syntax for doing this? Thanks -Joe
... View more
02-28-2019
07:20 AM
|
0
|
0
|
999
|
|
POST
|
Not sure best place to post, hoping someone might have some insight. I am trying to do a search on Enterprise content. I am doing from Runtime but I believe the syntax is the same everywhere. Based on the Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers I should be able to do a range search on the date fields (I would love to just do a greater than search, but I can live with a range). The sample shows: created: [1259692864000 TO 1260384065000] I have tried this and also tried with modified modified:[1546326000000 TO 1551311005864] Neither of these work. I have setup the query to basically be from 1970 (=0) to today and nothing is returned. I have also tried the query using {} instead of []. Again nothing works. Does anyone know how you query based on created or modified field? Thanks -Joe
... View more
02-27-2019
04:22 PM
|
0
|
0
|
757
|
|
POST
|
I am guessing I ended up using a non-python approach, but I can barely remember what I did Monday let alone in 2012
... View more
02-27-2019
04:09 PM
|
0
|
1
|
1681
|
|
POST
|
Compile the project with target set to x86 and then again with it as x64. It should create the folders that way. Then you can change back to Any CPU. That has been my expereince
... View more
02-12-2019
11:19 AM
|
0
|
1
|
4036
|
|
POST
|
As I said in my previous post, to me it looks like something weird happened when the replicas were generated and they are not bidirectional replicas. I would try and sync just the one pointing to the child version. However, it is possible that even that one is 'broken.' There are issues with versioned sync and once a replica fails it will never work again. I warn you again....This approach of using a non-federated server with versioned synchronization will fail down the line. The sync versions start to collide and syncs start to fail, and once a replica has failed it needs to be replaced because it will never sync again. Even esri will tell you this approach is bound to fail, because there are just too many versions all trying to post to default at the same time. Please heed my warnings before it is too late
... View more
01-18-2019
05:21 AM
|
0
|
0
|
2628
|
|
POST
|
Is it possible that in the Test environment when the replicas were generated it was defined as download only and not bidirectional? When a download only replica is created it will not create a version, but is associated to default (or whatever version the source service is generated from). This is certainly what you would see in this case, and also trying to do a bidirectional sync would fail. A word of warning: Versioned synchronization does not scale so if you plan to deploy to a large user base I would consider finding a workflow that allows you to use an archive enabled database instead of versioned.
... View more
01-17-2019
08:44 AM
|
0
|
2
|
2628
|
|
POST
|
Trying to see if this workflow would be possible. We have a situation where field users may end up needing to collect data that is outside the downloaded area. We realize that there is no background, but they still want to collect the gps locations. Or in some cases they may not realize the full extent of the job in advance. When we do this it seems to sometimes crash the application when we collect the point outside the area and it definitely seems that these points will not sync. Is there anyway to use the offline map task features but allow to collect data outside the area? Antti Kajanus
... View more
01-16-2019
04:09 PM
|
0
|
3
|
1731
|
|
POST
|
This is an ArcObjects question not ArcGIS Runtime, you may want to post in that forum: https://community.esri.com/groups/arcobjectsnet
... View more
01-16-2019
03:55 PM
|
0
|
0
|
755
|
|
DOC
|
Junctions that could have different inlet and outlet do not seem to be supported to work with the ASTM standard. Reducer has UPDM_ReducerFittingSize assigned, but there is no real way to get to this value from the D1/D2 or C1/C2 values that the ASTM standard returns. Tee there is no domain assigned to the diameter field, and I do not see any field such as designtype that even indicates what the diameter(s) of the Tee are. How does the data model support Junctions that will/could have different inlet/outlet diameters and relate it back to the ASTM standard. Personally I think we should have fields with attached domains based on the C1, C2 values as this would align with how the ComponentTypes are configured. Thanks -Joe
... View more
12-12-2018
08:32 AM
|
0
|
0
|
36206
|
|
POST
|
Thought this would be answered by now. If the valid json array element is not considered a valid Layer object how does one create in the API? I don't see any 'Layer' object to instantiate in the help Really frustrating that the API is 'upgraded' which results in breaking working code Thanks -Joe
... View more
12-12-2018
07:28 AM
|
0
|
0
|
3184
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-11-2026 09:07 AM | |
| 1 | 10-23-2025 12:16 PM | |
| 1 | 10-19-2022 01:08 PM | |
| 1 | 09-03-2025 09:25 AM | |
| 1 | 04-16-2025 12:37 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-23-2026
12:26 PM
|