POST
|
Mike, Here is a link to the map: http://bit.ly/yINTdI This map is using our map services. As you can see, the trails are at the bottom of the table of contents, but they are drawing on top of our point layers. Thanks, Stephanie
... View more
01-23-2012
08:21 AM
|
0
|
0
|
536
|
POST
|
James, I'm kind of curious...are you using only map services? Have you tried uploading zipped shapefiles? I've noticed that the draw order in the table of contents is not recognized when I use map services, but it seems to be ok if we use uploaded shapefiles. We need to use map services because our data changes so often, so I hope Esri can fix this. Thanks, Stephanie
... View more
01-23-2012
05:46 AM
|
0
|
0
|
536
|
POST
|
Arconline keeps adding an "others" category to the legend. How do I remove it? "Others" is not a priority listed in the shapefile. You have to open your map in ArcGIS Explorer Online to remove the "others" category. I had the same problem. See this thread: http://forums.arcgis.com/threads/43966-Unique-Symbology-on-ArcGIS.com-Map
... View more
01-20-2012
09:39 AM
|
0
|
0
|
118
|
POST
|
James, Did you get this resolved? I have also noticed that the order in the table of contents does not reflect the draw order. For example, I have a point layer at the top of my table of contents and a line layer at the very bottom. The lines draw on top of the points. What is interesting though - - it draws correctly if the map is viewed on a mobile device (smart phone, iPad, etc.). When viewed on a desktop (doesn't matter what browser, IE and Firefox do the same), the draw order doesn't match the table of contents. Thanks, Stephanie
... View more
01-10-2012
09:33 AM
|
0
|
0
|
536
|
POST
|
Mike, Thank you for your prompt response. We're looking forward to the ability to turn that off in the legend. Thanks again, Stephanie
... View more
11-17-2011
02:38 AM
|
0
|
0
|
244
|
POST
|
I have created a map on ArcGIS.com and am using Unique Symbols. In my legend, "others" always appears below the symbols that I set up for the layer. Does anyone know if there is a way to turn this off and just show the symbology that I defined? I have attached a screen shot illustrating this. Thanks! Stephanie
... View more
11-16-2011
11:21 AM
|
0
|
3
|
618
|
POST
|
Tech support was able to reproduce the problem and it has been logged as a bug - NIM068764.
... View more
05-31-2011
10:39 AM
|
0
|
0
|
312
|
POST
|
Alex... or anyone else with similar problems with the find task - - I posted a similar problem to the forum. I ended up going to tech support with the issue. You can go to my thread for more information: http://forums.arcgis.com/threads/29274-Find-Task-on-XY-Event Hope this helps, ~Stephanie
... View more
05-11-2011
10:30 AM
|
0
|
0
|
251
|
POST
|
I worked with ESRI tech support and they concluded that the issue with the Find Task was related to the JSON output. The find task executed from within the ArcGIS Services Directory (REST) worked because the results are returned as html by default. The format can be changed to JSON by appending f=json to the end of the text in the address bar. When this was appended, the JSON output failed. The JavaScript API requires the JSON format, so that is why the find task was failing in my application. Why this fails is still not known. Tech support said that it looks like it is probably a bug in 9.3/9.3.1. The problem could not be replicated in an ArcGIS Server 10 environment. They will do further investigating. I did some of my own troubleshooting on the find task during this past week. I tried 3 different data sources for my XY event layer in my map service (directly from SQL Server, a .dbf, and a personal geodatabase table). It appears that the find task works OK as long as the XY Event layer is not directly hitting a table in SQL Server. If the SQL table is exported to a .dbf or pgdb table and that exported table is then used to create the event layer, the find task worked. In the meantime, tech support has helped me get the Query Task to work properly. I am able to use that instead of the Find Task in my application. The problem I was running into with the Query Task (from the query task example in the resource center - http://help.arcgis.com/EN/webapi/javascript/gmaps/samples/querytask/query_point.html) was incorrect locations of my results on the Google map. The results were being lined up across the top (see attachment). There is a line of code in the example that needed to be commented out. query.queryGeometry = bounds; Once I took out that line, my results displayed in the correct location. If/when I learn anything more about the Find Task from ESRI tech support, I will be sure to post an update.
... View more
05-11-2011
10:26 AM
|
0
|
0
|
312
|
POST
|
Hmm...is your endpoint publicly accessible? I'm not sure how helpful I can be w/o access to test for myself. If it's not available publicly, I would say it's time to talk to tech support. No, this particular service is internal. I submitted the issue to tech support this morning. Hopefully they'll be able to figure out what's going on. Thanks again for your help!
... View more
05-03-2011
07:20 AM
|
0
|
0
|
312
|
POST
|
We are running ArcGIS Server 9.3.1. We have a couple different Flex apps using versions 1.2 and 1.3 of the ArcGIS for Flex API. We have used map services built on XY event layers in the past without any problems. For example, we use the Live Layer widget on XY layers -- that widget runs a query task and returns results just fine. Just to make sure there wasn't something wrong with the map service that I'm using in this Javascript project, I used it in a Live Layer widget in a test Flex app. It worked fine, so there shouldn't be anything wrong with the map service itself. Thank you! ~Stephanie
... View more
05-02-2011
10:56 AM
|
0
|
0
|
732
|
POST
|
I was hoping that a fresh mind after the weekend would help, but I'm still stumped. I've used map services based on XY events in Flex without a hitch. I can query, etc. in my Flex apps and I can execute the Find Task just fine from the REST endpoint. This leads me to believe that it is a problem related to the javascript API or something along those lines. I used Fiddler and I get the following when I try to execute the Find Task from my app: esri.arcgis.gmaps._RestRequest._requestQueue.ArcGISJson_40631967163708915._callback({"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}}); Perhaps that is a clue to the problem, but I don't know what to do with it. Is this problem something that can be fixed (an error in my code, etc.)? Or is a Find just not going to work in Javascript (in other words I just need to scrap the find or switch to Flex)? Thanks again! ~Stephanie
... View more
05-02-2011
05:53 AM
|
0
|
0
|
732
|
POST
|
Alex, Did you ever get this figured out? I'm having the same problem. My find task is not returning any results when executed through the Javascript API (with the google extension). I get results, however, when I run it from the REST services directory, but all of my results have that Feature ID: -1. Thanks, Stephanie
... View more
05-02-2011
04:37 AM
|
0
|
0
|
251
|
POST
|
swingley - I'm guessing it is probably something with my code! Here are a few more lines: function searchRequestID(requestID) {
gmap.closeInfoWindow();
mapExtension.removeFromMap(gOverlays);
gmap.setCenter(new GLatLng(34.8370,-82.3658),12);
//Clear layer definitions
var layerDefinitions = [];
layerDefinitions[0] = "";
layer.setLayerDefinitions(layerDefinitions);
gmap.closeInfoWindow();
var findTask, findParams;
findTask = new esri.arcgis.gmaps.FindTask("my map service url");
findParams = new esri.arcgis.gmaps.FindParameters();
findParams.returnGeometry = true;
findParams.layerIds = [0];
findParams.searchFields = ["REQUESTID"];
findParams.searchText = requestID;
findParams.contains = true;
findTask.execute(findParams, zoomToRecord);
mapExtension.removeFromMap(gOverlays);
}
function zoomToRecord(results){
var result, attribs, feature;
if (results == null){
alert("nothing here");
}
if (results.findResults.length >0){
var identifyContent = "Put content here </br>";
var infoWindowOptions = {
content:identifyContent};
var overlayOptions = {
strokeColor:"#FF0000",
strokeWeight:4,
strokeOpacity:0.75,
fillColor:"#FF0000",
fillOpacity:0.0};
gOverlays = mapExtension.addToMap(results, overlayOptions, infoWindowOptions);
for (i=0, il=results.findResults.length; i<il; i++){
result = results.findResults;
feature = result.feature;
attribs = feature.attributes;
if (attribs["Shape"] == "Polygon" || attribs["Shape"] == "Polyline"){
var featureGeometry = result.feature.geometry[0];
var featureBounds = featureGeometry.getBounds();
var zoomLevel = gmap.getBoundsZoomLevel(featureBounds);
var featureCenter = featureBounds.getCenter();
gmap.setCenter(featureCenter, zoomLevel);
}
else if(attribs["Shape"] == "Point"){
var featureGeometry = result.feature.geometry[0];
gmap.setCenter(featureGeometry.getLatLng(), 15);
}
}
if (results.findResults.length > 1){
alert("There are " + results.findResults.length + " locations throughout the city.");
}
}
else if (results.findResults.length == 0){
alert("This project does not have a map location. For a project description, click on the information button in the table.");
}
} As part of my troubleshooting, I added a line in there that checks if any results are returned and alerts me if nothing is found. It's not returning any results...I get the "nothing here" message. I have attached a screenshot that shows that I get results when running the find task from REST. I see that it has a FeatureID of -1. Would that cause a problem? Thank you for your help!
... View more
04-29-2011
09:18 AM
|
0
|
0
|
732
|
POST
|
Mike, Thank you for your suggestions. I will look into the Make Query Table tool. Do you know why the find task will work on the XY layer when it is executed through the REST services directory but not through the Javascript API? I'm a little lost as to why the find task works in one but not the other. Since it works in REST, wouldn't that mean that the ArcGIS accounts have access to it? Or are they unrelated? Thanks! ~Stephanie
... View more
04-29-2011
04:42 AM
|
0
|
0
|
732
|
Title | Kudos | Posted |
---|---|---|
4 | 12-20-2017 07:32 AM |
Online Status |
Offline
|
Date Last Visited |
02-07-2024
10:49 AM
|