|
POST
|
I'm hoping to rekindle this thread. Was there a solution for this? I'm having exactly the same issue whereby I want to extract the token itself, and none of the text either side of it in the response.
... View more
01-21-2021
02:05 AM
|
0
|
0
|
1684
|
|
POST
|
Hoping you can advise on this one @Anonymous User... I've started using Integromat to automate and grab the resulting json file and give me the specific attributes I am after (referenced at the bottom of the blog post). The only issue I'm encountering is that my feature service needs to be publicly shared for this to work. Is it possible to build into the Integromat scenario an authentication so that this can be achieved without needing to publicly share an editable feature service?
... View more
01-20-2021
12:54 AM
|
0
|
11
|
4200
|
|
POST
|
Thanks for the reply Aaron and confirming it should work. I've just tried it on a different dataset and all is working as expected!
... View more
01-19-2021
08:15 AM
|
0
|
0
|
1017
|
|
POST
|
I'm trying to add a view layer to a map in Map Viewer Beta, but Field Maps isn't recognising the layer as an "Editable Layer", instead it's just appearing as a "Reference Layer". The view layer has all editing enabled expect for "Delete". This is something I can achieve using Collector. Not sure if there are known bugs around this, but I believe this is something that should work with no issues. TIA
... View more
01-18-2021
04:16 AM
|
0
|
2
|
1045
|
|
POST
|
I have a scenario whereby users are able to launch Survey123 from Collector and complete a given form. I want users to be able to be sent back to Collector once they have submitted said form in Survey123. Doing a bit of reading and it seems like this is possible using the callback parameter, but I can't for the life of me get it to work. My current custom URL which is used to launch Survey123 from Collector looks something like this... arcgis-survey123://?itemid=*********&field:manhole_ref={manhole_reference}&field:latitude={expression/expr0}&field:longitude={expression/expr1}&callback=https://collector.arcgis.app?itemID=********* TIA
... View more
10-27-2020
01:30 AM
|
0
|
1
|
780
|
|
POST
|
Hi Khaled, I essentially have a point dataset of assets (fire hydrants) and a separate point dataset (inspections). The inspections sit on top of the asset dataset. Each asset has >1 inspection sat on top of it. The inspections are symbolised on an attribute called "Defect". I have an inspection with a CreationDate August 1st that says the asset is defective (coloured red), and then I have an inspection with a CreationDate of August 2nd that says the defect has been rectified (coloured green). Unfortunately in AGOL, it is drawing the August 1st feature first, as opposed to the August 2nd feature. Ideally, I want these inspection layers to draw the most recent inspection first (on the screen, the first inspection you see the one most recently created). I do not have any common attributes in either point dataset (e.g an asset ID). The only relating factor is the spatial element I hope this makes sense!
... View more
08-10-2020
10:13 AM
|
0
|
2
|
3309
|
|
POST
|
Hi Khaled, Is it possible to use topFilter to group by on geometry? My issue is that have a point feature class which is constantly being updated, and I want to be able display the most recently created features. At the moment, AGOL draws randomly, so it isn't possible to display the most recent. Many thanks Josh
... View more
08-10-2020
09:44 AM
|
0
|
4
|
3309
|
|
POST
|
Hi Peter, Thanks for the information, that's very useful. For us, being able to return specific features using webhooks would allow us to write straight to a hosted database. i.e. webhook>base URL>database. We use webhooks for Survey123 and the solution works very well. Just hoping to replicate using hosted feature services AGOL!
... View more
07-31-2020
01:03 AM
|
1
|
0
|
6165
|
|
POST
|
Spot on Xander Bakker, that works perfectly thank you
... View more
07-16-2020
07:46 AM
|
1
|
0
|
5820
|
|
POST
|
Hi Xander Bakker, Thanks for the prompt response. That's great. So the scenario is that I have a webmap with two hosted feature services (Point 1, Point 2). Both feature services are being updated on a daily basis, and will hold at maximum ~30,000 records. I am only interested in distances <= 500m. Initially I thought the Distance or DistanceGeodetic would give me what I was after, but I kept getting "Illegal Argument" error. Am I on the right path with this?
... View more
07-16-2020
06:31 AM
|
0
|
5
|
5820
|
|
POST
|
I was wondering if it was possible to calculate the distance from one point feature to the nearest point (a separate feature service), and having this distance as a popup, using Arcade? TIA
... View more
07-16-2020
05:43 AM
|
0
|
9
|
5922
|
|
POST
|
Hi Egge-Jan, the issue seems to be when I change the spatial reference from 28992 to 3395. Please see below (fyi, I've starred out the feature service url). <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Aan de slag met ArcGIS JavaScript - Query FeatureLayer met URL Parameters</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.16/esri/css/main.css">
<script src="https://js.arcgis.com/4.16/"></script>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/Map",
"esri/geometry/Point",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/widgets/LayerList"
], function(Map, Point, MapView, FeatureLayer, LayerList) {
var map = new Map({
basemap: "topo-vector"
});
var popupTemplate = { // autocasts as new PopupTemplate()
title: "ID {map16_tree_id}",
content: "ID {map16_tree_id}"
};
var renderer = {
type: "simple", // autocasts as new SimpleRenderer()
symbol: {
type: "simple-fill", // autocasts as new SimpleFillSymbol()
style: "none", // The polygon has no fill
outline: { // autocasts as new SimpleLineSymbol()
width: 1.5,
color: "#F5B041" // Hex Color Code
}
}
};
if ('URLSearchParams' in window) { // Feature detection (URLSearchParams is not supported by Internet Explorer)
var url = new URL(document.URL);
var search_params = url.searchParams;
if(search_params.has('m')) {
var municipality = search_params.get('m');
var expr = "map16_tree_id = '" + municipality + "'";
} else {
var municipality = "";
var expr = "1=1";
}
};
var municipalityLayer = new FeatureLayer({
url: "************",
definitionExpression: expr,
title: municipality,
minScale: 5000000,
popupTemplate: popupTemplate,
renderer: renderer
});
map.add(municipalityLayer);
var view = new MapView({
spatialReference: 3395,
container: "viewDiv",
map: map,
center: new Point({x: -2.621237, y: 51.477442, spatialReference: 3395}),
zoom: 19
});
var layerList = new LayerList({
view: view
});
view.ui.add(layerList, {
position: "top-right"
});
municipalityLayer.when(function() {
return municipalityLayer.queryExtent();
})
.then(function(response) {
view.goTo(response.extent);
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
07-13-2020
03:45 AM
|
0
|
1
|
3903
|
|
POST
|
Hi Egge-Jan, That is perfect, exactly what I'm after! Unfortunately, I'm a bit stuck; I can get the map to filter the feature and only show it on the map, but I can't get it to do the zoom bit. Any ideas as to why this would be?
... View more
07-13-2020
01:20 AM
|
0
|
3
|
3903
|
|
POST
|
Is it possible to query a feature service using parameters that are within the URL? My scenario is that is a user scans a QR code on a mobile device, this then launches a webpage with JS map in it, and it then zooms in on the feature relating to the QR code they have scanned. This scenario is similar to what can be achieved in WebApp Builder. TIA
... View more
07-12-2020
02:52 AM
|
0
|
5
|
4104
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-10-2023 08:18 AM | |
| 2 | 09-20-2023 09:21 AM | |
| 1 | 04-27-2021 04:25 AM | |
| 1 | 04-26-2023 02:48 PM | |
| 12 | 07-25-2022 08:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-22-2024
11:37 AM
|