|
POST
|
Hi Raviteja, Have look at this discussion, Select with feature layer using buffer and send selected features to a datagrid
... View more
09-15-2014
06:36 PM
|
1
|
2
|
1533
|
|
POST
|
Hi Adam, Yes, if you setup your shape file to have attributes similar to your Excel attributes you should be good. If you can't do that for any reason, then you can use field mapping as fourth parameter for append tool to map your Shape and excel attributes. ArcGIS Help 10.1 Netto's explanation is spot on.
... View more
09-15-2014
05:25 PM
|
0
|
0
|
1192
|
|
POST
|
Hi Alex, Glad it helped. No, you can still use bootstrap if you want, but you should hook the click event of your button after the popover is initialised, may be during show event. I'll try if i can hook these two events together, ll post back here if succeed in doing that. Closest to popover in dojo is dijit/TooltipDialog — The Dojo Toolkit - Reference Guide , if you want to explore this option.
... View more
09-15-2014
05:16 PM
|
0
|
7
|
1534
|
|
POST
|
Hi Alex, If it helps, this is my inference on why your button click event is not getting fired up. I still don't know how to get around this, but my view is you should not mix up two frameworks, at least at element level.
$('.popover-markup>.trigger').popover({
html: true,
title: function () {
return $(this).parent().find('.head').html();
},
content: function () {
return $(this).parent().find('.content').html();
},
container: 'body',
placement: 'bottom'
});
Above popover function is reading the content element (below) and attaching it to popover node created by bootstrap. As part of this process it's deleting the InsertNewLayer button from dom and inserting it back into the dom, Your button click event is attached from dojo before this process occurs and is not actually available when you click the button.
<div class="content hide">
<div class="form-group">
<input id="NewLayerURL" size="110" type="text" class="form-control" value="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"/>
</div>
<button id="InsertNewLayer" disabled="disabled" class="btn btn-default btn-block">Add...</button>
</div>
As a test try replacing above node with below. This creates two InsertNewLayer button, click the larger one, it fires your click event.
<div class="content">
<div class="form-group">
<input id="NewLayerURL" size="110" type="text" class="form-control" value="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"/>
</div>
<button id="InsertNewLayer" disabled="disabled" class="btn btn-default btn-block" style="z-index:100000; position: absolute; top: 20px; left: 0px;">Add...</button>
</div>
... View more
09-14-2014
10:09 PM
|
0
|
9
|
1534
|
|
POST
|
Hi Work, Yes you have to set selection symbol. featureLayer.setSelectionSymbol(symbol); Check out this sample. Select with Feature Layer | ArcGIS API for JavaScript
... View more
09-14-2014
06:31 PM
|
0
|
0
|
674
|
|
POST
|
Hi Ia, Javascript is case sensitive. Your requires module name for esri/graphic is graphic but you are calling it as new Graphic in you code. Change the module name to Graphic. Also you are requiring the module esri/graphic multiple times not a good practice. Below is how your requires should be (formatted for my comfort)
require([
"esri/map","dijit/registry","esri/geometry/webMercatorUtils","esri/tasks/locator","esri/tasks/route","esri/utils",
"dojo/DeferredList","dgrid/Grid","dojo/ready","dojo/dom","dojo/mouse","dojo/dom-construct","dojo/query","esri/graphic",
"esri/geometry/Point","dgrid/Selection","dojo/store/Memory","dojo/_base/array","dgrid/Keyboard","dgrid/List","dojo/dom-style",
"dijit/registry","esri/tasks/query","esri/Color","esri/symbols/SimpleMarkerSymbol","esri/InfoTemplate","dojo/_base/Color",
"esri/renderers/SimpleRenderer","esri/layers/FeatureLayer","esri/symbols/SimpleFillSymbol","esri/symbols/SimpleLineSymbol",
"esri/InfoTemplate","esri/tasks/QueryTask","dojo/_base/declare","dojo/number","dojo/on","dojo/parser",
"dijit/layout/BorderContainer","dijit/layout/ContentPane"
], function (
Map,registry,webMercatorUtils,locator,route,utils,
DeferredList,Grid,ready,dom,mouse,domConstruct,query,Graphic,
Point,Selection,Memory,array,Keyboard,List,domStyle,
registry,Query,Color,SimpleMarkerSymbol,InfoTemplate,Color1,
SimpleRenderer,FeatureLayer,SimpleFillSymbol,SimpleLineSymbol,
InfoTemplate,QueryTask,declare,dojoNum,on,parser,
BorderContainer,ContentPane
) {
... View more
09-14-2014
06:28 PM
|
1
|
2
|
1162
|
|
POST
|
Hi Ia, If your geometry is expected to points, add below lines after your myMap.centerAndZoom(resultFeatures[0].geometry, 7); myMap.infoWindow.setFeatures([resultFeatures[0]]); // Get first feature and add it into an array. myMap.infoWindow.show(resultFeatures[0].geometry); // Show info window at the location of your first feature. This should do the trick.
... View more
09-14-2014
06:13 PM
|
1
|
1
|
766
|
|
POST
|
HI Melissa, You can use intersect tool between your point layer and polygon layer with join attributes all. ArcGIS Help 10.1 This will get you a point feature class with both rate age and marginal range. You can then set quantity by category ArcGIS Desktop to get your symbology.
... View more
09-13-2014
05:18 AM
|
0
|
2
|
828
|
|
POST
|
Hi Ia, It is a scope issue, you are attaching onclick event directly to the dom node, when it is executed it'll be scoped to the document. But the actual implementation is within dojo ready function. When the actual call happens, your document won't even know the existence of zoomToSegment fucntion. What i have done in the attached document is, moved the zoomToSegment function to global scope and all local variables in dojo ready like map, directionFeatures etc. to global scope as well for use by zoomToSegment .
... View more
09-13-2014
04:40 AM
|
1
|
2
|
846
|
|
POST
|
Ok, it's difficult to say what exactly is happening, without seeing your code. Below are few pointers that might help. Provided the highlight is coming on hover, look for mouse-over event for map or feature layer. Most likely you may see something like map.graphics.add in the eventhandler, comment this line and the highlight should be gone.
... View more
09-12-2014
01:49 AM
|
0
|
2
|
2242
|
|
POST
|
Hi Filip, The property name is timeExtent, you are using just time. query-amd | API Reference | ArcGIS API for JavaScript
... View more
09-11-2014
10:01 PM
|
0
|
1
|
686
|
|
POST
|
Hi Work, I don't know your exact use case, but you can achieve this without extending measurement widget. Consider below Use Draw toolbar to capture user polygon. draw-amd | API Reference | ArcGIS API for JavaScript Get Visible layer Ids arcgisdynamicmapservicelayer-amd | API Reference | ArcGIS API for JavaScript Use Query for count in query task to get your count querytask-amd | API Reference | ArcGIS API for JavaScript
... View more
09-11-2014
09:37 PM
|
0
|
2
|
674
|
|
POST
|
Hi Peninah, "%Name%".replace("GP_Code",""), should have worked. The thick line between your name and calculate value tells me, you are passing Name as expression and placed the code in code block. You want to have your calculate value expression as shown in image below. Also note the doted line, it means having value for Name parameter is a precondition for Calculate Value to execute and is not passed as expression to the tool. Name parameter can be accessed across the model as %Name%, you don't have to pass it explicitly to the tool.
... View more
09-11-2014
09:06 PM
|
0
|
1
|
754
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-31-2014 06:04 AM | |
| 1 | 09-25-2014 06:03 PM | |
| 1 | 09-16-2014 06:15 PM | |
| 1 | 10-08-2014 03:50 AM | |
| 1 | 08-25-2014 08:33 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|