POST
|
Further testing I've been doing this morning: 1. I stopped the removal of graphics to see if there is an issue with the collection. Graphics still don't appear but are in the count. 2. If I add an active incident, it will not appear but if I click on my current incident, this snippet gets called: - MdsMapView.SetView(_incidentLocation as Esri.ArcGISRuntime.Geometry.MapPoint,10000); ..and after the map focus' to that location, the next time I click on a different active incident, the icon will appear and if I had tried to display other active incidents (prior to focusing on current incident), the others will now appear on the map. It almost seems like a refresh is not happening. Current Incident - This is the location we are dispatched to Active Incident - Other 911 calls that are going on and the user can quickly see where they are (really an on and off setup) and will be removed once they close the list.
... View more
01-18-2016
07:24 AM
|
0
|
7
|
903
|
POST
|
Further testing also makes me feel like the overlay layer needs a refreshing or something? I can see the correct amount of graphics in the count; however they aren't always visible.
... View more
01-18-2016
06:58 AM
|
0
|
9
|
903
|
POST
|
Good morning Everyone I'm in the process of writing a mapping application for an in fire truck solution. The jobs of the map is to show their current incident, gps location, route and other active incidents as they click on the list. What I currently have working is the gps location (manually placed at the moment) and current incident showing up and even a route being displayed within my GraphicsOverlay. What I can't seem to get working properly is the active incident location showing up (all the time). I have tried many ways to make 3 different icons appear within the graphics overlay however I can't seem to figure out what is going wrong. Attached is sample code depicting the creation and rendering of the graphics overlay and the addition and removal of graphics. I'm stumped as to why symbols don't appear and remove all the time. Thanks, Jim
... View more
01-18-2016
06:49 AM
|
0
|
10
|
3592
|
POST
|
New thread started for those with similar inquiries. https://community.esri.com/thread/162615
... View more
07-24-2015
01:06 PM
|
0
|
0
|
745
|
POST
|
I have been designing a tool which allows my clients to take their mxd and within our ArcGis Engine application and produce a TPK which can further be used within our newest ArcGIS Runtime map product. I have completed the code (thanks to Freddie) to execute the GeoProcessing command; however the completed size of the TPK does not match what ArcMap is producing (the mxd being used is the same for comparison reasons). Any ideas on why the file sizes differ (ArcMap 1Gb in size, ArcGis Engine 12.5mb)? GP command being executed: var gp = new Geoprocessor { OverwriteOutput = true }; gp.ProgressChanged +=GpOnProgressChanged; gp.ToolExecuted += GpOnToolExecuted; try { var tool = new CreateMapTilePackage { in_map = mapProjectTxt.Text, service_type = "ONLINE", output_file = mapProjectTxt.Text.Replace(".mxd", ".tpk"), format_type = "PNG", level_of_detail = System.Convert.ToInt32(levelofDetailsNum.Text), summary = summaryTxt.Text, tags = tagsTxt.Text, }; ...... Another thing I 'm trying to do is provide the end user with information on where this process is at so they don't think the applicaiton has hung or crashed. I've wired up events from code examples (see below) but they aren't triggering. private void GpOnProgressChanged(object sender, ProgressChangedEventArgs progressChangedEventArgs) { switch (progressChangedEventArgs.ProgressChangedType) { case (ProgressChangedType.Show): //The tool that is running reports progress or has stopped reporting progress; make the // progress bar visible if appropriate. progressBar.Visible = progressChangedEventArgs.Show; break; case (ProgressChangedType.Message): statusTxt.Text = progressChangedEventArgs.Message; break; case (ProgressChangedType.Percentage): progressBar.Value = (int) progressChangedEventArgs.ProgressPercentage; break; default: statusTxt.Text= @"unexpected ProgressChangedEventsArgs.ProgressChangedType"; break; } }
... View more
07-24-2015
12:48 PM
|
0
|
0
|
2815
|
POST
|
That all worked perfectly and now I have an end control for my clients. Two issues become outstanding from this point. If I create a TPK wihtin ArcMap that has 19 levels of details, it takes several hours (under estimated here) to complete and works out to be just under 1Gb in size. If I take the exact same project and run it through my code (as above), it takes 5 minutes (ish) and has a completion size of 12 mb. Something odd there. The second issue is trying to setup events for a GeoProcess: var gp = new Geoprocessor { OverwriteOutput = true }; //gp.MessagesCreated += GpOnMessagesCreated; gp.ProgressChanged +=GpOnProgressChanged; gp.ToolExecuted += GpOnToolExecuted; They don't appear to be firing. If you want me to start a new thread, just let me know. Thanks, Jim
... View more
07-24-2015
12:32 PM
|
0
|
2
|
745
|
POST
|
Hey Freddie I've run this code is a small test project and I'm receiving an error in the Catch statement. ERROR 001117: Map description property must be set Failed to execute (CreateMapTilePackage). When I look at the properties of CreateMapTilePackage, "Description" is not an option to assign. When I go into ArcMap and look at the wizard for create a tile package there, Description is an option. Thoughts? Jim
... View more
07-22-2015
12:14 PM
|
0
|
4
|
745
|
POST
|
I will create a small test project to test this but this is exactly what I was looking for. I don't know how I didn't see the CreateMapTilePackage withing the GeoProcessing namespace but I see it now. Thanks, Freddie
... View more
07-22-2015
09:41 AM
|
0
|
0
|
745
|
POST
|
Hello Everyone I have an ArcGIS Engine application and I'm attempting to provide a command to my end users which will allow them to create a *.tpk file from their map document (*.mxd). My goal is to have our clients use our Engine product to create a tile package which will be consumed within our new CAD ArcGIS Runtime .Net product. Not all our clients will have access to ArcMap to create these tpk files so I would like to give them the ability to create these files in lieu of. Prior to making this post I did scour the api documentation ESRI.ArcGIS.DataManagementTools but couldn't come up with anything. I appreciate any help on how to move forward. Thanks Jim
... View more
07-22-2015
08:53 AM
|
0
|
8
|
3586
|
POST
|
Morning Mike I always appreciate the speed in which I get a response on this forum!! After re-reading what you wrote a few times, I tried a few different things and what I found best is assigning the symbol when the graphic gets added. This helps deal with the font layout issue. The first thing I did attempt was setting the width and height of the picturemarkersymbol when creating the renderer. I was missing that; however this did not seem to resolve my issue. Below is minor edits to my code in case others are needing to do something similar. It would be nice to have a padding property on labels or even better a callout box like what is offered in Google Maps. As you can see from my TextExpression, I'm adding spaces before and after the values to create the desired padding within my "box". *********************CODE EXAMPLE********************* private GraphicsOverlay _inspectionResultsLayer; private PictureMarkerSymbol _pictureMarkerSymbol; private async Task CreateGraphicsLayer() { //create the symbol and store privately to use later _pictureMarkerSymbol = new PictureMarkerSymbol { Width = 50, Height = 50 }; var pictureUri = new Uri("http://static.arcgis.com/images/Symbols/Shapes/RedPin1LargeB.png"); await _pictureMarkerSymbol.SetSourceAsync(pictureUri); _inspectionResultsLayer = new GraphicsOverlay { ID = GraphicLayerName, Labeling = { IsEnabled = true }, }; // create a new TextSymbol for displaying graphic labels var labelSym = new TextSymbol { Font = new SymbolFont ("Segoe UI", 12.0, SymbolFontStyle.Normal, SymbolTextDecoration.None, SymbolFontWeight.Normal), Color = Colors.DarkBlue, //create a colour with some transparency BackgroundColor = Color.FromArgb(150,245,245,245 ), BorderLineSize = 1, AngleAlignment = MarkerAngleAlignment.Map, }; // create a new LabelClass var attributeLabelClass = new AttributeLabelClass { Symbol = labelSym, TextExpression = "\" \" CONCAT [Title] CONCAT \" \" CONCAT NEWLINE CONCAT \" \" CONCAT [Address] CONCAT \" \"", LabelPlacement = LabelPlacement.PointCenterRight, }; _inspectionResultsLayer.Labeling.LabelClasses.Add(attributeLabelClass); MainMapMapView.GraphicsOverlays.Add(_inspectionResultsLayer); } private void AddMarkerSymbol(Marker marker) { var geometry = ProjectedGeometry(marker.Coordinates.X, marker.Coordinates.Y); var myGraphic = new Graphic(geometry, _pictureMarkerSymbol); // Add attributes to the Graphic from various information in the geocode match. myGraphic.Attributes["Title"] = marker.Title; myGraphic.Attributes["Address"] = marker.Address; // add text and marker graphics _inspectionResultsLayer.Graphics.Add(myGraphic); SetMapView(geometry as Esri.ArcGISRuntime.Geometry.MapPoint); } *********************DESIRED LOOK*********************
... View more
06-12-2015
08:49 AM
|
0
|
1
|
435
|
POST
|
I'm trying to display graphics within a GraphicsOverlay and I can't seem to get my label to appear off of the symbol. I have read that the xoffset doesn't work within an attribute label class; however, how is one to display a multi-line label next to a "pin" symbol. Below is a picture example of how it currently looks and I have added a section of code showing the construction of the layer and label. **************Code Example************** var pictureUri = new Uri("http://static.arcgis.com/images/Symbols/Shapes/RedPin1LargeB.png"); await matchSym.SetSourceAsync(pictureUri); //create a simple top level renderer var simpleRenderer = new SimpleRenderer { Symbol = matchSym }; _inspectionResultsLayer = new GraphicsOverlay { ID = GraphicLayerName, Labeling = { IsEnabled = true }, Renderer = simpleRenderer }; // create a new TextSymbol for displaying graphic labels var labelSym = new TextSymbol { Font = new SymbolFont ("Arial", 12.0, SymbolFontStyle.Normal, SymbolTextDecoration.None, SymbolFontWeight.Bold), Color = Colors.Black, BorderLineColor = Colors.LightGray, BorderLineSize = 1, AngleAlignment = MarkerAngleAlignment.Map, HorizontalTextAlignment = HorizontalTextAlignment.Left, }; // create a new LabelClass var attributeLabelClass = new AttributeLabelClass { Symbol = labelSym, TextExpression = "[Title] CONCAT NEWLINE CONCAT [Address]", LabelPlacement = LabelPlacement.PointAboveRight, }; _inspectionResultsLayer.Labeling.LabelClasses.Add(attributeLabelClass); MainMapMapView.GraphicsOverlays.Add(_inspectionResultsLayer);
... View more
06-11-2015
11:36 AM
|
0
|
3
|
4063
|
POST
|
Hi Everyone I'm in the process of transitioning from ArcEngine to Runtime .Net and I have reviewed the sample code for online and offline GeoCoding; however, the one thing I'm uncertain on is how to create the "*.loc" file? In the code example, a locallocator task is created ( _locatorTask = await Task.Run<LocalLocatorTask>(() => new LocalLocatorTask(LOCATOR_PATH));) by a path to the loc file and the examples always have the SanFran...loc file present. I need to create a program that will allow our clients to use their street layer to create this file and in the past the loc file was created inside a FeatureDataset within a FileGeoData base. I have seen comments on taking an online geocoder and syncing to offline mode, yet there are no examples on how to take a street layer (possibly ShapeFile) and generate a local loc file. If someone can provide assistance on creating a loc file (through code) I would appreciate it. Jim
... View more
05-22-2015
08:53 AM
|
0
|
1
|
3548
|
POST
|
When I run that code example I get this error: It fails on the StartAsync call. Thoughts?
... View more
04-17-2015
09:12 AM
|
0
|
2
|
900
|
POST
|
I'm digging through examples on how to load a local mpk into my .net map and I don't see how to do this. There are old references to ArcGISLocalDynamicMapServiceLayer but that isn't available now. The mpk was constructed in ArcMap 10.2 and the layers exist within a GeoDatabase. I am using 10.2.5 build of .Net as well. If someone can point me in the right direction I would appreciate it. Thanks, Jim
... View more
04-16-2015
01:20 PM
|
0
|
4
|
6397
|
POST
|
Will we have the ability to create libraries that are for any cpu rather than needing to create 3 different dlls for each platform (x86, 64 and ARM)? When deploying to Windows store it seems silly that we need 3 different products for a user to choose from. If we have to create 3 different libraries, what are your thoughts on dealing with deployment to Windows store?
... View more
02-20-2015
06:53 AM
|
0
|
1
|
3619
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|