|
POST
|
Hi Marc, Try removing, async: true, I can simulate an error in ArcGIS API for JavaScript Sandbox by just adding async true.
... View more
09-19-2014
03:44 AM
|
0
|
2
|
996
|
|
POST
|
Hi Vikram, Have a look at Edit fiddle - JSFiddle , the issue is labelPlacement values mentioned in documentation is not correct or is not working. I have placed the values that should be used for labelPlacement in the fiddle. Looks like incorrect documentation. Esri Technical Support may want to have a look at it.
... View more
09-18-2014
08:34 AM
|
0
|
0
|
1528
|
|
POST
|
Hi Melissa, Apparently the colour of the symbol is primarily dictated by color schema and color ramp is just changing the intensity of the color. I can't find any good documentation from ESRI which explains this symbology's behaviour. And i can't figure out how to sort this out from arc map. Can you move this discussion to Mapping place or start a discussion at mapping. you may get better help there.
... View more
09-18-2014
06:03 AM
|
0
|
0
|
824
|
|
POST
|
Hi Alex, As mentioned by jonathan, the error is coming out because of the wrong module name definition. You map.addLayer is not scoped within the click event. Move this line map.addLayer(dynaLayer2); to before var h = map.on('layer-add-result', function(evt){
... View more
09-18-2014
05:40 AM
|
0
|
1
|
798
|
|
POST
|
Hi Vikram, setLayerDrawingOptions, accepts an array of LayerDrawingOptions arcgisdynamicmapservicelayer-amd | API Reference | ArcGIS API for JavaScript . Try changing as below, var options = []; options[<<Layer ID for which you want to assign the drawing option>>] = layerDrawingOptions; dynamicLayer.setLayerDrawingOptions(options, true); You may want to change true to false, to refresh the map.
... View more
09-17-2014
12:36 AM
|
0
|
2
|
1528
|
|
POST
|
Hi Raviteja, You need to use EnhancedGrid and enable printer plugin. I have updated the fiddle. Edit fiddle - JSFiddle For export to CSV you need server side file streaming to get the save dialog, refer to the discussion i referred for more detail.
... View more
09-16-2014
06:15 PM
|
1
|
0
|
1525
|
|
POST
|
Hi Alex, Glad it helped! Didn't quite get your question here.
... View more
09-16-2014
05:49 PM
|
0
|
4
|
798
|
|
POST
|
Hi Richard, I had one hell of a time trying to manipulate the default floatingpane close behaviour. Then finally ended up recreating the floating pane every time i required it. Here's an extract if it helps.
createMeasurement: function () {
console.log("Entered Method: " + arguments.callee.nom);
// On show move the top position by height of toolbar. This needs to be done if using API version 3.0 or above. and not needed for API 2.8 or below.
// Same has to be done for left position using contents pane width, if contents panel is left oriented.
this.deleteWidgetsRecursive("measurementPanel");
var holder = new dojo.create('div', {
id: 'measurementPanelHolder'
});
this._floatingContainer.containerNode.appendChild(holder);
this._measurementPanel = new dojox.layout.FloatingPane({
id: "measurementPanel",
title: "Measurement",
closable: true,
resizable: false,
dockable: false,
isLayoutContainer: true,
doLayout: true,
dockTo: this._dock,
style: 'top:25px;left:0px;width:210px;height:120px;z-index:101;'
}, dojo.byId('measurementPanelHolder')).placeAt(this._floatingContainer.containerNode, "last");
this._measurementPanel.containerNode.appendChild(new dojo.create('div', {
id: 'measurementDiv',
style: 'font-family: tahoma; font-size: medium;'
}
)
);
//dojo.connect(this._measurementPanel, "onShow", dojo.hitch(this, function () { this._measurementPanel.isVisible = true; }));
this._measurementWidget = new esri.dijit.Measurement({
map: this._map,
defaultAreaUnit: esri.Units.SQUARE_KILOMETERS,
defaultLengthUnit: esri.Units.KILOMETERS
}, dojo.byId("measurementDiv")).placeAt(this._measurementPanel.containerNode);
dojo.connect(this._measurementWidget.area, "onClick", dojo.hitch(this, function () {
this._map.setMapCursor('url(cursors/Measure_Area.cur), auto');
}));
dojo.connect(this._measurementWidget.distance, "onClick", dojo.hitch(this, function () {
this._map.setMapCursor('url(cursors/Measure_Distance.cur), auto');
}));
dojo.connect(this._measurementWidget.location, "onClick", dojo.hitch(this, function () {
this._map.setMapCursor('url(cursors/Measure_Point.cur), auto');
}));
dojo.connect(this._measurementWidget, "onMeasureEnd", dojo.hitch(this, function(activeTool,geometry){
if (activeTool === "location") {
this.setCursorToActiveTool();
}
}));
dojo.connect(this._measurementPanel.closeNode, "onclick", dojo.hitch(this, function(){
this.setCursorToActiveTool();
}));
this._measurementPanel.startup();
this._measurementWidget.startup();
},
... View more
09-16-2014
06:45 AM
|
0
|
0
|
2489
|
|
POST
|
One possible solution is linear referencing. Create a route feature class ArcGIS Help 10.1 from your reference shape file, use length as measure source. If you have a unique ID then use it as route id field, else use object id. Locate features along routes using the other shape file and route feature class, use a tolerance which account for your deviation. ArcGIS Help 10.1 Join the event table created with your original feature class on the unique field and route identifier field in event table.
... View more
09-16-2014
06:27 AM
|
1
|
0
|
1406
|
|
POST
|
Hi Omar, Confused a bit here, Have you got two shape files or two shape files and two tables? either way you can join or relate any number of shape files provided there is a common field across between the shape files.
... View more
09-16-2014
05:53 AM
|
1
|
2
|
939
|
|
POST
|
Hi Alex, Managed to hook up the events, refer attached (delete.html). Below is what i have done. Assigned a non-existent class insert-new-layer to the add button (just for accessing the buttons from dojo query) Created a hookClick event with global scope, query elements with class insert-new-layer (you'll get two, one actual element on dom and the other one created by bootstrap) and attaching click event to both. hook global hookClick function to bootstrap on popover show event
... View more
09-16-2014
03:17 AM
|
1
|
6
|
798
|
|
POST
|
Hi Michelle, If your highway center line is already a route feature class, then you'll need to locate features along route first to create a event table. ArcGIS Desktop Now you can create route event layer with your route feature class and event table. But since you have got your features as points, you may want to convert your point events to line events (start chainage and end chainage) to represent a section of road. Below logic will create a line event where the point chainage falls exactly in the middle. If this is an onetime exercise then using an excel would be easy. If this is an ongoing exercise then you may want to explore python. Start chainage = Previous point chainage + current chainage / 2, if no previous point then 0 End chainage = Next point chainage + current chainage / 2, if no next point then max chainage of route PS: Can you let me know what your use case is, Just curious to know why would you buffer your highway on volume.
... View more
09-15-2014
07:31 PM
|
0
|
2
|
1017
|
|
POST
|
Hi David, What you need is summary statistics ArcGIS Desktop . In Table: your dataset Out table: Specify a table to be created statistics_fields: Your contribution field, with statistics type sum Case Field: your state code column. You summary will come out grouped by state code in the output table.
... View more
09-15-2014
07:00 PM
|
1
|
1
|
871
|
| 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
|