POST
|
I currently have a total count like this: query?f=json&9999=9999&returnCountOnly=true But is it possible to count the features with or without geometry? One or the other as I have the total count.
... View more
04-05-2021
11:59 PM
|
0
|
1
|
819
|
POST
|
Hi, The client is running server version 10.6, and I'm having some problem creating a JavaScript application. What version of the library is supported by 10.6? If I try to create a Feature Layer I get "request:server": "Cannot read property 'replace' of undefined" in my console
... View more
12-17-2019
12:35 AM
|
0
|
2
|
632
|
POST
|
Please have a look at this codepen: https://codepen.io/_lars_/pen/PoYZgQo I took a example and found some documentation about request options, request | ArcGIS API for JavaScript 4.12 Is it possible to add basic auth header to my request in this way?
... View more
08-14-2019
04:35 AM
|
0
|
1
|
1173
|
POST
|
My query: ../Mapserver/5/query?f=pjson&where="PROJECTNUMBER"="ABC123" Returns: { "error": { "code": -2147216086, "message": "Failed to execute query.", "details": [] } } The server is running version 10.31. My query was built by example from the docs (https://developers.arcgis.com/rest/services-reference/query-map-service-layer-.htm) and I've tried PROJECTNUMBER with and without the quotes. Am I missing something?
... View more
05-20-2019
05:17 AM
|
0
|
1
|
832
|
POST
|
Hello! I'm working with JS version 4.10 with a server on version 10.61 and I'm having some issues using MapImageLayer. I've made a small application with one MapImageLayer with three sublayers. If I have more then one of the sublayers visible it starts to output error messages. Having one or none sublayer visible works fine, but I need to have more than one sublayer visible. The error I'm getting is: service .../MapServer doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source Is this not supported by the server (v. 10.61) or did I do something wrong implementing MapImageLayer maybe? A feature I can turn on? var layer = {
name: "Work orders",
url: ".../MapServer",
subLayers: [
{
name: "Not planned",
visible: false,
searchDisplayField: "Title",
searchFields: ["Title"],
id: 0,
popupTemplate: workOrderPopupTemplate
},
{
name: "Planned",
visible: false,
searchDisplayField: "Title",
searchFields: ["Title"],
id: 1,
popupTemplate: workOrderPopupTemplate
},
{
name: "Finished",
visible: false,
searchDisplayField: "Title",
searchFields: ["Title"],
id: 2,
popupTemplate: workOrderPopupTemplate
}
] };
var mapImageLayer = new MapImageLayer({
url: layer.url,
title: layer.name,
sublayers: []
});
map.add(mapImageLayer);
for (var i in layer.subLayers) {
mapImageLayer.sublayers.add({
id: layer.subLayers[i].id,
visible: layer.subLayers[i].visible,
title: layer.subLayers[i].name,
popupTemplate: layer.subLayers[i].popupTemplate
});
};
... View more
03-25-2019
07:33 AM
|
0
|
2
|
2097
|
POST
|
What works: Start at 0, taking 1000 records: HTTPGET: MapServer/3/query?where=1=1&supportsPagination=true&resultOffset=0&resultRecordCount=1000&f=json&outSR=4326&outFields=* Returns 1000 elements. Start at 2, taking 1000 records: HTTPGET: MapServer/3/query?where=1=1&supportsPagination=true&resultOffset=2&resultRecordCount=1000&f=json&outSR=4326&outFields=* Returns 1000 elements. Start at 3, taking 10(!) records: HTTPGET: MapServer/3/query?where=1=1&supportsPagination=true&resultOffset=3&resultRecordCount=10&f=json&outSR=4326&outFields=* Returns 0 elements! At 0 and 2 offset, I get 1000 elements. But starting at offset 3 taking 10 elements I'm getting 0 elements. I don't understand this. Some help please.
... View more
02-15-2019
03:14 AM
|
0
|
0
|
325
|
POST
|
I've added some map locations by creating a Graphic and added it to the map. They all have attributes like Title and Description. var pointGraphic = new Graphic({
geometry: point,
symbol: markerSymbol,
attributes: {
Title: currentObj.title,
Description: currentObj.description
},
popupTemplate: graphicPopUpTemplate
});
view.graphics.add(pointGraphic);
Is it possible to add it as a search source?
... View more
01-04-2019
02:35 AM
|
0
|
1
|
274
|
POST
|
As I understand the documentation you could use RequestInterceptor for esriRequest, but how do I tie this to TileLayer? var sampleLayer = new TileLayer({ url: "https://tiles.arcgis.com/tiles/nGt4QxSblgDfeJn9/arcgis/rest/services/New_York_Housing_Density/MapServer" }); var map = new Map({ basemap: "streets", layers: [sampleLayer] }); var view = new MapView({ container: "viewDiv", map: map, zoom: 4, center: [15, 65] // longitude, latitude }); If sampleLayer were on a server requiring extra headers, for instance a set "apitoken", is that possible?
... View more
12-20-2018
02:27 AM
|
0
|
1
|
1491
|
POST
|
Is it possible to add extra headers to the JavaScript client? We having a client with their ArcGIS server located in their DMZ where they could open it up if I could add extra headers to the http requests that goes from the JavaScript application (running in Azure).
... View more
12-18-2018
06:40 AM
|
0
|
3
|
1963
|
POST
|
Is it possible that instead, or in addition to, of returning the spatial coordinates could return latitude and longitude? I got this simple result from my query { "objectIdFieldName": "OBJECTID", "globalIdFieldName": "", "hasZ": false, "geometryType": "esriGeometryPoint", "spatialReference": { "latestWkid": 32632, "wkid": 32632 }, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "ID" } ], "features": [ { "geometry": { "x": 283130.435, "y": 6571673.844 }, "attributes": { "OBJECTID": 4294824 } },
... View more
10-26-2018
01:46 AM
|
0
|
2
|
1741
|
POST
|
Is there a way to add an event on a popup open event? I want, based on its target, to perform a AJAX call and retrieve more data to populate the content field from a third party system. Popup only has the "trigger-action" event that handles action within the popup.
... View more
12-20-2017
02:33 AM
|
0
|
3
|
8713
|
POST
|
From what I can gather FeatureLayer does not support sub layers. Why not? The workaround is implementing the layer as a MapImage layer, I can still add a popup on it. But now I lost search! The search widget only supports FeatureLayer and this Locator thingy. Its a bigger workaround implementing this as a MapImageLayer, for making it hold a lot of data as if were a FeatureLayer to be able to set up the search source.
... View more
11-29-2017
03:46 AM
|
0
|
2
|
300
|
POST
|
How can I get the SceneView size in kilometers? I guess it would be based on the current zoom and the actual pixel size of the container, but have anyone done this?
... View more
09-05-2017
04:13 AM
|
0
|
1
|
502
|
Title | Kudos | Posted |
---|---|---|
2 | 09-01-2017 01:01 AM | |
6 | 09-01-2017 05:46 AM |
Online Status |
Offline
|
Date Last Visited |
04-07-2021
02:13 AM
|