|
POST
|
Thanks, Chris. Oddly enough, of all the changes that I made for some reason the dijitDisabled didn't display any changes in FireBug.. But it did in chrome!
... View more
02-04-2015
07:45 AM
|
1
|
0
|
807
|
|
POST
|
Greetings, I currently have an app where some of the fields are set as non editable or uses a Map Service for the attribute Inspector. It serves it's purpose, but when seen on a tablet outdoors the colors(Grey text of light grey background) are almost impossible to see. I've tried: .esriAttributeInspector .atiField { font-family: "Verdana"; font-size: 1em; color: #000000; background: #ffffff; width: 200px; text: #000000; } .esriAttributeInspector .atiTextAreaField { font-family: "Verdana"; font-size: 1em; background: #ffffff; color: #000000; width: 196px; } and other permutations, but to no avail. Is there another .ati*********** that I need to have for these non editable fields? I couldn't find that specific documentation. Thanks.
... View more
02-03-2015
12:39 PM
|
0
|
3
|
4469
|
|
POST
|
Would it be possible to merge or append the buffers into a single polygon layer, then use that polygon layer to spatially join to the accident point layer?
... View more
02-03-2015
07:29 AM
|
1
|
12
|
1760
|
|
POST
|
I put this project down for a couple weeks and now realize that when I try to use your example with my secure layers I am getting: Error: Unable to complete operation. Stack trace: w/h.load@http://js.arcgis.com/3.12/:885:426 .cache["dojo/_base/xhr"]/</b._ioSetArgs/<@http://js.arcgis.com/3.12/:191:67 c@http://js.arcgis.com/3.12/:76:221 d@http://js.arcgis.com/3.12/:76:10.................. in the console window and the attribute inspector won't show up.. The infowindow with the chart will pop up, but not the attribute inspector. I am a bit perplexed as to why the sample layers work, but not mine?
... View more
01-14-2015
11:55 AM
|
0
|
0
|
994
|
|
POST
|
Fantastic! This is an excellent solution to a few of my problems. Many thanks!
... View more
12-30-2014
12:47 PM
|
0
|
0
|
994
|
|
POST
|
Correct, some of the layers should open with the attribute inspector, some with the infoWindow for charts, and a few will just be for visible reference. One of the layers will need to have the option for both, hence the toggle, but I noticed in one of my many permutations of getting this to work yielded a attribute inspector(wanted) then a next button that would switch to the infoWindow chart(also wanted) this would be the best case scenario for the end user but it only happend when there was a single layer with the: function initSelectToolbar(layer) { var petroFieldsFL = layer; inserted, rather than the (well, a working variation of) function initSelectToolbar(evt) { var asdf = evt.layers[0].layer; Any attempts to toggle between the two, that I know of, required calling the initSelectToolbar(rather than on layer add). Trying to pass the (evt) throws an error as undefined any way I engage it.
... View more
12-29-2014
11:43 AM
|
0
|
0
|
994
|
|
POST
|
cont. Attribute Inspector conflict other info windows
... View more
12-23-2014
11:33 AM
|
0
|
0
|
1243
|
|
POST
|
This is a continuation from a previous thread: Re: How do I resolve the conflict of info Windows on multiple widgets? Kelly, I have the fiddle set up here Edit fiddle - JSFiddle . I have added a second layer to test for the multiple layers. This demonstrates the same problems I am having. Thanks
... View more
12-23-2014
11:32 AM
|
0
|
5
|
5189
|
|
POST
|
Getting the initSelectToobar function to run is the issue. I can access single layers by calling them individually, and then go from attribute inspector to popup template without issue, but i have 5 other layers in my app that don't require the popup template. The fiddle works when intiSelectToolbar(petroFieldsLayer) is called.. But any attempts at loading an array of layers(and there has been many attempts) for the attribute inspector have failed. I'm not sure what to try next.
... View more
12-23-2014
10:56 AM
|
0
|
2
|
1243
|
|
POST
|
oh yes, sorry. In the code I replaced the: function initSelectToolbar(layer) { var petroFieldsFL = layer; petroFieldsFL.setInfoTemplate(); var selectQuery = new Query(); map.on("click", function (evt) { selectQuery.geometry = evt.mapPoint; petroFieldsFL.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function (features) { if (features.length > 0) { //store the current feature updateFeature = features[0]; map.infoWindow.setTitle(features[0].getLayer().name); map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint)); } else { map.infoWindow.hide(); } }); }); map.infoWindow.on("hide", function () { petroFieldsFL.clearSelection(); }); With: function initSelectToolbar(evt) { var asdf = evt.layers[0].layer; asdf.setInfoTemplate(); var selectQuery = new Query(); map.on("click", function(evt) { var selectionQuery = new esri.tasks.Query(); var tol = map.extent.getWidth()/map.width * 15; var x = evt.mapPoint.x; var y = evt.mapPoint.y; var queryExtent = new esri.geometry.Extent(x-tol,y-tol,x+tol,y+tol,evt.mapPoint.spatialReference); selectionQuery.geometry = queryExtent; asdf.selectFeatures(selectionQuery, FeatureLayer.SELECTION_NEW, function(features) { //store the current feature updateFeature = features[0]; console.log("adf"); map.infoWindow.setTitle(features[0].getLayer().name); console.log("adf"); map.infoWindow.show(evt.screenPoint,map.getInfoWindowAnchor(evt.screenPoint)); console.log("adf"); }); }); In order to accommodate multiple feature point and line feature layers. My personal project, along with the fiddle(with the changes) throws the TypeError: evt.layers is undefined..
... View more
12-23-2014
05:05 AM
|
0
|
4
|
1243
|
|
POST
|
OH crap, you're right.. I'll keep tinkering to find something that works.
... View more
12-22-2014
12:55 PM
|
0
|
0
|
1104
|
|
POST
|
It's the 'evt'. I'm trying a different route, leaving the attribute inspector on and toggle off different infoWindows. I can get the toggle to work but destroying an info window is proving odd. Appreciate your help, Sarah.
... View more
12-22-2014
12:38 PM
|
0
|
2
|
1104
|
|
POST
|
Hrrmmm... Little stumped where to go from here. I'm not sure I understand why it's all of the sudden not defined upon adding popupTemplate. Is there an internal 'click' event that goes on in the popupTemplate? I'm not having luck with arrayUtils either.
... View more
12-22-2014
12:17 PM
|
0
|
4
|
1104
|
|
POST
|
Now it's not liking this part... Is it an issue where my layers are added? var asdf = evt.layers[0].layer;
... View more
12-22-2014
11:47 AM
|
0
|
6
|
1104
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-25-2015 09:25 AM | |
| 1 | 08-26-2015 05:13 AM | |
| 1 | 08-27-2015 08:59 AM | |
| 1 | 04-13-2015 12:06 PM | |
| 1 | 02-03-2015 07:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-05-2023
04:48 PM
|