|
POST
|
So from doing some research, these messages are caused because I am accessing secure services. I still can't figure out why my application crashes my browser. The code above is just a small snippet. I have 15 feature layers that use the above code. I am no longer getting this error Error info: 0 message: "defineAlreadyDefined" src: "dojoLoader" stack: (...) get stack: function () { [native code] } set stack: function () { [native code] } __proto__: d but I am getting this (accessing secured resources is what I think is causing it) Error code: 499 details: Array[0] httpCode: 499 log: undefined message: "Token Required" stack: "Error�?� at Error (native)�?� at Object.f.load (https://js.arcgis.com/3.9/init.js:629:424)�?� at https://js.arcgis.com/3.9/init.js:187:69�?� at c (https://js.arcgis.com/3.9/init.js:74:221)�?� at d (https://js.arcgis.com/3.9/init.js:74:10)�?� at resolve.callback (https://js.arcgis.com/3.9/init.js:75:350)�?� at c (https://js.arcgis.com/3.9/init.js:74:436)�?� at d (https://js.arcgis.com/3.9/init.js:74:10)�?� at resolve.callback (https://js.arcgis.com/3.9/init.js:75:350)�?� at https://js.arcgis.com/3.9/init.js:191:300" __proto__: d Anyone have any ideas? Thanks!
... View more
06-26-2014
11:23 AM
|
0
|
0
|
541
|
|
POST
|
Have you recently upgraded to 10.2.2? A bug has been reported with the Zoom To. A workaround is linked at the bottom of this post here
... View more
06-26-2014
08:24 AM
|
0
|
0
|
659
|
|
POST
|
Here is a link for formatting infoWindow content. It might help get you started. I'm not sure if the commands are the same for the AttributeInspector. Here is a sample where they format AttributeInspector content Hope this helps
... View more
06-26-2014
08:14 AM
|
0
|
0
|
863
|
|
POST
|
Hello, I have 15 feature layers and I am appending a check box to each one so I can turn them on and off. My services are secured and after I log in my browser takes a while to load and then crashes. Any idea why this is happening? var layer0 = new FeatureLayer("https://myserver/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
infoTemplate: layer0Template,
outFields:["*"]
});
map.addLayer(layer0);
layer0.setVisibility(false);
var checkBox = new CheckBox({
name: "checkBox0",
value: "agreed",
checked: false,
onChange: function(b){
if (b == true) {
layer0.setVisibility(true);
} else {
layer0.setVisibility(false);
} }
}, "checkBox0").startup();
var layer1 = new FeatureLayer("https://myserver/FeatureServer/1", {
mode: FeatureLayer.MODE_ONDEMAND,
infoTemplate: layer0Template,
outFields:["*"]
});
map.addLayer(layer1);
layer1.setVisibility(false);
var checkBox1 = new CheckBox({
name: "checkBox1",
value: "agreed",
checked: false,
onChange: function(b){
if (b == true) {
layer1.setVisibility(true);
} else {
layer1.setVisibility(false);
} }
}, "checkBox1").startup(); In the chrome developer tools it says this a bunch of times: Error info: 0 message: "defineAlreadyDefined" src: "dojoLoader" stack: (...) get stack: function () { [native code] } set stack: function () { [native code] } __proto__: d Error "Error at Error (native) at Object.f.load (https://js.arcgis.com/3.9/init.js:629:424) at https://js.arcgis.com/3.9/init.js:187:69 at c (https://js.arcgis.com/3.9/init.js:74:221) at d (https://js.arcgis.com/3.9/init.js:74:10) at resolve.callback (https://js.arcgis.com/3.9/init.js:75:350) at c (https://js.arcgis.com/3.9/init.js:74:436) at d (https://js.arcgis.com/3.9/init.js:74:10) at resolve.callback (https://js.arcgis.com/3.9/init.js:75:350) at https://js.arcgis.com/3.9/init.js:191:300"
... View more
06-26-2014
06:26 AM
|
0
|
2
|
950
|
|
POST
|
Thanks, That is the widget I have implemented now, but I need to break out my one layer into multiple layers and have the ability to toggle them on and off while keeping the identify and attachments link. The only samples I am seeing for toggling visibility use ArcgisDynamicMapServiceLayer. Is there a way to toggle layer visibility using the popup widget? I think I am definitely getting out of my skill level here. Thanks for you help!
... View more
06-23-2014
06:51 AM
|
0
|
0
|
1064
|
|
POST
|
Do you know of any samples that show toggling layer visibility with identify and showing attachments link or point me the right direction. I could use the attribute inspector with attachment editor and disable everything from editing but then I'm not quite sure how to link each layer to toggling layer visibility.
... View more
06-23-2014
06:01 AM
|
0
|
0
|
1064
|
|
POST
|
Do you mean add a KML layer? Here is the sample on how to do this.
... View more
06-20-2014
12:49 PM
|
0
|
0
|
723
|
|
POST
|
Thanks for the quick reply! I think you meant attachments because the attributes work just fine. I just figured since it was pulling from the popupTemplate instead of the infoTemplate the attachments would work like they were suppose to. I've successfully implemented the infoTemplate while toggling layer visibility but no attachments. I've successfully implemented the popupTemplate that shows the attachment link without toggling layer visibility but I have yet to figure out toggling layer visibility while being able to identify on visible layers and showing an attachment link in the infowindow/popup.
... View more
06-20-2014
12:11 PM
|
0
|
0
|
1064
|
|
POST
|
Here is my js fiddle I've double checked that attachments are indeed enabled on the layer. There aren't any attachments loaded in yet but it should still show the dialog "No Attachments Found". Any ideas? Thanks!
... View more
06-20-2014
11:08 AM
|
0
|
7
|
1706
|
|
POST
|
I don't have a public application for viewing. What I did was basically take the code mentioned above and have 2 applications. 1 that uses the attachment editor so I can load attachments and 1 that uses the pop up widget to view attachments. It works great.
... View more
06-19-2014
09:20 AM
|
0
|
0
|
1034
|
|
POST
|
If they had attachments loaded into their data you would see a link to the attachment. The same principle is there just without the data. To apply this to your needs, you would have to load the attachments into your data first or use the Attachment Editor to load attachments via another application.
... View more
06-19-2014
09:09 AM
|
0
|
0
|
1034
|
|
POST
|
Running Desktop 10.2.2 with Data Reviewer 10.2.2 Running an individual check on one road layer which is participating in topology. I exported the features selected from topology and data reviewer to show the differences in the previous image. I will see about getting some alternate data that produce the same results and give you a copy of the data. Thanks!
... View more
06-19-2014
08:56 AM
|
0
|
0
|
2470
|
|
POST
|
So there is an issue with the Dangles Check in Data Reviewer. Attached is an image. The Yellow roads are ones found inside topology rules. The red ones are ones that Data Reviewer found. I have tried tolerances of 1 mile up to 100,000,000 miles with the same results each time. Is this an issue inside 10.2.2? [ATTACH=CONFIG]34701[/ATTACH]
... View more
06-18-2014
12:03 PM
|
0
|
0
|
2470
|
|
POST
|
You can use the pop up widget to display attachments without editing them. Here is the link. I haven't figured out a way to have the attachments show while using the toggle layers on/off widget though. Hope this helps!
... View more
06-18-2014
07:27 AM
|
0
|
0
|
1034
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-18-2015 12:38 PM | |
| 1 | 08-28-2015 09:13 AM | |
| 1 | 02-25-2016 03:51 PM | |
| 1 | 09-12-2014 08:32 AM | |
| 1 | 05-21-2015 10:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-03-2021
11:21 AM
|