|
POST
|
I have a similar question to all of this. i have several table of contents that are grouped by types of data. The client wants a separate legend that they can open and see a list of layers that are checked in the other TOCs and be able to check the layers in the new TOC for identifying. Here is a screenshot of what i have so far: The bottom left is the new TOC that i want to just list visible layers that are turned on elsewhere. Thanks! p.s. i know its redundant but that's what they want!
... View more
02-18-2015
11:55 AM
|
0
|
0
|
2009
|
|
POST
|
p.s. not the last button but the one above the globe Icon Robert Kirkwood Wyoming Geographic Information Science Center University of Wyoming | Agriculture C, Rm 321 Phone: (307) 766-6281 | Cell: (307) 399-8094
... View more
01-29-2015
11:16 AM
|
0
|
0
|
890
|
|
POST
|
Kelly, If it would have been a snake it would have bit me! Sheesh. Thanks again. I think I get caught up in looking at too many examples instead of just looking at what I already have. Thanks again for your quick response. If you are interested in what I am doing here is a link to a draft. http://uwmaps.wygisc.org/WRDS/index.html# the very last button on the right bottom has some identify tools the last layer called PRISM data 30yr precipitation is the one I used with the charting. Thanks again! Robert Kirkwood Wyoming Geographic Information Science Center University of Wyoming | Agriculture C, Rm 321 Phone: (307) 766-6281 | Cell: (307) 399-8094
... View more
01-29-2015
11:14 AM
|
1
|
0
|
890
|
|
POST
|
Kelly, Hello. I was wondering can the mediaInfos that works with the PopupTemplate work with the infotemplate in the example you helped me with? like this example: http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=query_dojochart I would like to be able to insert a chart. Thanks
... View more
01-29-2015
09:42 AM
|
0
|
4
|
890
|
|
POST
|
Kelly, Thanks so much. This is perfect. once again you have help me get over a major frustrating wall!
... View more
01-23-2015
12:29 PM
|
0
|
0
|
1369
|
|
POST
|
Kelly, Quick question: Do i keep the identify tasks set up the way i have them and then use the promise?
... View more
01-23-2015
11:36 AM
|
0
|
7
|
1369
|
|
POST
|
Thanks. I will check out that example and let you know if i get it figured out. Thanks!
... View more
01-23-2015
10:43 AM
|
0
|
0
|
1369
|
|
POST
|
Kelly, I am using the deferred method for identify task. i have two services i would like to create tasks for and use info templates for each sub layer. The problem i am having is that it will only identify the last service in the code. in my main application it will identify the 1st layer i turn on that is in the first service. however, when i turn on layers in the second service it will no longer identify layers in the first service. I created jsfiddle that is a simplified version of my application. Do you have any idea what i am doing wrong here? Also, I am using this method so i can identify grids/rasters... Edit fiddle - JSFiddle
... View more
01-23-2015
08:40 AM
|
0
|
10
|
1369
|
|
POST
|
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Editable FeatureLayer in Selection Only Mode with Attribute Inspector</title> <link rel="stylesheet" href="http://js.arcgis.com/3.11/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css"> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; } #mapDiv{ margin: 0; padding:0; } #detailPane{ height:20px; color:#570026; font-size:12pt; font-weight:600; overflow:hidden; } .dj_ie .infowindow .window .top .right .user .content { position: relative; } .dj_ie .simpleInfoWindow .content {position: relative;} .esriAttributeInspector {height:100px;} .esriAttributeInspector .atiLayerName {display:none;} .saveButton { padding-left:45px; margin:0px;width:16px; height:16px; } </style> <script src="http://js.arcgis.com/3.11/"></script> <script> var map; var updateFeature; require([ "esri/map", "esri/layers/FeatureLayer", "esri/dijit/AttributeInspector", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/Color", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/config", "esri/tasks/query", "dojo/parser", "dojo/dom-construct", "dijit/form/Button", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function( Map, FeatureLayer, AttributeInspector, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol, Color, ArcGISDynamicMapServiceLayer, esriConfig, Query, parser, domConstruct, Button ) { parser.parse(); // refer to "Using the Proxy Page" for more information: https://developers.arcgis.com/javascript/jshelp/ags_proxy.html //esriConfig.defaults.io.proxyUrl = "/proxy/"; map = new Map("mapDiv", { basemap: "topo", center: [-107.646372, 43.433484], zoom: 7 }); map.on("layers-add-result", initSelectToolbar); var petroFieldsMSL = new ArcGISDynamicMapServiceLayer("https://wygiscservices-dev.wygisc.org/arcgis/rest/services/WyoBio/WyoBioMobile/MapServer"); petroFieldsMSL.setDisableClientCaching(true); map.addLayer(petroFieldsMSL); var petroFieldsFL = new FeatureLayer("https://wygiscservices-dev.wygisc.org/arcgis/rest/services/WyoBio/WyoBioMobile/FeatureServer/0", { mode: FeatureLayer.MODE_SELECTION, outFields: ["*"] }); var selectionSymbol = new SimpleFillSymbol( SimpleFillSymbol.STYLE_NULL, new SimpleLineSymbol( "solid", new Color("yellow"), 2 ), null ); petroFieldsFL.setSelectionSymbol(selectionSymbol); petroFieldsFL.on("edits-complete", function() { petroFieldsMSL.refresh(); }); map.addLayers([petroFieldsFL]); function initSelectToolbar(evt) { var petroFieldsFL = evt.layers[0].layer; 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(); }); var layerInfos = [ { 'featureLayer': petroFieldsFL, 'showAttachments': true, 'isEditable': true, 'fieldInfos': [ {'fieldName': 'HabDesc_', 'isEditable': true, 'tooltip': 'Current Status', 'label': 'Status:'}, {'fieldName': 'WeatherConditions_', 'isEditable': true, 'tooltip': 'The name of this oil field', 'label': 'Field Name:'} ] } ]; var attInspector = new AttributeInspector({ layerInfos: layerInfos }, domConstruct.create("div")); //add a save button next to the delete button var saveButton = new Button({ label: "Save", "class": "saveButton"}); domConstruct.place(saveButton.domNode, attInspector.deleteBtn.domNode, "after"); saveButton.on("click", function() { updateFeature.getLayer().applyEdits(null, [updateFeature], null); }); attInspector.on("attribute-change", function(evt) { //store the updates to apply when the save button is clicked updateFeature.attributes[evt.fieldName] = evt.fieldValue; }); attInspector.on("next", function(evt) { updateFeature = evt.feature; console.log("Next " + updateFeature.attributes.objectid); }); attInspector.on("delete", function(evt) { evt.feature.getLayer().applyEdits(null, null, [evt.feature]); map.infoWindow.hide(); }); map.infoWindow.setContent(attInspector.domNode); map.infoWindow.resize(350, 240); } }); </script> </head> <body class="claro"> <div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:false" style="width:100%;height:100%;"> <div id="detailPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'"> Click a field to display the attribute inspector with customized fields. </div> <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" id="mapDiv"></div> </div> </body> </html>
... View more
12-08-2014
06:20 AM
|
0
|
2
|
1217
|
|
POST
|
Kelly, I am not getting any errors. I thought i posted my code above but do not see it...I will try again.
... View more
12-08-2014
06:17 AM
|
0
|
0
|
1217
|
|
POST
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Editable FeatureLayer in Selection Only Mode with Attribute Inspector</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.11/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css">
<style>
html, body {
height: 100%; width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
#mapDiv{
margin: 0;
padding:0;
}
#detailPane{
height:20px;
color:#570026;
font-size:12pt;
font-weight:600;
overflow:hidden;
}
.dj_ie .infowindow .window .top .right .user .content { position: relative; }
.dj_ie .simpleInfoWindow .content {position: relative;}
.esriAttributeInspector {height:100px;}
.esriAttributeInspector .atiLayerName {display:none;}
.saveButton {
padding-left:45px;
margin:0px;width:16px; height:16px;
}
</style>
<script src="http://js.arcgis.com/3.11/"></script>
<script>
var map;
var updateFeature;
require([
"esri/map",
"esri/layers/FeatureLayer",
"esri/dijit/AttributeInspector",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"esri/Color",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/config",
"esri/tasks/query",
"dojo/parser",
"dojo/dom-construct",
"dijit/form/Button",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"
], function(
Map, FeatureLayer, AttributeInspector, SimpleMarkerSymbol,
SimpleLineSymbol, SimpleFillSymbol, Color,
ArcGISDynamicMapServiceLayer, esriConfig,
Query,
parser, domConstruct, Button
) {
parser.parse();
// refer to "Using the Proxy Page" for more information: https://developers.arcgis.com/javascript/jshelp/ags_proxy.html
//esriConfig.defaults.io.proxyUrl = "/proxy/";
map = new Map("mapDiv", {
basemap: "topo",
center: [-107.646372, 43.433484],
zoom: 7
});
map.on("layers-add-result", initSelectToolbar);
var petroFieldsMSL = new ArcGISDynamicMapServiceLayer("https://wygiscservices-dev.wygisc.org/arcgis/rest/services/WyoBio/WyoBioMobile/MapServer");
petroFieldsMSL.setDisableClientCaching(true);
map.addLayer(petroFieldsMSL);
var petroFieldsFL = new FeatureLayer("https://wygiscservices-dev.wygisc.org/arcgis/rest/services/WyoBio/WyoBioMobile/FeatureServer/0",
{
mode: FeatureLayer.MODE_SELECTION,
outFields: ["*"]
});
var selectionSymbol = new SimpleFillSymbol(
SimpleFillSymbol.STYLE_NULL,
new SimpleLineSymbol(
"solid",
new Color("yellow"),
2
),
null
);
petroFieldsFL.setSelectionSymbol(selectionSymbol);
petroFieldsFL.on("edits-complete", function() {
petroFieldsMSL.refresh();
});
map.addLayers([petroFieldsFL]);
function initSelectToolbar(evt) {
var petroFieldsFL = evt.layers[0].layer;
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();
});
var layerInfos = [
{
'featureLayer': petroFieldsFL,
'showAttachments': true,
'isEditable': true,
'fieldInfos': [
{'fieldName': 'HabDesc_', 'isEditable': true, 'tooltip': 'Current Status', 'label': 'Status:'},
{'fieldName': 'WeatherConditions_', 'isEditable': true, 'tooltip': 'The name of this oil field', 'label': 'Field Name:'}
]
}
];
var attInspector = new AttributeInspector({
layerInfos: layerInfos
}, domConstruct.create("div"));
//add a save button next to the delete button
var saveButton = new Button({ label: "Save", "class": "saveButton"});
domConstruct.place(saveButton.domNode, attInspector.deleteBtn.domNode, "after");
saveButton.on("click", function() {
updateFeature.getLayer().applyEdits(null, [updateFeature], null);
});
attInspector.on("attribute-change", function(evt) {
//store the updates to apply when the save button is clicked
updateFeature.attributes[evt.fieldName] = evt.fieldValue;
});
attInspector.on("next", function(evt) {
updateFeature = evt.feature;
console.log("Next " + updateFeature.attributes.objectid);
});
attInspector.on("delete", function(evt) {
evt.feature.getLayer().applyEdits(null, null, [evt.feature]);
map.infoWindow.hide();
});
map.infoWindow.setContent(attInspector.domNode);
map.infoWindow.resize(350, 240);
}
});
</script>
</head>
<body class="claro">
<div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:false" style="width:100%;height:100%;">
<div id="detailPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
Click a field to display the attribute inspector with customized fields.
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" id="mapDiv"></div>
</div>
</body>
</html>
... View more
12-05-2014
01:51 PM
|
0
|
5
|
2425
|
|
POST
|
Where do i find the domain tables using SQL Server Management Studio? I do not see them like i would a look-up table in the list of tables in the database.
... View more
11-26-2014
08:25 AM
|
0
|
1
|
890
|
|
POST
|
Russell, Thanks again for your help. I forwarded your answer to my team leader. We will try the upgrade and debug errors. Much appreciated!
... View more
11-24-2014
10:28 AM
|
0
|
0
|
1269
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2022 11:47 AM | |
| 1 | 06-28-2017 06:36 AM | |
| 1 | 06-23-2016 06:54 AM | |
| 1 | 03-19-2015 01:21 PM | |
| 1 | 07-20-2017 06:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-12-2025
07:31 AM
|