POST
|
Hello Narelle, Thanks for the response. I agree with your response but, does that mean the following statement in the help document is false. A step can load a dialog box prompting the user to enter an attribute. The entered attributes can be saved in variables to be used in subsequent steps. For example, a step would get an attribute from a task user and use it to calculate attribute fields in a subsequent step. Configure a step command—ArcGIS Pro | ArcGIS Desktop Then, how do I use these variables, other than to calculate the field value? Warm Regards, Thejus
... View more
02-12-2019
06:04 AM
|
0
|
3
|
1413
|
POST
|
Hello, ArcGIS Pro provides ability to create/store values in variables, within a Task Action (using Task Designer). I would like to know how these variables can be used? Also, are these variables accessible in a Custom Addin Command or Geoprocessing Tool? if yes, How or what objects expose them? Thanks in advance. Thejus
... View more
02-08-2019
10:18 AM
|
0
|
5
|
1603
|
POST
|
The error message is indicating that the Flayer variable is not initialized at the time the selectFeatures is called. You need ensure that the Flayer is initialized and or loaded on the the map before selecting features from it. I would suggest to move the selectFeatures code in ShowSelectedFeatures method and also call it after the layer is loaded/added to map event.
... View more
10-24-2017
01:39 PM
|
1
|
0
|
794
|
POST
|
Hello Evan, Were you able to resolve the issue? What configuration do have for "parcelInformation.LowParcelIdentification" in config.js? If my understanding is correct, there will be only one graphic added to the map for each LowParcelIdentification id, whereas the result will be for all the features returned from the query. Does your data has the same value for that field? ~ Thejus
... View more
09-28-2017
06:43 AM
|
2
|
0
|
1077
|
POST
|
I think you should be good. Untill recent, we were using ArcGIS Server 10.1 and the JS API was working fine. I think any 10.x server should be fine for 3.x version API.
... View more
09-25-2017
09:41 AM
|
1
|
0
|
311
|
POST
|
Hello Evan, It would be really helpful, if you could share some code and also let us know which version of the api you are using. 1) From what you are explaining, it looks like you might be using same variable to create new graphic before adding it to map. So, it might be updating the same graphic and only the last graphic is visible on the map. Please share some code. Regards, Thejus
... View more
09-19-2017
09:53 AM
|
0
|
2
|
1077
|
POST
|
jayanta.poddar, khutchins-esristaff any help or insight would be appreciated.
... View more
09-06-2017
02:37 PM
|
0
|
0
|
314
|
POST
|
Could anyone kindly let me know how I can create a new FeatureClass as output from the IGPParameter. I have a requirement where I need to output a feature class with geometries. They are calcuated based on input ids. The source for the data is not part of the Input parameters. From what I have looked into so far IGPParameter3 has a property for "Schema" which can be used to define a complete structure for the output. Below is the code I have in the ParameterInfo property. public IArray ParameterInfo
{
get
{
....
var targetFeatureClass = (IGPParameterEdit3)CreateParameter(
"TargetFeatureClass",
"Target Points FeatureClass",
esriGPParameterDirection.esriGPParameterDirectionOutput,
esriGPParameterType.esriGPParameterTypeRequired,
(IGPDataType)new DEFeatureClassTypeClass(),
new DEFeatureClassClass(),
true);
// Feature type, geometry type, and fields all come from the first dependent—the input features.
IGPFeatureSchema outSchema = new GPFeatureSchemaClass();
outSchema.FeatureType = esriFeatureType.esriFTSimple;
outSchema.GeometryType = ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPoint;
IFieldsEdit fieldsEdit = new FieldsClass();
IFieldEdit fieldEdit = new FieldClass();
fieldEdit.Name_2 = "ID2";
fieldEdit.Type_2 = esriFieldType.esriFieldTypeString;
fieldsEdit.AddField(fieldEdit);
// Add the additional field to the derived output.
IFields fields = fieldsEdit as IFields;
outSchema.AdditionalFields = fields;
targetFeatureClass.Schema = (IGPSchema)outSchema;
....
}
} Can anyone let me know who I can use the above information to create a new FeatureClass within the Execute method. There is no dependency and I cannot use clone method.
... View more
09-01-2017
08:22 AM
|
0
|
1
|
474
|
POST
|
The nom_commune seems to be in features itself have you tried to use { fieldName: 'nom_commune', label: 'Nom Commune', visible: true },
... View more
06-28-2017
09:17 AM
|
0
|
0
|
502
|
POST
|
Hello Malla, Please understand what you are writing or copying. When you are creating the instance of the graphic var graphic = Graphic(pt, symbol, data); You are passing the attribute informations into the graphics which is reterieved from looping through the variable "markers". for (i = 0; i < markers.length; i++) {
var data = markers[i]
... Now, that you have created a new variable "outfall" and looping through them to create new objects. for (i = 0; i < outfall.length; i++) {
var Info = outfall
... but you are still using the data from previous loop. you would need to use the correct object instances.
... View more
06-27-2017
11:36 AM
|
1
|
0
|
686
|
POST
|
You would need to use esri/graphicsUtils module and calucate the extent of map.graphics and then update the map.extent to the extent of all graphics.
... View more
06-22-2017
09:51 AM
|
1
|
0
|
1342
|
POST
|
Hello Malla, I have mentioned this in my earlier post. when adding the graphics add the "data" to attributes values that way each point will have its own data within it. Then when you are call the "setContent" use the value from the graphic attributes. Check the sample link I have sent again. Now data will contain the last attribute from the loop and it will show for all records. var graphic = Graphic(pt, green, data);
...
map.infoWindow.setContent(evt.graphicattributes.Facility);//it's a column name coming from sql,
... View more
06-22-2017
09:11 AM
|
1
|
2
|
1342
|
POST
|
Hello Malla, Check out this sample, especially from line 99 onwards. you may have to do something like that. Feature layer hover | ArcGIS API for JavaScript 3.20 Also, you would have to updated the attributes property while creating new graphics. var graphic = Graphic(pt, green, data);
... View more
06-21-2017
01:25 PM
|
1
|
6
|
1342
|
POST
|
I cannot write the whole application here, but can give you directions. select lat and long by click on map, and select radius 5,10, 15 miles - You have the part where you can click the map and get lat long, You would need UI where the user can select radius. then the button click event ->and data comes from sql is converted to json-> from json - this is tricker. Usually, I would have a REST service which will receive the response and return the JSON. But you have codebehid do this for you. So I am guessing The page will be a post request to the server. which will update the "var markers = JSON.parse('<%=ConvertDataTabletoString() %>');" value how to add circles on map - That is what I have shown you in my previous snippet. You would have to loop through all the markers and then create new Graphic for each of the record in the markers. I am not sure what the structure of the "markers" is. But say if it is an array of lat and long. You will have to do something like below. map.on("load", addQueryResult);
function addQueryResult(){
if(markers && markers.length > 0){
for(var i = 0; i < markers.length;i++){
var lat = markers[i].lat;
var long = markers[i].long;
var symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 10,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 1),
new Color([0,255,0,0.25]));
var pt = new Point(long, lat);
var graphic = new Graphic(pt, symbol);
// Adding the graphics to map, you could instead
// create a GraphicsLayer and add it to them
map.graphics.add(graphic);
}
}
}
... View more
06-20-2017
10:14 AM
|
0
|
0
|
1485
|
Title | Kudos | Posted |
---|---|---|
1 | 09-13-2016 06:27 AM | |
1 | 05-21-2015 08:06 AM | |
1 | 07-20-2015 09:33 AM | |
1 | 06-25-2015 08:53 AM | |
1 | 12-16-2015 05:43 AM |
Online Status |
Offline
|
Date Last Visited |
06-20-2024
10:14 PM
|