POST
|
Hi Dan, Yes that is exactly what I did. My code is below However, the issue is it only disables the text box where you see the parameter "COIBuffer::Draw_Input_Selection_Polygon" that is grayed out, but does not disable the portion which allows you to draw the polygon as shown below. And I dont see how to disable that because the text box and the portion which allows you to draw the polygon seem to be part of one parameter of type Feature Set
... View more
10-20-2015
04:48 PM
|
0
|
2
|
1075
|
POST
|
Hi Dan, Yes. A boolean parameter triggers the disabling. In the screenshot, when I check the "Buffer by selecting an existing feature" check box, I want the entire "Draw Input Selection Polygon" portion to be disabled. Right now, it does not disable the part which allows you to draw a polygon. It is almost like there are two parameters in the first parameter but only one of them disables. I hope this makes sense.
... View more
10-20-2015
03:21 PM
|
0
|
4
|
1075
|
POST
|
I am using tool validation to enable/disable parameters based on a boolean. One of the parameters I want to disable is a feature set. However, the input parameter disables but the actual interactive portion that allows you to draw a feature on the map is not disabled. How do I get that to disable as well?
... View more
10-19-2015
04:18 PM
|
0
|
7
|
3366
|
POST
|
That was it! I knew it was a simple tweak I was missing. Thanks Robert. You did it again
... View more
07-09-2015
12:55 PM
|
0
|
0
|
614
|
POST
|
This should be pretty simple but I know I am missing something. My custom DrawBox does not load on my widget. The widget just shows the loading icon I want to basically modify the DrawBox dijit to use in a custom widget. More specifically, all I want is to show just 3 drawing options. Point, Line and Polygon. I am testing this widget in the Demo Widgets app and my custom widget is in widgets/samplewidgets I copied DrawBox.html and DrawBox.js into MyWidget folder I have it all setup but the widget wont load. Here's my Widget.html <div>
<label>${nls.selectParcelsLabel}</label>
<br>
<!-- <div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='types:["point","polyline","polygon"],showClear:false' style="margin-top:5px;"></div> -->
<div data-dojo-attach-point="drawBox" data-dojo-type="widgets/samplewidgets/MyWidget/DrawBox" data-dojo-props='types:["point","polyline","polygon"],showClear:false' style="margin-top:5px;"></div>
<br>
<div class="jimu-btn clear-btn" data-dojo-attach-event="onclick:_onBtnClearClicked">${nls.clearButton}</div>
</div> And here's my Widget.js define(['dojo/_base/declare',
'dijit/_WidgetsInTemplateMixin',
'jimu/BaseWidget',
'jimu/utils',
'./DrawBox',
'jimu/dijit/ViewStack',
'esri/tasks/GeometryService',
'esri/config',
'esri/graphic',
'esri/graphicsUtils',
'esri/geometry/Point',
'esri/geometry/Polyline',
'esri/geometry/Polygon',
'esri/symbols/SimpleMarkerSymbol',
'esri/symbols/SimpleFillSymbol',
'esri/renderers/SimpleRenderer',
'esri/renderers/jsonUtils',
'esri/toolbars/draw',
'esri/request'],
function(declare, _WidgetsInTemplateMixin, BaseWidget, esriConfig,
utils, DrawBox, ViewStack, GeometryService, config, graphic, graphicsUtils,
Point, Polyline, Polygon, SimpleMarkerSymbol, SimpleFillSymbol, SimpleRenderer,
jsonUtils, draw, request, jimuUtils) {
//To create a widget, you need to derive from BaseWidget.
return declare([BaseWidget, _WidgetsInTemplateMixin], {
// Custom widget code goes here
baseClass: 'jimu-widget-mywidget',
//this property is set by the framework when widget is loaded.
name: 'MyWidget',
//methods to communication with app container:
postCreate: function() {
this.inherited(arguments);
this.drawBox.setMap(this.map);
},
onClose: function() {
this.drawBox.deactivate();
},
_onBtnClearClicked: function() {
this.drawBox.clear();
},
});
}); I modified DrawBox.html in the MyWidget folder like so. Basically commented out what I dont need <div style="position:relative;width:100%;">
<div class="draw-items">
<div title="${nls.point}" data-geotype="POINT" data-commontype="point" class="draw-item point-icon"></div>
<div title="${nls.line}" data-geotype="LINE" data-commontype="polyline" class="draw-item line-icon"></div>
<!-- <div title="${nls.polyline}" data-geotype="POLYLINE" data-commontype="polyline" class="draw-item polyline-icon"></div> -->
<!-- <div title="${nls.freehandPolyline}" data-geotype="FREEHAND_POLYLINE" data-commontype="polyline" class="draw-item freehand-polyline-icon"></div> -->
<!-- <div title="${nls.triangle}" data-geotype="TRIANGLE" data-commontype="polygon" class="draw-item triangle-icon"></div> -->
<!-- <div title="${nls.extent}" data-geotype="EXTENT" data-commontype="polygon" class="draw-item extent-icon"></div> -->
<!-- <div title="${nls.circle}" data-geotype="CIRCLE" data-commontype="polygon" class="draw-item circle-icon"></div> -->
<!-- <div title="${nls.ellipse}" data-geotype="ELLIPSE" data-commontype="polygon" class="draw-item ellipse-icon"></div> -->
<div title="${nls.polygon}" data-geotype="POLYGON" data-commontype="polygon" class="draw-item polygon-icon"></div>
<!-- <div title="${nls.freehandPolygon}" data-geotype="FREEHAND_POLYGON" data-commontype="polygon" class="draw-item freehand-polygon-icon"></div> -->
<!-- <div title="${nls.text}" data-geotype="POINT" data-commontype="text" class="draw-item text-icon" data-dojo-attach-point="textIcon"></div> -->
<span class="drawings-clear jimu-float-trailing" data-dojo-attach-point="btnClear">${nls.clear}</span>
</div>
</div> No changes were made to DrawBox.js Can someone help me why my DrawBox wont load? I am sure I am missing something. Thanks!
... View more
07-09-2015
11:35 AM
|
0
|
2
|
4893
|
POST
|
Never mind. Found out from Esri that this is by design...
... View more
06-30-2015
11:00 PM
|
0
|
4
|
347
|
POST
|
I created a model using ArcGIS Desktop 10.2.1 I opened the same model within ArcGIS Pro 1.1 Now, I can see the model in Pro but not in Desktop??? This happened with two models already!
... View more
06-05-2015
03:55 PM
|
0
|
5
|
3493
|
DOC
|
Thanks Tapas. I tried the above and per your document (which is great btw!) but still no luck...I'm sure I am missing something.
... View more
05-19-2015
02:02 PM
|
0
|
0
|
3173
|
DOC
|
Hi Robert Scheitlin, GISP, The search using a buffer does not seem to work when using the enhanced search widget. Everything else does. Can you give me some clues why? Please see attached.
... View more
05-15-2015
03:47 PM
|
0
|
0
|
3173
|
POST
|
Thanks Robert, I was struggling with that same file with no effect. I got what I wanted in the FoldableTheme/styles/black/style.css file
... View more
12-02-2014
11:29 PM
|
1
|
2
|
846
|
POST
|
So is there a way to change the header color of the Foldable Theme or do we have to develop a whole new theme?
... View more
11-27-2014
10:07 PM
|
0
|
5
|
5905
|
POST
|
In ArcMap you can use the Identify tool and Draw a rectangle to identify attributes of several features in a layer all at once. You also view features of multiple stacked layers. You could change options to switch between viewing Field Aliases vs Field Names in the identify dialog box Does ArcGIS Pro include any of this functionality? I am not seeing it. Thanks.
... View more
10-21-2014
03:32 PM
|
2
|
18
|
18935
|
POST
|
Thanks letting me know! There seems to be no update on that NIM and I'm guessing has not been fixed.
... View more
10-21-2014
03:23 PM
|
0
|
0
|
521
|
POST
|
Thanks Martin. I think that's exactly what I am seeing as well. The user has only CONNECT privileges but is able to create feat datasets and even domains. More than feat datasets I am not ok with such users being able to create domains. This causes issues when we want to maintain a standard schema throughout the org. Thanks for your reply!
... View more
10-02-2014
01:19 PM
|
0
|
0
|
521
|
POST
|
I have a non admin user account in SQL Server (database authentication) that has been configured to be read-only. However we are noticing that this user can create feature datasets and domains. The user account cannot however create feature classes. Can anyone suggest why this might be happening? Thanks.
... View more
08-20-2014
02:39 PM
|
0
|
5
|
1595
|
Title | Kudos | Posted |
---|---|---|
1 | 10-29-2015 11:23 AM | |
1 | 12-02-2014 11:29 PM | |
1 | 04-02-2020 10:03 PM | |
2 | 10-21-2014 03:32 PM |
Online Status |
Offline
|
Date Last Visited |
11-12-2020
10:11 AM
|