|
POST
|
I will definitely be switching to AMD in the fairly near future, but I'm still getting a handle on the legacy coding! Any more pointers? I can't seem to make it work.
... View more
12-16-2013
12:02 PM
|
0
|
0
|
1315
|
|
POST
|
Will that work with the legacy style? I'm still using that currently and not AMD. This is the code I'm using: //Identify task
function initFunctionality (map){
dojo.connect(map, "onClick", executeIdentifyTask);
identifyTask = new esri.tasks.IdentifyTask("http://gismap.oit.ncsu.edu/arcgis/rest/services/FiberAnalytics_IMS/MapServer");
identifyParams = new esri.tasks.IdentifyParameters();
identifyParams.tolerance = 2;
identifyParams.returnGeometry = true;
identifyParams.layerIds = [2,3,4,5,6,7,8,9,11,18];
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_TOP;
identifyParams.width = map.width;
identifyParams.height = map.height;
}
//Execute Identify Task
function executeIdentifyTask(evt){
identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
var deferred = identifyTask.execute(identifyParams);
deferred.addCallback(function(response){
// response is an array of identify result objects
// Let's return an array of features.
return dojo.map(response, function(result){
var feature = result.feature;
feature.attributes.layerName = result.layerName; The initFunctionality function is tied to a button in my application.
... View more
12-11-2013
08:54 AM
|
0
|
0
|
1315
|
|
POST
|
Can anyone give me a pointer to get the Identify task to cancel once you click the map? Or at least tie a cancel to a button? Its a bit of an annoyance that the ID task still keeps working after you click on a point.
... View more
12-06-2013
09:11 AM
|
0
|
8
|
5219
|
|
POST
|
I'm nearly a complete programming newb myself (I took a Python course a few years ago but that's it). I started by getting a Javascript book and reading through it. When I was starting to learn, Code Academy started up as well. Its not a bad resource. Interactive and free, so always a plus. It helped me more than the book. I would love to find a basic Javascript class that I could do in person with a teacher...I'm not great at learning on my own. But I've been plugging away for some time now, probably a good year or so. I've hit some major bumps along the way, and restarted a time or two, but I'm now making progress. I still have days where I look at the forums or documentation and my head spins, but its all about just jumping in and trying your best. You'll get there. There are definitely some great resources out there. I will admit, I tend to stick to doing things where there are samples already made. Its much easier to change a few lines to fit your own data than to do things from scratch.
... View more
10-22-2013
10:23 AM
|
0
|
0
|
702
|
|
POST
|
I am using this as a guide: https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html I have put it into my code to use with my own data. The biggest problem I am having with it is that the info window seems to be hard to configure based on that sample code. I want to format it like the Identify task I have set up, where I can change the field name title, etc. And I don't want to have the FID show up (in this sample the ObjectID shows up and isn't requested, in mine its the FID). I can configure the field name titles but I can't get the values associated with them. Hopefully I've explained this well. This is what the info window looks like for the selection: [ATTACH=CONFIG]28382[/ATTACH] Info window for the identify task (which I want the selection result to look like): [ATTACH=CONFIG]28383[/ATTACH] Thanks.
... View more
10-16-2013
01:02 PM
|
0
|
1
|
951
|
|
POST
|
I definitely want to thank you for your help. Testing on the webserver and setting up the proxy seems to have solved a lot of the problems. The biggest is that things work in IE as they should now. I'm still not getting the ToC to show up in Safari though. No other errors than the XML error. The ToC is supposed to work in Safari. Works great in all other browsers (most of the time at least...it decided not to load up in Chrome for a few days a few weeks ago with no code changes). Any thoughts?
... View more
10-16-2013
12:55 PM
|
0
|
0
|
733
|
|
POST
|
Thanks for the help. I will do those things and report back.
... View more
10-14-2013
06:41 AM
|
0
|
0
|
733
|
|
POST
|
1. Maybe I'm confused by what you mean. I'm just double clicking the HTML file and running it in my browser on my desktop. ArcServer is running on another machine and I believe its using IIS. Is this what you mean? 2. We are looking into the proxy issue. Is there any detailed information on how to set that up properly? 3. The sample works fine for me in all browsers. But I'm having issues with it being implemented with my own data. Works great in all other browsers, but it won't display selected points in IE. I'm using IE9. That "Error: Access is Denied" error is all that I get. Any way to maybe get into the error more to see exactly whats going on? It only pops up when I try to run the buffer selection so I know its related, just have no idea how since it doesn't seem to have any other information attached to the error. Let me know if you need more information. Thanks.
... View more
10-14-2013
06:19 AM
|
0
|
0
|
733
|
|
POST
|
I am having a heck of a time with getting my decently basic application up and running. Running into errors that I can't seem to fix and problems in various browsers. I have posted other threads with no real answers. Hoping maybe I can get some direction here, as maybe several problems are related? 1) I have added the basemap gallery code and I get this error: Error: Permission denied for <file://> to create wrapper for object of class UnnamedClass I am testing on my desktop, but nothing is calling any file name that I can think of, other than, again, its being run on my desktop for testing and therefore run out of an html file. This error only arises with the addition of the basemap gallery code: //add basemap gallery var basemapGallery = new esri.dijit.BasemapGallery ({ showArcGISBasemaps: true, map: map }, "basemapGallery"); basemapGallery.startup(); basemapGallery.on("error", function(msg) { console.log("Basemap Gallery Error: ", msg); }); I get this on multiple browsers. 2) In Safari, the table of contents doesn't work. I just get the title with a check box next to it, but no drop downs for other layers within it. I'm getting an error of "XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. Origin is not allowed by Access-Control-Allow-Origin." And that's it. I've gotten this error in Chrome and the ToC seems to have issues working there as well. From what I've seen, it shouldn't have any effect on it, but that's all I'm getting. I'm using this: http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 3) I'm using this example: https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html It works great in all browsers except Internet Explorer. I will get the buffer to show up, but the points selected do not show up. I just get a generic error of "Error: Access is denied." No other explanation. (Side note - anyone know how to format the info window to be more like the result in the identify task? I've played around with it and can't get it to work how I want it) I have attempted to put my code into a fiddle because its too large to attach in a single post but its not displaying right. Here is the link to it anyway http://jsfiddle.net/jessabug/hdk8F/ Any other way to get all my code into here easily? I could definitely use a hand. I don't feel like I'm doing anything too complicated yet, but I'm not a programmer by trade so I've been teaching myself how to do this as I go and its proving to be enjoyable sometimes, frustrating at others. I want this to work in at least 2 browsers consistently (it was working in FF and Chrome before with no issues, then Chrome didn't want to load the ToC a week or so ago. Now it seems to work and I've not changed anything). I also want to add more functionality but I hate adding more and more errors to the equation and I'd like to solve what is here first before moving on. Any help would be much appreciated. Thanks.
... View more
10-10-2013
11:59 AM
|
0
|
5
|
2539
|
|
POST
|
I'm getting the XMLHttpRequest error in Safari and Chrome. Its the only error message I get and the ToC doesn't work. Could they be connected? I'm using the ToC widget: http://www.arcgis.com/home/item.html...1ebc969276b109. In Chrome, the ToC widget was working fine until I started getting this error, which seems to have shown up after I added the Identify Task. Everything still works in Firefox.
... View more
10-02-2013
06:51 AM
|
0
|
0
|
726
|
|
POST
|
Using this example: https://developers.arcgis.com/en/javascript/jssamples/widget_basemap.html I get the error when this section of code is active: //add basemap gallery
var basemapGallery = new esri.dijit.BasemapGallery ({
showArcGISBasemaps: true,
map: map
}, "basemapGallery");
basemapGallery.startup();
basemapGallery.on("error", function(msg) {
console.log("Basemap Gallery Error: ", msg);
});
... View more
10-02-2013
06:49 AM
|
0
|
0
|
663
|
|
POST
|
I have tried to add in the basemap gallery and get this error when I add in the code: "Error: Permission denied for <file://> to create wrapper for object of class UnnamedClass" No errors if this code is commented out. Any thoughts?
... View more
10-01-2013
01:07 PM
|
0
|
3
|
1079
|
|
POST
|
I'm getting the XMLHttpRequest error in Safari and Chrome. Its the only error message I get and the ToC doesn't work. Could they be connected? I'm using the ToC widget: http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 I am also getting errors for the basemap gallery but I'll start a new thread on that.
... View more
10-01-2013
01:05 PM
|
0
|
0
|
623
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-13-2015 01:27 PM | |
| 2 | 04-29-2015 11:59 AM | |
| 2 | 04-29-2015 12:18 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|