POST
|
I need to upload file to Geoprocessing service and then get ItemID of uploaded file. As i use ArcGis JS Api 4.7 my code is following : let formdata = new FormData(); formdata.append("file", filedata); let url = 'https://server/gis/rest/services/utils/ExcelToTable/GPServer/uploads/upload'; let options: __esri.requestEsriRequestOptions = { body: formdata, callbackParamName: 'callback', responseType: 'json' }; esriRequest(url, options).then(function (result) { // The requested data var geoJson = result.data; //let itemID = result["item"].itemID }); It works fine. It uploads file and returns result. But result is html, not json. Once i set responseType: 'json' , it causes error "Unexpected token < in JSON at position 0" So question is how to get json result or any way to get ItemID of uploaded file Thanks
... View more
06-01-2018
01:34 AM
|
0
|
0
|
720
|
POST
|
may there is way to create my own resources. as esri does not support ukrainian language, i would create it.
... View more
04-13-2018
12:32 AM
|
0
|
0
|
421
|
POST
|
It would be great to get any help on this. thank you
... View more
04-12-2018
09:01 AM
|
0
|
0
|
1204
|
POST
|
unfortunately it does not work. i can not translate any text. not sure how to do this in right way. It loads libraries , but when i change any text it does not affect on labels of widget
... View more
04-12-2018
01:35 AM
|
0
|
6
|
1204
|
POST
|
common library does not help. there is no resources of widgets etc
... View more
04-11-2018
06:30 AM
|
0
|
11
|
1204
|
POST
|
in java script 3.* there was library "dojo/i18n!esri/nls/jsapi" require(["esri/map", "dojo/i18n!esri/nls/jsapi", "dojo/domReady!"],
function(Map, bundle) {
bundle.widgets.legend.NLS_noLegend = "My No Legend";
}
); But it looks that "dojo/i18n!esri/nls/jsapi" is missed in js 4.6. So i can not translate any text. Is there any other way to localize resources ?
... View more
04-11-2018
01:07 AM
|
0
|
13
|
2453
|
POST
|
i am trying to call function FeatureLayerView.highlight() on MapView, but it is not working. However, if i use SceneView it works fine. Possible issue is WebGL, Known Limitations In 2D MapViews this method is only supported for FeatureLayers that have opted in to WebGL rendering. Attached file is simple example of code. But it is not working . It looks that WebGL is not working on latest version of ArcGis Server 10.6 . Does anyone know why ?
... View more
02-27-2018
07:42 AM
|
0
|
3
|
956
|
POST
|
I am not sure that symbolPreview is what i need. All that i need is to highlight some layer with animation. For that i use "graphicFlash.getDojoShape()" because then i pass this to dojoFx; Let me show some part of my code. let rLayer = this.sharedService.map.getLayer(x); let items: any[] = rLayer.graphics;//.filter(x => this.sharedService.map.extent.intersects(x._extent)); items.forEach(graphicHighlight => { let graphicFlash; switch (graphicHighlight.geometry.type) { case "point": case "esriGeometryMultipoint": .................. case "multipoint": ............................ case "polyline": ....................................... case "polygon": case "extent": var symbolFlashPolygon = new this.SimpleFillSymbol(this.SimpleFillSymbol.STYLE_SOLID, new this.SimpleLineSymbol(this.SimpleLineSymbol.STYLE_SOLID, new this.mapLayerService.Color([255, 0, 0]), 2), new this.mapLayerService.Color([255, 0, 0, 0.25])); _extent = graphicHighlight.geometry.getExtent(); graphicFlash = new this.Graphic(graphicHighlight.geometry, symbolFlashPolygon); break; } if (this.sharedService.map.extent.intersects(_extent)) { this.sharedService.map.graphics.add(graphicFlash); let shape = graphicFlash.getDojoShape(); if (shape != null) { let animStroke = this.dojoFx.animateStroke({ shape: shape, duration: 10000, color: { end: new this.mapLayerService.Color([0, 0, 0, 0]) } }); var animFill: any; if (isLine) { animFill = this.dojoFx.animateTransform({ shape: shape, duration: 1000, color: { end: new this.mapLayerService.Color([0, 0, 0, 0]) } // color: { start: "red", end: color } }); } else { animFill = this.dojoFx.animateFill({ shape: shape, duration: 1000, color: { end: new this.mapLayerService.Color([0, 0, 0, 0]) } //color: { start: "red", end: color } }); } var anim = this.coreFx.combine([animStroke, animFill]).play(); this.aspect.after(anim, "onEnd", function () { self.sharedService.map.graphics.remove(graphicFlash); }); } } });
... View more
02-01-2018
12:22 AM
|
0
|
1
|
639
|
POST
|
Yes, i seen that. But i used this function, and now i am not sure how to change my code to get it working .
... View more
01-31-2018
07:44 AM
|
0
|
3
|
639
|
POST
|
function Graphic.getDojoShape() works fine in js api 3. but it does not work in 4.6 . Is there any way to solve this issue?
... View more
01-31-2018
02:15 AM
|
0
|
6
|
1044
|
POST
|
Hi all. I have some issue with loading Image Layer. I created mosaic dataset and published it as Image Service on ArcGis Server. Then i connect to this service from web-client. Below is java script that i use : map = new Map("map", { basemap: "topo", center: [26.4171, 49.8400], zoom: 17 }); var params = new ImageServiceParameters(); params.noData = 0; params.compressionQuality=50; var imageServiceLayer100 = new ArcGISImageServiceLayer("http://server.com/arcgis/rest/services/MosaicDatasetEx/ImageServer?token=" + tokenvalue, { imageServiceParameters: params, disableClientCaching: false }); map.addLayers([ imageServiceLayer100]); It is standard example. But it works with some delay wich is from 1-2 sec and more. It loads images every time i change the map in web browser, scale or position. Even if images are getting from local cache. And then it renders all images in one time. So it causes delay. Is there any way to improve this ?May to load images asynchronously ? But not sure how Many thanks for any solution
... View more
08-14-2017
07:42 AM
|
0
|
0
|
355
|
POST
|
Thanks for help. I thought so, but i was not sure . So the only way is to use Image Server
... View more
08-03-2017
07:37 AM
|
0
|
2
|
1141
|
POST
|
Hi All. I have some problem with publishin Image Service to ArcGis Server. I created raster dataset ( into file geodatabse) . I added 14 files *.tiff . Averange size of each file is around 1.5 GB. Then i am trying to publish this raster dataset as Image Service on Enterprise GisServer. But can not do it, because i get errors. Code of errors are 001279, 000260. I tried to follow solutions from helps, but it it does not work. So question, is it possible to solve my problem without Image Server? because my understanding is it should work if i use mosaic dataset wich is working only with ArcGis Image Server. Thanks for any help.
... View more
08-03-2017
07:17 AM
|
1
|
6
|
2397
|
Title | Kudos | Posted |
---|---|---|
1 | 08-03-2017 07:17 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|