POST
|
What error handling can I implement to catch this error (or bug)? The error happens when the first point is added to the map and no measurement is made other than double click on top of the first point. Once this error happens the area measure tool completely fails to work without reloading the page. Uncaught TypeError: Cannot read property 'measurement' of null at d._updateGraphics (AreaMeasurement2DTool.js:20) at d._updateSketch (AreaMeasurement2DTool.js:19) at AreaMeasurement2DTool.js:16 at ?ver=4.16:515 at Array.forEach (<anonymous>) at c.emit (?ver=4.16:515) at d.emit (?ver=4.16:517) at d.n._updateCursor (Sketch.js:405) at Sketch.js:398 at a._callback (?ver=4.16:2113)
... View more
08-28-2020
12:47 PM
|
0
|
1
|
277
|
POST
|
I can switch to ImageryTileLayer, but using TileLayer in 4.16 definetly does not work. One of the errors it returns is "use ImageryTileLayer to open a tiled image service" This is one tile layer here. https://www.mymanatee.org/gisimg/rest/services/1940/AERIAL_1940_BW/ImageServer TileLayer yields type:"tile" ImageryTileLayer yields type:"imagery-tile"
... View more
07-15-2020
12:20 PM
|
0
|
2
|
711
|
POST
|
Is there change documentation for version 4.16 that might help me understand why upgrading from 4.15 requires esri/layers/ImageryTileLayer instead of esri/layers/TileLayer ? // TileLayer produces the error "Failed to create view for layer..." var tlay = new TileLayer({ url: layerUrl, title: year }); // changing to ImageryTileLayer solves the issue. var tlay = new ImageryTileLayer({ url: layerUrl, title: year });
... View more
07-15-2020
06:35 AM
|
0
|
5
|
816
|
POST
|
I don't have access, so getting this from admin. Is this the screen?
... View more
02-26-2020
09:54 AM
|
0
|
1
|
431
|
POST
|
When does an image generated from printing tools get deleted? https://some.gis.server/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_afa1f30c-5751-11ea-a358-005056b33833.png
... View more
02-26-2020
06:36 AM
|
0
|
3
|
486
|
POST
|
Thanks, Robert. I didn't know that. Can you give me an example for why I would need transparency?
... View more
02-14-2020
07:11 AM
|
0
|
1
|
685
|
POST
|
Thanks. Changing to PNG8 reduced the image size by 65% without any obvious change in quality. PNG8 117k PNG32 331k
... View more
02-14-2020
06:44 AM
|
1
|
3
|
685
|
POST
|
I'm generating and saving them. The diskspace it's costing us could be halved if the average image size was 150k.
... View more
02-13-2020
01:34 PM
|
0
|
0
|
685
|
POST
|
I am using Execute Task (Export Web Map Task) to export an image. js is 4.12. If format is PNG32, the file size is 378k which is rather large for a 400x400 image at 96 dpi. The file size should be closer to 140k. I tried switching to JPG which took the size down to 317k. If I include compressionQuality to operationalLayers there is no change in size. How do I get the image size smaller? This is a sample request {"mapOptions":{"showAttribution":false,"extent":{"xmin":479389.87880438194,"ymin":1159369.4997793399,"xmax":479840.91235113516,"ymax":1159594.2281684615,"spatialReference":{"wkid":102659}},"spatialReference":{"wkid":102659},"rotation":0},"operationalLayers":[{"opacity":1,"minScale":0,"maxScale":0,"format":"jpg","compressionQuality":50,"url":"https://www.mymanatee.org/arcgis01/rest/services/basemap/aerials/MapServer"},{"opacity":1,"minScale":0,"maxScale":0,"url":"https://gis.manateepao.com/arcgis/rest/services/Website/WebLayers/MapServer"},{"opacity":1,"minScale":0,"maxScale":0,"url":"https://gis.manateepao.com/arcgis/rest/services/Website/WebLayers/MapServer","layers":[{"id":1,"layerDefinition":{"drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSFS","style":"esriSFSNull","outline":{"type":"esriSLS","style":"esriSLSSolid","color":[66,244,206],"width":3}}}},"source":{"type":"mapLayer","mapLayerId":1},"definitionExpression":"PARID='1014100000'"}}]}],"exportOptions":{"outputSize":[400,400],"dpi":96}}
... View more
02-13-2020
09:09 AM
|
0
|
7
|
766
|
POST
|
How would I get a json result of just the mapName field of a layer using a request? let url = `https://secure.sjrwmd.com/arcgis01/rest/services/SRWMD/CUP_SRWMD_forArcMap/MapServer?f=pjson`; request(url) I only want the mapName field. { "currentVersion": 10.61, "serviceDescription": "Published for SRWMD staff who require view/select on the complete feature class, without requiring Oracle client/DB direct connection.", "mapName": "Layers", "description": "", "copyrightText": "REST Feature Service published by St Johns River Water Management District (SJRWMD), other agencies where applicable.", "supportsDynamicLayers": false, "layers": [ { etc.
... View more
01-16-2020
10:29 AM
|
0
|
0
|
285
|
POST
|
I see. Thanks for your response. I was hoping to use the out field as a callback to my request within a parallel process to manage query results. I was able to handle this in my js using an await\async.
... View more
01-16-2020
08:20 AM
|
0
|
0
|
588
|
POST
|
I need an additional field returned using map server query form, but specifying both an out field and the Return Extents Only option to true results in just the extent returned.
... View more
01-16-2020
07:33 AM
|
0
|
2
|
665
|
POST
|
Can I set the Output_File file name when doing an export? var params = { httpMethod: 'POST', Web_Map_as_JSON: Web_Map_as_JSON, Format: 'PNG32', Layout_Template: 'MAP_ONLY', f: 'json' }; Scheme Parameter: Output_File Data Type: GPDataFile Display Name Output_File Description: The output file name. The extension of the file depends on the Format parameter. Direction: esriGPParameterDirectionOutput Default Value: Parameter Type: esriGPParameterTypeRequired Category:
... View more
01-13-2020
02:23 PM
|
0
|
0
|
213
|
POST
|
I have a custom popup for when a map is not available in ArcGIS. Each time the map is loaded in this situation, the popup opens. The popup is closed on popup.watch("visible", function (newVal). As part of the customization, I am removing the popup pointer class since there is nothing to point at. I handle this by adding a class "map-not-found-popup" and look for it in the watched event. The trouble I am having is that each time the popup opens, a new user storage is added. How do I stop or clear it? popup.watch("visible", function (newVal) { var nomap = $('.map-not-found-popup'); if(newVal) { // open // remove popup pointer if map not found if(nomap && nomap.length>0) { $('.esri-popup__pointer').addClass('d-none'); } // other handling closeExpandedWidgets(); } else { // closed // remove popup from dom when closed if(nomap && nomap.length>0) { popup.clear(); } // reset popup properties setPopupDefaultProperties(); } }); // end popup.watch
... View more
12-06-2019
02:58 PM
|
0
|
0
|
416
|
POST
|
Thanks. Setting the initial long\lat to specific location when a featureset is not found is working out for me. var view = new MapView({ map: map, center: [-82.414233, 27.491344]
... View more
12-06-2019
10:42 AM
|
0
|
0
|
294
|
Title | Kudos | Posted |
---|---|---|
1 | 03-18-2024 08:18 AM | |
1 | 01-08-2024 07:24 AM | |
3 | 12-30-2022 11:36 AM | |
1 | 03-13-2023 07:40 AM | |
1 | 02-21-2023 10:25 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|