POST
|
I changed the AddShapeFileAndRasterData WPF example to use a ArcGISDynamicMapServiceLayer instead of the Local variant, and hey presto - labels! Well, that's my problem solved - thanks very much! It was a very small change as that example creates the local map service programmatically anyway, I just needed to hook up the URL as you said. Doesn't make a lot of sense that this doesn't work with the local variant, but I now have a way forward. Thanks again.
... View more
08-14-2014
03:04 AM
|
0
|
1
|
210
|
POST
|
Thanks - any time you can spare is appreciated. I expect I'm just missing something, but it's so easy to turn on the labels for ArcGISDynamicMapServiceLayer and seemingly impossible for ArcGISLocalDynamicMapServiceLayer - even when using very similar LayerDrawingOptions, that it just feels like a bug! Thanks again.
... View more
08-14-2014
02:27 AM
|
0
|
3
|
210
|
POST
|
Ok, I'm officially giving up, I can't seem to get this to work - I have code from the Silverlight example creating an ArcGISDynamicMapServiceLayer and it all works fine. I have code creating a ArcGISLocalDynamicMapServiceLayer and it doesn't work. The LabelClass used by both is the same (apart from the LabelExpression). All the rest of the code (ie: creating the ArcGISLocalDynamicMapServiceLayer) is taken from the ESRI examples. I've spoken to Esri UK support (on an unrelated issue) and they have suggested I submit a support request using my EDN subscriber support credits, which I will now do. I'll update this post if I get any positive results. In the meantime, thanks for your assistance up to this point. Lee. Edit: apparently EDN doesn't come with any support as standard. I cannot see my company paying out an extra $2000 just so I can get one of the SDK examples to work properly. I guess I will need to look at alternatives.
... View more
08-13-2014
07:34 AM
|
0
|
5
|
680
|
POST
|
No Worries - I'm grateful for any assistance I can get. I'll certainly try Fiddler. As an aside, if I take the Silverlight example and transfer it directly into a WPF project, the labels do NOT draw. Hmmm. LabelClass doesn't have a Label field. It has LabelExpression if that's what you meant?
... View more
08-06-2014
03:52 AM
|
0
|
7
|
680
|
POST
|
In that case I think I'm clearly doing something daft! I am using the AddShapeFileAndRasterData example project, and I have set the ShowLabels property of the LayerDrawingOptions class, to no avail. I have also looked at the silverlight example and tried Creating LabelClass (and LabelOption) instances in the code and assigning to the LayerDrawingOptions, but nothing seems to make any difference.p Essentially I've modified the LocalDynamicMapServiceLayer Initialized event handler like this:
LabelClassCollection labelCollection = new LabelClassCollection();
System.Windows.Media.FontFamily fontFam = new System.Windows.Media.FontFamily("Arial");
LabelClass labelClass = new LabelClass()
{
LabelPlacement = LabelPlacement.PointLabelPlacementAboveRight,
LabelOptions = new LabelOptions() { Color = Colors.Blue, FontSize = 20, FontWeight = FontWeights.Bold, FontStyle = TextStyle.Normal, FontFamily = fontFam },
};
labelCollection.Add(labelClass);
// Create a new LayerDrawingOptions object to hold the renderer information.
var layerDrawOpt = new LayerDrawingOptions()
{
// Match up the LayerID to the ID of the layer within the service.
LayerID = counter,
// Provide a renderer. In this example it is an empty SimpleMarkerSymbol.
Renderer = new SimpleRenderer() { Symbol = new SimpleMarkerSymbol() { } },
ShowLabels = true,
ScaleSymbols = true,
LabelClasses = labelCollection,
};
Everything else is as per the AddShapeFileAndRasterData example. Based on your help so far and the silverlight example, I cannot see why this wouldn't work. I'm going to pull the silverlight example into a debugger and mess around to see if I can get any clues, but any insight you have would be, as always, very welcome.
... View more
08-06-2014
03:19 AM
|
0
|
9
|
680
|
POST
|
Thanks Mike - I'll look at that. So there is no easy 'set a property to true' way to label a shapefile (in the same way that in ArcMap there is a 'Label ShapeFile' option on the layer) in ArcGIS for WPF SDK?
... View more
08-04-2014
02:16 AM
|
0
|
11
|
680
|
POST
|
I'm loading various shapefiles using ArcGIS for WPF and displaying them on a map (the mechanism for doing this is taken from the ArcGIS WPF runtime examples - see http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9). I have a shapefile that contains Point information, and contained in it's attributes are the text labels that apply to those points. I cannot see how to access that information. I know the DBF file is being used as if I delete that file the shapefile will not render as it has no symbol information. Despite this, I cannot see when debugging the provided example how to access this information. Obviously I could simply open the .dbf file manually but that seems awfully clunky. Does anyone have any help or pointers for me? Many thanks in advance. Lee.
... View more
07-24-2014
05:52 AM
|
0
|
13
|
4303
|
POST
|
I'm loading various shapefiles using ArcGIS for WPF and displaying them on a map (the mechanism for doing this is taken from the ArcGIS WPF runtime examples - see http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9). I have a shapefile that contains Point information, and contained in it's attributes are the text labels that apply to those points. I cannot see how to access that information. I know the DBF file is being used as if I delete that file the shapefile will not render as it has no symbol information. Despite this, I cannot see when debugging the provided example how to access this information. Obviously I could simply open the .dbf file manually but that seems awfully clunky. Does anyone have any help or pointers for me? Many thanks in advance. Lee.
... View more
07-24-2014
03:09 AM
|
0
|
0
|
2179
|
POST
|
I'm loading various shapefiles using ArcGIS for WPF and displaying them on a map (the mechanism for doing this is taken from the ArcGIS WPF runtime examples - see http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9). I have a shapefile that contains Point information, and contained in it's attributes are the text labels that apply to those points. I cannot see how to access that information. I know the DBF file is being used as if I delete that file the shapefile will not render as it has no symbol information. Despite this, I cannot see when debugging the provided example how to access this information. Obviously I could simply open the .dbf file manually but that seems awfully clunky. Does anyone have any help or pointers for me? Many thanks in advance. Lee.
... View more
07-23-2014
01:26 AM
|
0
|
1
|
4354
|
POST
|
I need to generate a basic tiled map package (tpk file) for quite a small area. I understand that I can do this by loading the basmap for export (http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer) into ArcMap and generate the tpk from there. However, I cannot seem to get that basemap to open in ArcMap. If I browse the URL via a browser I get a token request. If I Add it as a GIS server to ArcMap the server appears but with no content. I'm not a GIS professional - I'm a software engineer trying to complete a small support job (generate this map) using a trial version of ArcMap - and assess the tool for purchase at the same time. Can anyone help? Any pointers / information will be very gratefully received - many thanks. Lee.
... View more
07-09-2014
06:13 AM
|
0
|
1
|
3459
|
POST
|
Thanks Mike, That's pretty much what I assumed and exactly as I hoped - tracking deployments should be no problem. Thanks again for the quick response! Lee.
... View more
09-27-2013
04:33 AM
|
0
|
0
|
229
|
POST
|
Hi, I'm aware that in order to deploy my application (that contains features requiring a Standard licence) I need to purchase a 25 Deployment Pack, authorize it, and embed the relevant license code snippet in my application code. However, this raises 2 questions: Is that all I need? Is there a licence file that needs to be deployed with the application (either manually or auto-created with the Deployment Builder tool)? Does my application then 'call home' to Esri to validate that licence key? In other words, how do Esri ensure that having purchased 25 deployment licences I do not deploy 26 installations of my application? The application may be installed in locations that do not contain an open connection to the internet - therefore if there's a licence check performed I'll need to deal with that somehow. The licencing and deployment documentation is very clear but doesn't expressly cover the above - especially point 2. Many thanks for any information you can provide!
... View more
09-26-2013
06:18 AM
|
0
|
2
|
501
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|