|
POST
|
Did you use that name before? Try re-publishing with a brand new name. It seems that the ArcGIS Pro is not ready for geoprocessing services. Currently (2.5) you cannot overwrite or delete a geoprocessing service. I created a geo service, and then I deleted it in ArcMap (the only way you can do it). Then I tried to republish it, but I got the "staging error". When I used a new name, the geo service was published with no issues, no "staging failed". Hopes it helps.
... View more
03-30-2020
12:56 PM
|
8
|
3
|
7263
|
|
POST
|
THank you. Actually, I had to re-think the process and remove the promises. Since I was using a sync geoprocessing opeation which is already a deferred action, I didn't the need the promise. It is a lot simpler to catch errors.
... View more
01-28-2020
01:09 PM
|
0
|
0
|
1484
|
|
POST
|
I'm running a loop of geoprocessing tasks and save them in an array promisesSeg.push(this.gpSegment_from_PM.execute(params_segment)); When all geoprocessing tasks are completed then it continue on... Promise.all(promisesSeg).then(function (results) {
-------
--------- However, if one set of params lead to a geoprocessing error, it creates an error and terminates further processing. Is there a way to by-pass the error and continue on with the rest of the sets of params? Hope it makes sense.
... View more
01-23-2020
02:42 PM
|
0
|
2
|
1564
|
|
POST
|
Thanks. Robert. Yes, there were the wrong case. But it seems that it was not the only issue, since I still don't get the results. I just used the Demo widget to test this code. define(['dojo/_base/declare', 'jimu/BaseWidget',
"esri/layers/FeatureLayer", 'esri/graphic', "esri/InfoTemplate", 'esri/geometry/Point', 'esri/renderers/SimpleRenderer', "esri/symbols/PictureMarkerSymbol"
],
function (declare, BaseWidget, FeatureLayer, Graphic, InfoTemplate, Point, SimpleRenderer, PictureMarkerSymbol) {
//To create a widget, you need to derive from BaseWidget.
return declare([BaseWidget], {
// DemoWidget code goes here
//please note that this property is be set by the framework when widget is loaded.
//templateString: template,
baseClass: 'jimu-widget-demo',
postCreate: function () {
this.inherited(arguments);
console.log('postCreate');
},
startup: function () {
this.inherited(arguments);
this.mapIdNode.innerHTML = 'map id:' + this.map.id;
console.log('startup');
symbolPinstart = new PictureMarkerSymbol('http://static.arcgis.com/images/Symbols/Animated/ConstantGreenStrobeMarkerSymbol.png', 40, 40);
var layerDefinitionPts = {
"geometryType": "esriGeometryPoint",
"fields": [{
name: "ObjectID",
type: "esriFieldTypeOID"
},
{
"name": "Field1",
"type": "esriFieldTypeString"
},
{
"name": "Field2",
"type": "esriFieldTypeString"
}
]
}
var featureCollection = {
layerDefinition: layerDefinitionPts,
featureSet: null
};
renderer = new SimpleRenderer(symbolPinstart);
fLayer = new FeatureLayer(featureCollection, {
id: "Test Layer",
infoTemplate: infoTemplate
})
fLayer.setRenderer(renderer);
var infoTemplate = new InfoTemplate();
var point1 = new Point(-118.852, 34.350);
thegraphic = new Graphic(point1);
infoTemplate.setContent("My graphic")
infoTemplate.setTitle("The Graphic")
thegraphic.setInfoTemplate(infoTemplate)
thegraphic.setAttributes({
"ObjectID": 1,
"Field1": 999999,
"Field2": 'LA'
})
fLayer.add(thegraphic);
this.map.addLayer(fLayer)
},
onOpen: function () {
console.log('onOpen');
},
onClose: function () {
console.log('onClose');
},
onMinimize: function () {
console.log('onMinimize');
},
onMaximize: function () {
console.log('onMaximize');
},
onSignIn: function (credential) {
/* jshint unused:false*/
console.log('onSignIn');
},
onSignOut: function () {
console.log('onSignOut');
},
showVertexCount: function (count) {
this.vertexCount.innerHTML = 'The vertex count is: ' + count;
}
});
});
... View more
01-10-2020
01:35 PM
|
0
|
2
|
1208
|
|
POST
|
I have this very simple script to define a single pt, and create a feature layer. The featurelayer is displayed on the map and it is listed under the layer list. The infotemplate works too. But the AT just displays the field names but not the values. I know it is something very simple to fix, but I need a fresh pair of eyes to take a look to see what I am missing. THanks. var layerDefinitionPts = {
"geometryType": "esriGeometryPoint",
"fields": [{
name: "ObjectID",
type: "esriFieldTypeOID"
},
{
"name": "Field1",
"type": "esriFieldTypeString"
},
{
"name": "Field2",
"type": "esriFieldTypeString"
}
]
}
var featureCollection = {
layerDefinition: layerDefinitionPts,
featureSet: null
};
renderer = new SimpleRenderer(symbolPinstart);
fLayer = new FeatureLayer(featureCollection, {
id: "Test Layer",
infoTemplate: infoTemplate
})
fLayer.setRenderer(renderer);
var infoTemplate = new InfoTemplate();
var point1 = new Point(-118.852, 34.350);
thegraphic = new Graphic(point1);
infoTemplate.setContent("My graphic")
infoTemplate.setTitle("The Graphic")
thegraphic.setInfoTemplate(infoTemplate)
thegraphic.setAttributes({
"ObjectID": 1,
"field1": 999999,
"field2": 'LA'
})
fLayer.add(thegraphic);
this.map.addLayer(fLayer)
},
... View more
01-10-2020
11:14 AM
|
0
|
4
|
1272
|
|
DOC
|
ok. It seems that one way is to create a global (window) variable when the search is clicked.
... View more
12-02-2019
09:24 AM
|
1
|
0
|
21534
|
|
DOC
|
Hi Robert. Is there way to know which action initiated the popup widget? How do we know how the popup widget was called, by a click on a feature on the map, or by a choosing a selection on the search widget? this.own(on(this.popup, "selection-change", lang.hitch(this, function (evt) {
this.selectedFeature = evt.target.getSelectedFeature(); Thank you.
... View more
12-02-2019
08:53 AM
|
0
|
0
|
21534
|
|
POST
|
George, basically you can use the default print layout templates that are on your server and reformat them (add/remove text boxes, change logo...) and save them with another name and republish them. Or create one from the scratch. See this video around the 27th minute and on... Enabling High-Quality Printing in Web Applications - YouTube or see this example (scroll down to the example heading). I know this is Silverlight API but the steps 1 and 2 are the same and that's only what you need. example
... View more
11-19-2019
02:04 PM
|
2
|
0
|
1838
|
|
DOC
|
Thank you Robert. I already tried it. Yes, you are correct, it doesn't relate to the widget.
... View more
11-18-2019
01:48 PM
|
0
|
0
|
21534
|
|
DOC
|
There are actually two workflows. One is to click on the map and the popup widget appear with the info of the clicked point. The second workflow is to perform a query which results plotting a point on the map. Then another click on the drawn point to view the popup widget. I am trying to avoid the second click on the second workflow. After the query is completed to draw the point and display the popup at the same time. I tried the panel manager to open the widget but it was blank.
... View more
11-18-2019
01:29 PM
|
0
|
0
|
21534
|
|
POST
|
Just create a new print template and then publish it.
... View more
11-15-2019
02:55 PM
|
0
|
2
|
1838
|
|
DOC
|
Hello Robert. I have an app where point is plotted on the map and since I have set the map.infowindow , the ESRI popup would be displayed with info for that point. Since I implemented the popup panel widget, when a point is plotted, the popup panel is not displayed. It takes another click on the point to see the popup panel with the point info. I tried the panel manager but still the popup panel is not active. How do I eliminate the extra click. THanks.
... View more
11-13-2019
01:06 PM
|
0
|
0
|
21533
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | a month ago | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|