|
POST
|
In case it helps anyone else, this turned out to be the result of a bug in the Identify Operation. Details and workaround here: http://forums.arcgis.com/threads/106418-ArcGIS-Server-10.22-Identify-Issue Jill
... View more
06-17-2014
07:23 PM
|
0
|
0
|
394
|
|
POST
|
Hi, Ever since upgrading ArcGIS Server to 10.2.2 I've been experiencing some strange behavior from the Zoom To function on the default InfoWindow. When I click Zoom To the map zooms out so far that I can no longer see any other layers or my basemap. All my services, serving a variety of data sources exhibit this behavior. The layers seem to work correctly in every other way. To rule out issues with my code, I open this sample in a sandbox and swap out a service on my 10.2.2 machine for the parcelsURL variable. I get the funky behavior. I then publish the same dataset on a 10.11 box and the sample works as expected. When zooming to the same feature, the map based on the 10.2.2 service is zoomed to XMin: -1100124434934.61 YMin: 33623503.45 XMax: -1099873496451.23 YMax: 173729518.82 while the map based on the 10.11 service is zoomed to XMin: -10371573.06 YMin: 4422116.48 XMax: -9391344.61 YMax: 4969405.60. Any ideas? Thank you! Jill
... View more
06-16-2014
06:44 PM
|
0
|
1
|
752
|
|
POST
|
Thanks for the quick reply! Got it! Many thanks for the help! Jill
... View more
06-02-2014
12:53 PM
|
0
|
0
|
1315
|
|
POST
|
my recommendation would be to add the layer info to the attributes of the popup when you set it
var attrs = content;
//do some overrides
var contentreplacement = SearchParams.resultContentOverride(attrs.content, result.layers, f);
attrs.content = contentreplacement;
//add some links
attrs.links = links;
//override title
attrs.titleField = titleField;
//modify content only in result table
var fieldInfos = [];
array.forEach(fieldNames, function(name) {
fieldInfos.push({
fieldName: name, visible: true
});
});
// alert(fieldInfos);
var g = new esri.Graphic(f.geometry, sym, attrs);
g.setInfoTemplate(new esri.dijit.PopupTemplate({
title: title,
fieldInfos: fieldInfos
}));
Hi Jeff, I'm sorry, I don't really understand where this would go. I am setting the popup in the infoWindow's selection change event and just setting it's content to a dijit. I would like to add the layer info here but that's the crux of the issue, I can't get the layer info. What are the SearchParams and result.layers objects in the code above? Thanks for walking me through this, I really appreciate the help, Jill
... View more
06-02-2014
12:33 PM
|
0
|
0
|
1315
|
|
POST
|
have you tried console.dir(g) to output the complete feature? My guess is there is an attribute in there that will provide you with the layername Hi Jeff, Thanks for the suggestion! Here is the console output (I replaced some of the actual data with placeholders): {
[functions]: ,
__proto__: {
[functions]: ,
__proto__: { },
_graphicsLayer: null,
_shape: null,
_visible: true,
declaredClass: "esri.Graphic",
visible: true
},
_graphicsLayer: null,
_shape: null,
_visible: true,
attributes: {
[functions]: ,
__proto__: {
[functions]: ,
__proto__: null
},
datalink: "value",
dateposted: "2/22/2012",
Intersection: "y",
intid: "Value",
measure: "2.0869",
OBJECTID: "2",
other: "Null",
postedby: "kdl",
RID: "8",
Road: "Value",
road2: "Value",
SHAPE: "Point",
studydate: "2/9/2012"
},
declaredClass: "esri.Graphic",
geometry: { },
infoTemplate: {
[functions]: ,
-chains-: { },
__proto__: { },
_dateFormats: { },
_fieldLabels: { },
_fieldsMap: { },
chartTheme: null,
declaredClass: "esri.dijit.PopupTemplate",
info: {
[functions]: ,
__proto__: { },
description: "OBJECTID = 2<br/>SHAPE = Point<br/>Road = Value<br/>Intersection = y<br/>road2 = Value<br/>other = Null<br/>studydate = 2/9/2012<br/>datalink = Value<br/>dateposted = 2/22/2012<br/>postedby = kdl<br/>measure = 2.0869<br/>intid = Value<br/>RID = 8<br/>",
title: "KDOT Traffic Counts Intersections"
}
},
symbol: null,
visible: true
} I don't see a property that gets me the layer. There is the function, getTitle which returns the title of the infoWindow and is currently set to the layer name. That would technically work in this particular situation but doesn't seem like a robust solution since the title of the infoWindow could get changed elsewhere. Thanks again for the help, Jill
... View more
06-02-2014
09:09 AM
|
0
|
0
|
1315
|
|
POST
|
Hi, In my JS app I am overriding the default infoWindow and populating it with a custom dijit using the following code: on(this.map.infoWindow, 'SelectionChange', lang.hitch(this, function() { var g = this.map.infoWindow.getSelectedFeature(); if (g) { var options = { graphic: g }; var cit = new ClipboardInfoTemplate(options, domConstruct.create("div")); cit.startup(); this.map.infoWindow.setContent(cit.domNode); } })); This is working really well. My question is, how can I determine which dynamic map service layer the selected graphic belongs to? I'd like to make some customizations to the dijit based on the layer and display the layer name, just like in the default popup but I can't seem to hook into the layer. Seems like I'm overlooking something obvious. Thanks for the help! Jill
... View more
06-02-2014
08:20 AM
|
0
|
6
|
1863
|
|
POST
|
Jill, did you ever resolve this? I'm experiencing the same problem. Steve Hi Steve, Unfortunately, I didn't. Luckily for me, the layer that was giving me problems wasn't actually needed in the print out, so I would remove it from the map, export the map and then add it back in. Jill
... View more
04-04-2014
12:43 PM
|
0
|
0
|
607
|
|
POST
|
Hi Jason, I don't know that I ever found a solution to this problem. I believe I went a different route and didn't use that tool. Sorry I couldn't be of more help, Jill
... View more
02-20-2013
07:42 AM
|
0
|
0
|
1131
|
|
POST
|
Hi, Has there been a definitive listing of the limitations of Export Web Map yet? Specifically, I'm having trouble exporting a map that contains a graphics layer symbolized using a unique value renderer. I'm getting a similar error: Error executing tool.: Layer "graphicsLayer2": Field 'pointType' not part of schema for this feature collection. Where the field 'pointType' contains the value to be rendered on. Thanks! Jill
... View more
02-13-2013
08:33 AM
|
0
|
0
|
1358
|
|
POST
|
Hi, I haven't seen a satisfactory answer to this issue but maybe somebody has some fresh ideas. I have some secured services hosted in Server 10.1 that use long term tokens. In order to facilitate printing I published a custom Export Web Map tool according to these instructions - Printing maps that contain secured services . I can successfully use this custom service to print map containing all unsecured layers but as soon as I add a layer from the secured service I get: {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool."]}}. If I paste all of the same parameters into the REST Service Directory interface I receive the same error, so I don't think it's a problem with the proxy page. Here is the content of the Web_Map_as_JSON parameter: {"mapOptions":{"showAttribution":true,"extent":{"xmin":-13074789.94993775,"ymin":4015647.8563408996,"xmax":-13073490.52045701,"ymax":4016726.33503677,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100}},"operationalLayers":[{"id":"layer0","title":"layer0","opacity":1,"minScale":591657527.591555,"maxScale":1128.497176,"url":"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},{"id":"layer2","title":"layer2","opacity":1,"minScale":0,"maxScale":0,"url":"http://ec2-54-243-148-157.compute-1.amazonaws.com/be/rest/services/v2/BERides/MapServer?token=MY_TOKEN_GOES_HERE","visibleLayers":null,"layers":[]},{"id":"layer1","title":"layer1","opacity":1,"minScale":591657527.591555,"maxScale":1128.497176,"url":"http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"}],"exportOptions":{"outputSize":[800,1100],"dpi":96}} I'm using the same token to add the layers to the map and am having no display problems. Not sure what to troubleshoot next. Any ideas? Thanks!
... View more
02-12-2013
12:18 PM
|
0
|
4
|
3041
|
|
POST
|
Hello, I have a Silverlight 4 app that has been up and running for some time now but in the last few weeks I've gotten complaints that the Bing geocoder is not returning any records, more often than not. I can request the same address over and over again and sometimes it will return the correct number of records and sometimes none at all. Sometimes it will take up to 10 attempts before a record is returned. Sometimes it will return the correct number of records a couple of times in a row. I don't see any pattern to the behaviour. I've tried different addresses, zip codes and placenames but that doesn't seem to have an impact. I never receive an error message and it always indicates that the credentials where valid. The result is just empty. I stripped the Silverlight code down to the bare minimum and here it is, even though I don't believe it's the issue: Private Sub GeocodeButton_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
Dim bingGeocoder = New Geocoder("MY_BING_TOKEN")
bingGeocoder.MinimumConfidence = GeocodeService.Confidence.Medium
bingGeocoder.ServerType = ServerType.Production
bingGeocoder.Geocode(AddressBox.Text, AddressOf Geocode_Complete, AddressBox.Text)
End Sub
Private Sub Geocode_Complete(ByVal sender As Object, ByVal args As GeocodeCompletedEventArgs)
If args.Error IsNot Nothing Then
ResultsBlock.Text = args.Error.Message
Else
ResultsBlock.Text = args.Result.Results.Count.ToString
End If
End Sub I cannot replicate this problem on my development machine however my client is a large state agency and when I move the application onto a machine on their network I can replicate the behaviour. This leads me to believe that it has something to do with security on their network. I'm attaching the request and response for a successful and a failed call. The requests both look the same to me and the responses do too, except that one has an empty Results tag. Thank you very much.
... View more
01-18-2013
03:03 PM
|
0
|
0
|
638
|
|
POST
|
Hi Forum, I've just converted this sample to VB.Net for Arc 10 -> One To Many Labels It went fairly smoothly but I have two questions: 1. How can I get a hold of the property page that is currently active in the property sheet? What I really want to do is determine whether or not my custom property page is the one that's visible. I know I can get the currently active index from the property sheet but how I can I tell which page that is? Is there a way to get an enum of the property pages in a property sheet? 2. The sample adds a new annotation expression engine to the labeling expression page. In the 9.3 sample an entry is added to the "Parser" dropdown selector with the name of the new engine, so that it can be selected by the user. In my converted project the parser is added to the dropdown and functions correctly but it's blank - the name doesn't appear. My custom parser implements the IAnnotationExpressionEngine interface and correctly implements the Name property. I can see it's set when I'm debugging. In 10, what property is used to display the name of the new parser? Here's the code for the property: Private ReadOnly Property Name() As String Implements ESRI.ArcGIS.Carto.IAnnotationExpressionEngine.Name
Get
On Error GoTo ErrHand
Name = "One To Many"
Exit Property
ErrHand:
MsgBox("IAnnotationExpressionEngine_Name - " & Err.Description)
End Get
End Property Many thanks for any suggestions you have, Jill
... View more
06-01-2012
07:38 AM
|
0
|
1
|
1043
|
|
POST
|
Patrice, What we discovered is that we were missing the proxy page, which is required to send large requests - http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm. We were coming from a Silverlight background and didn't realize that it was necessary. Once we set it up according the instructions above the problem was solved. Hope that helps! Jill
... View more
12-21-2011
07:16 AM
|
0
|
0
|
830
|
|
POST
|
Hi! Thank you so much for your response. I don't believe this is the problem, for a couple of reasons - When I use the route geometry, the problem is not that I do not get any results, it is that I get the error, "Deferred object is missing". I'm moving this functionality from a functioning Silverlight application that is working correctly and the points I'm querying are snapped to the network so I know the query should work. Finally, if I create a test polyline and populate it with a dummy path the query is executed successfully. Obviously, I don't receive any results but i also don't get an error. Thank you again for your suggestion!
... View more
12-01-2011
05:11 AM
|
0
|
0
|
830
|
|
POST
|
Hello, I'm attempting to perform a spatial query task using the geometry returned by a route task but it always fails and the only error I receive is "Deferred object is missing". The geometry appears to be valid, I can draw it on the map as a graphic. The code below is the route task's solveComplete handler. function showRoute(solveResult) {
var routeGeo = solveResult.routeResults[0].route.geometry;
routeGeo.spatialReference = new esri.SpatialReference({wkid:4326});
var routeGraphic = new esri.Graphic(routeGeo, routeSymbol);
map.graphics.add(routeGraphic);
var routeExtent = routeGraphic.geometry.getExtent();
routeExtent.spatialReference = new esri.SpatialReference({ wkid: 4326 });
map.setExtent(routeExtent);
var queryTask = new esri.tasks.QueryTask("http://avalanche/ArcGIS/rest/services/Toll_Calc_Web/MapServer/4");
var query = new esri.tasks.Query();
query.outFields = ["*"];
query.returnGeometry = true;
query.outSpatialReference = { "wkid": 4326 };
query.geometry = routeGeo;
queryTask.execute(query, queryPlazasComplete, errorHandler);
} If I swap out routeExtent (the extent of the route geometry) for routeGeo (the route geometry) as the geometry parameter of the query task is executes successfully. I'm a javascript API newbie so any suggestions are appreciated! Thank you!!
... View more
11-30-2011
02:46 PM
|
0
|
5
|
1157
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2023 11:03 AM | |
| 1 | 08-22-2024 12:12 PM | |
| 1 | 06-17-2022 08:38 AM | |
| 2 | 05-23-2023 07:45 AM | |
| 1 | 01-29-2025 11:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2025
12:28 PM
|