POST
|
Hey guys, I created an Editing Web Application using ArcGIS Server 10.0. The application basically lets the user draw lines on the roads. The only problem is there is no way to specify the length of the line before you draw it. I was wondering if there is a provision to do such thing, lets say I want to draw a line that is 200m, how can I specify the length before drawing the line? Oh and I am just using the normal web ADF.
... View more
02-18-2014
09:00 AM
|
0
|
0
|
1303
|
POST
|
Here is some code that will allow you to add the editor toolbar to the basic viewer. We are going to make this a configurable option in the future.Here's what you have to do. In layout.css add the following:
.esriDrawingToolbar{
position:absolute;
top:0px;
right:0px;
left:0px;
border:none !important;
margin-bottom:40px;
}
Then in layout.js replace the existing createEditor function with this one:
function createEditor() {
if (editorWidget) {
return;
}
if (editLayers.length > 0) {
var editLayerInfo = editLayers;
var templateLayers = dojo.map(editLayers, function (layer) {
return layer.featureLayer;
});
//add field infos if applicable - this will contain hints if defined in the popup. Also added logic to hide fields that have visible = false. The popup takes
//care of this for the info window but not for the edit window.
dojo.forEach(editLayerInfo, function (layer) {
if (layer.featureLayer && layer.featureLayer.infoTemplate && layer.featureLayer.infoTemplate.info && layer.featureLayer.infoTemplate.info.fieldInfos) {
//only display visible fields
var fields = layer.featureLayer.infoTemplate.info.fieldInfos;
var fieldInfos = [];
dojo.forEach(fields, function (field) {
if (field.visible) {
fieldInfos.push(field);
}
});
layer.fieldInfos = fieldInfos;
}
});
var editPanelHeight = dojo.style(dojo.byId("leftPane"), "height");
var templatePicker = new esri.dijit.editing.TemplatePicker({
featureLayers: templateLayers,
showTooltip: false,
rows: "auto",
columns: "auto",
style: "height:" + editPanelHeight + "px;width:" + (parseInt(configOptions.leftpanewidth) - 10) + "px;"
}, dojo.create("div",{},"editPanel"));
templatePicker.startup();
var params = {
map: map,
templatePicker:templatePicker,
layerInfos: editLayerInfo,
toolbarVisible: true
};
editorWidget = new esri.dijit.editing.Editor({settings: params}, dojo.create("div",{
id:"editDiv"
},"editPanel" ));
editorWidget.startup();
disablePopups();
}
}
Thank you so much.
... View more
01-17-2014
07:40 AM
|
0
|
0
|
459
|
POST
|
Although the basic template supports editing, there is no option to delete or select features you create. In the edit template you can select and delete but the problem is there is no measure tool in the edit template. So i wanted to combine the two so I can have editing capabilities from the edit template and then measure toolbar from the basic template. So does anyone have any solution or idea?
... View more
01-13-2014
05:29 AM
|
0
|
0
|
459
|
POST
|
The basic viewer template already supports editing. Is there something else that you like about the editor template that the Basic Viewer is missing? Although the basic template supports editing, there is no option to delete or select features you create. In the edit template you can select and delete but the problem is there is no measure tool in the edit template. So i wanted to combine the two so I can have editing capabilities from the edit template and then measure toolbar from the basic template.
... View more
01-10-2014
01:32 PM
|
0
|
0
|
459
|
POST
|
Hey Guys, I would like to combine two templates provided by ESRI. The basic template and the editor template. Does anyone know how do go about doing this and where do I start. Any guideline and direction will be greatly appreciated. Thanks.
... View more
01-10-2014
12:00 PM
|
0
|
6
|
2174
|
POST
|
Hello, I have a feature class that consists a raster field. There is a raster image for each record and there are about 500 records. The data came from field work. I would like to export the feature class on to ArcGIS online with the raster field present in the attributes so when i click on an individual point it can show the raster image in the pop up window. What is the best way to do that? and has anyone done this before?
... View more
01-08-2014
08:08 AM
|
0
|
3
|
1408
|
POST
|
Hello Everyone, I was wondering if anyone of you ever worked on predictive modelling for road maintenance. Right now I am just thinking about this and not sure how I will go about doing this. But here at the county we have gravel roads that need to be maintained annually. Some roads however are done every other year and then there are some that are graveled every 5 years. I was wondering if there is some way to automate this and create a predictive model. Any Ideas and feedback would be greatly appreciated. Thanks!
... View more
12-24-2013
10:08 AM
|
0
|
0
|
1196
|
POST
|
Great. Thank You! 🙂 Function FindLabel ( [HOUSE], [NUMBER] )
If IsNull( [HOUSE] ) then
Findlabel = [NUMBER]
Elseif IsNumeric( [HOUSE] ) then
Findlabel = [HOUSE] & [NUMBER]
Else
FindLabel = [NUMBER] & [HOUSE]
End if
End Function
... View more
07-26-2013
10:53 AM
|
0
|
0
|
424
|
POST
|
Ok here is another question. Lets say some of the HOUSE ID fields are empty, how would you modify the expression to say that if the HOUSE is empty/NULL use ACCESS NUMBER to label?
... View more
07-26-2013
09:52 AM
|
0
|
0
|
424
|
POST
|
Works great 🙂 Thank you very much! You can use this syntax
Function FindLabel ( [HOUSE], [NUMBER] )
if IsNumeric( [HOUSE] ) then
Findlabel = [HOUSE] & [NUMBER]
else
FindLabel = [NUMBER] & [HOUSE]
end if
End Function
... View more
07-26-2013
07:28 AM
|
0
|
0
|
424
|
POST
|
Hey Folks, I am working on a mapbook and need some assistance with labeling. For parcels in the subdivision I have Rural address shapefile to show the addresses. In the shapefile I have two main fields; HOUSE ID (String) and ACCESS NUMBER (String). Some of the House ID's are A, B, C while others have numbers, ACCESS field is all numbers. I want to append HOUSE ID and ACCESS NUMBER. However, here is what I want to do: if the House ID is Alphabetical then it should append after ACCESS NUMBER, if the HOUSE ID is Numeric then it should go before the ACCESS NUMBER. What would be the function in vbscript or python I would use? Any help would be greatly appreciated.
... View more
07-26-2013
07:04 AM
|
0
|
5
|
1133
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|