POST
|
well this a Geometric Network Tracing Request. I am getting Edges and Junctions which are in the Trace but it is not clear how many of those junctions are Fuses or Transformers? what I was hoping to get is getting the name of Feature like "displayFieldName":"Transformer", in above mentioned JSON in return
... View more
12-11-2017
10:07 AM
|
0
|
1
|
507
|
POST
|
Thanks Robert, but is't this for Fields? I mean what I need to get back is the name of Feature so I can say for example how many Fuses or Transformers been traced but how to set this in Display?
... View more
12-11-2017
09:53 AM
|
0
|
3
|
507
|
POST
|
Thanks for reply Reply Robert, but can you let me know how to set that value in the MapService? I mean is this configurable on the service?
... View more
12-08-2017
03:03 PM
|
0
|
5
|
507
|
POST
|
Can you please take a look at This Demo and let me know why I am not able to set up and enable Snapping on top of following feature Service? What I need is snapping to all features in mouse hover/over of each? var map;
require(["esri/map",
"esri/SnappingManager",
"esri/layers/FeatureLayer",
"dojo/keys",
"dojo/domReady!"
], function(Map, SnappingManager, FeatureLayer, keys) {
map = new Map("map", {
basemap: "topo",
center: [-88.158805, 41.786075],
zoom: 18
});
var propertyLayer = new FeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommunityAddressing/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
map.addLayers([propertyLayer]);
var snapManager = map.enableSnapping({
snapKey: keys.CTRL
});
var layerInfos = [{
layer: propertyLayer,
snapToVertex: true
}];
snapManager.setLayerInfos(layerInfos);
});
... View more
12-07-2017
11:26 PM
|
0
|
2
|
538
|
POST
|
I am using esri/request function to Solve a geometric Network and retrieve data from an ArcGIS server. This is the code which I am using require(["esri/request"], function(esriRequest) {
var params = {
f: "json"
};
params.outFields = agsConfig.outFields;
params.outSR = outSR;
params.maxTracedFeatures = agsConfig.maxTracedFeatures;
params.tolerance = agsConfig.tolerance;
params.flowElements = traceFlowElement;
//...
function solve(traceSolverType, params) {
esri.request({
url: url,
content: params,
callbackParamName: "callback",
load: function (result) {
if (result.hasError) {
console.log("Error Solve - description: ${errorDescription}");
} else {
var junctionsResultFeatures = result.junctions;
var json = JSON.stringify(junctionsResultFeatures);
console.log(json);
},
error: function (error) {
}
});
}
}); and the output in JSON out put is like below which as you can see the displayFieldName node is empty "". Can you please let me know what I am missing in the request params settings to get the displayFieldName ? [
{
"displayFieldName":"",
"fieldAliases":{
"OBJECTID":"OBJECTID"
},
"geometryType":"esriGeometryPoint",
"spatialReference":{
"wkid":4326,
"latestWkid":4326
},
"fields":[
{
"name":"OBJECTID",
"type":"esriFieldTypeOID",
"alias":"OBJECTID"
}
],
"features":[
{
"attributes":{
"OBJECTID":1101
},
"geometry":{
"x":-88.16815406499995,
"y":41.79624553800005
}
}
]
},
{
"displayFieldName":"",
"fieldAliases":{
"OBJECTID":"OBJECTID"
},
"geometryType":"esriGeometryPoint",
"spatialReference":{
"wkid":4326,
"latestWkid":4326
},
"fields":[
{
"name":"OBJECTID",
"type":"esriFieldTypeOID",
"alias":"OBJECTID"
}
],
"features":[
{
"attributes":{
"OBJECTID":1407
},
"geometry":{
"x":-88.16725130299994,
"y":41.796718816000066
}
},
{
"attributes":{
"OBJECTID":1413
},
"geometry":{
"x":-88.16639792099994,
"y":41.79674986500004
}
},
{
"attributes":{
"OBJECTID":1414
},
"geometry":{
"x":-88.16511888299999,
"y":41.79660011900006
}
}
]
}
]
... View more
12-05-2017
09:03 AM
|
0
|
7
|
687
|
POST
|
I am getting error on this Uncaught TypeError: Cannot read property 'wkid' of undefined
... View more
11-30-2017
11:36 AM
|
0
|
9
|
428
|
POST
|
Renderer is Ok I test it with hard coding the graphic and adding a Point like DD is working var point = new Point(-88.1681599642482, 41.796253348566786);
var pointGraphic = new esri.Graphic(point);
graphicsLayerTraceNetworkJunctions.add(pointGraphic); But same point in Meter Unit not displaying on the map var point = new Point(-9814834.6714, 5130507.876800001);
var pointGraphic = new esri.Graphic(point);
graphicsLayerTraceNetworkJunctions.add(pointGraphic); and as you can see I am getting all point in Meter! Hoe can I check Map SpatialReference?
... View more
11-30-2017
11:11 AM
|
0
|
11
|
420
|
POST
|
Ok Here is a better answer: Hard- coding and adding a Point like DD is working var point = new Point(-88.1681599642482, 41.796253348566786);
var pointGraphic = new esri.Graphic(point);
graphicsLayerTraceNetworkJunctions.add(pointGraphic); But same point in Meter Unit not displaying on the map var point = new Point(-9814834.6714, 5130507.876800001);
var pointGraphic = new esri.Graphic(point);
graphicsLayerTraceNetworkJunctions.add(pointGraphic); and as you can see I am getting all point in Meter!
... View more
11-30-2017
11:00 AM
|
0
|
0
|
382
|
POST
|
Well I thought I need to change the Meter unit to DD to be able to add the graphics on the graphicsLayerTraceNetworkJunctions layer
... View more
11-30-2017
10:55 AM
|
0
|
15
|
420
|
Title | Kudos | Posted |
---|---|---|
1 | 07-25-2017 08:32 AM | |
1 | 07-04-2017 01:47 PM | |
1 | 08-15-2017 02:44 PM | |
1 | 05-19-2017 02:36 PM | |
1 | 02-09-2017 12:37 PM |
Online Status |
Offline
|
Date Last Visited |
12-31-2020
08:22 PM
|