POST
|
Hey Erica, Do you mind posting the program file for Survey123 Connect Version 3.15.175? Or could you let us know where you acquired the old version? We can't find a suitable download for that version online. Thank you
... View more
01-31-2023
08:19 AM
|
0
|
1
|
3796
|
IDEA
|
@SarahMcDonald_Esri In classic you could do both... if the map locations were synced then extent stayed consistent... if not synced you could set different extent for each map/tab. More importantly for myself, I would like to control the layer visibility after adding the same map multiple times. here's an example https://orangeville.maps.arcgis.com/apps/MapSeries/index.html?appid=315456bcf9be42bf8ced4b22b865e704 This is 1 map with 1 layer copied and symbolized 4 times (so 4 layers). I add this map to the app 4 times and show only 1 layer per tab. (overall 1 layer, 1 map, 1 app) Recreating this in the new app requires me to make 4 separate maps each map with 1 layer. (1 layer, 4 maps, 1 app) hopefully this is clear 😛
... View more
11-28-2022
09:24 AM
|
0
|
0
|
796
|
IDEA
|
I'm particularly frustrated with not being able to reuse a map and control layer visibility on it as I did with the classic tabbed map series. I would often create a map with 1 layer source displayed several times over to symbolize it several different ways. Then add this same map in the app to create several tabs simply controlling layer visibility 1 at a time. To recreate this in a portfolio instant app I'm now required to make multiple maps for 1 app, which seems like its an unnecessary creation of items compared to before. so before it was 1 layer, 1 map, 1 app... now it's 1 layer, 10 maps, 1 app.... -_-
... View more
11-24-2022
12:59 PM
|
0
|
0
|
820
|
POST
|
what do you mean it hadn't run before? that makes it sound like its not the same issue as missing location header
... View more
10-25-2022
07:50 AM
|
0
|
2
|
2103
|
POST
|
I just started getting this issue as well... Sry, NOT Sry, but I found a much easier way to resolve this. Save the broken flow as a new flow... then turn off your old broken one... Voila! I found this post first then luckily got this fix first rando try 😛
... View more
07-14-2022
07:32 PM
|
5
|
1
|
2238
|
POST
|
Awesome that was enough advice to get me there... here's what worked for me... it adds the layer to the map, zooms to it, then removes it... which also creates a better user experience because it doesn't snap back the map everytime you try to pan or zoom away... require(["esri/config","esri/Map","esri/WebMap", "esri/views/MapView","esri/layers/FeatureLayer","esri/widgets/ScaleBar","esri/widgets/Legend"], function (esriConfig,Map,WebMap, MapView, FeatureLayer, ScaleBar, Legend) {
esriConfig.apiKey = "YOUR_KEY_HERE";
const webmap = new WebMap({
portalItem: {
id: "4170f5e65bd8409896a906264e4c2c87"
}
});
const view = new MapView({
map: webmap,
container: "viewDiv" // Div element
});
const layer = new FeatureLayer({
// URL to the service
url: "https://services3.arcgis.com/pCmV4YWmyIH9CmGq/ArcGIS/rest/services/Crossing_Guards_VIEW/FeatureServer/0",
definitionExpression: "OBJECTID = " + getUrlParameter('objectid')
});
view.map.add(layer);
const scalebar = new ScaleBar({
view: view
});
view.ui.add(scalebar, "bottom-left");
view.whenLayerView(layer).then(function(layerView){
layerView.watch("updating", function(val){
// wait for the layer view to finish updating
if(!val){
layerView.queryExtent().then(function(response){
// go to the extent of all the graphics in the layer view
view.goTo({target:response.extent, zoom: 17});
view.map.remove(layer);
});
}
});
});
});
... View more
11-12-2021
09:46 AM
|
0
|
0
|
1849
|
POST
|
So, I had this solution previously, however there is then only the one layer on the map... The reason I'm trying to add the whole map is because I want all the layers and stylings from it. Then zoom to the one feature in the specific layer using the url parameter value. Any suggestions for this setup? Otherwise, I can just add the other layers to the map as well, but then styling them also just seems like way more effort than if I would just query and zoom on an existing layer in the map.
... View more
11-08-2021
11:27 AM
|
0
|
2
|
1885
|
POST
|
Hey I'm simply looking to load a map and pan/zoom to a feature. Here is the actual page. https://data.orangeville.ca/Apps/CrossingGuards/index.html?objectid=1 I'm looking for help to get the inline map to 'goto' or pan and zoom a feature based on object id I'm getting the objectid from a url parameter using var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
}; and calling it using >>> getUrlParameter('objectid') also the map has 4 layers, the one to search is layer 3 of 4 called 'Crossing Guards VIEW' here is my codepen code just for the map for testing, with the api key removed... <!--
To run this demo, you need to replace 'YOUR_API_KEY' with an API key from the ArcGIS Developer dashboard.
Sign up for a free account and get an API key.
https://developers.arcgis.com/documentation/mapping-apis-and-services/get-started/
--><html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>ArcGIS API for JavaScript Tutorials: Display a map</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.21/esri/themes/light/main.css">
<script src="https://js.arcgis.com/4.21/"></script>
<script>
require(["esri/config","esri/WebMap", "esri/views/MapView","esri/widgets/ScaleBar","esri/widgets/Legend"], function (esriConfig,WebMap, MapView, ScaleBar, Legend) {
esriConfig.apiKey = "API_KEY_HERE";
const webmap = new WebMap({
portalItem: {
id: "4170f5e65bd8409896a906264e4c2c87"
}
});
const view = new MapView({
map: webmap,
container: "viewDiv" // Div element
});
const scalebar = new ScaleBar({
view: view
});
view.ui.add(scalebar, "bottom-left");
var parcelExtent = response.features[0].geometry.extent.clone().expand(0.5);
view.goTo(parcelExtent);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html> thanks for any assistance
... View more
11-07-2021
07:47 AM
|
0
|
6
|
1966
|
POST
|
The 498 issue is because survey123 is referencing a public service... https://doc.arcgis.com/en/survey123/desktop/create-surveys/troubleshootcreatesurveys.htm I made my layer secured (AGS credentials) then stored the credentials in the AGOL item, and it seems to work now.
... View more
05-26-2021
07:17 AM
|
1
|
0
|
3106
|
POST
|
ugh that works just fine... I was using VB "%Date%" which didn't work for me... Thanks.
... View more
04-12-2021
12:04 PM
|
0
|
1
|
1175
|
POST
|
In my model builder process, I simply want to populate a date field with a date value that is an input parameter. It seems that the date format of input doesn't jive with the date field. I've read a few posts and nothing has worked for me. Please help with clear and complete instructions!
... View more
04-11-2021
05:42 PM
|
0
|
4
|
1290
|
POST
|
I thought I was implementing a simple "zoom to extent" function, which works... but it also doesnt let you zoom away from the area... I didnt think this was the intention of this code. Can someone advise. I would prefer to zoom on load and then let the use zoom away afterward. Here is the page... try to pan or zoom away just a little on the inset map... you'll see https://data.orangeville.ca/Apps/PlanningApplications/property.html?gid={B85BF5C1-2EF2-4E98-9F4B-94FBC4D15708} This is my reference https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-queryextent/index.html Here is the code for the map (4.16), require([ "esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer", "esri/widgets/BasemapToggle" ], function (Map, MapView, FeatureLayer, BasemapToggle) { // Create the Map with an initial basemap var map = new Map({ basemap: "topo-vector" }); // Create the MapView and reference the Map in the instance var view = new MapView({ container: "map", map: map, center: [-80.106,43.916], zoom: 13 }); var defexp = 'GlobalID = \'' + getUrlParameter('gid') + '\'' var featureLayer = new FeatureLayer({ url: "https://gis.orangeville.ca/arcgis/rest/services/PlanningCadastre/PlanningApplications/FeatureServer/0", definitionExpression: defexp }); map.add(featureLayer); view.whenLayerView(featureLayer).then(function(layerView) { layerView.watch("updating", function(val) { // wait for the layer view to finish updating if (!val) { layerView.queryExtent().then(function(response) { // go to the extent of all the graphics in the layer view view.goTo(response.extent); }); } }); }); // Makes the layer 50% transparent featureLayer.opacity = 0.5; // 1 - Create the widget var toggle = new BasemapToggle({ // 2 - Set properties view: view, // view that provides access to the map's 'topo-vector' basemap nextBasemap: "satellite" // allows for toggling to the 'hybrid' basemap }); // Add widget to the top right corner of the view view.ui.add(toggle, "top-right"); });
... View more
11-16-2020
08:24 AM
|
0
|
1
|
779
|
POST
|
I continuously get this error in my GES logs com.esri.ges.adapter.json.FeatureJsonOutboundConverter Event does not have a track id. Event hashcode is going to be used to determine uniqueness of the event. I'm looking to troubleshoot it, however when I change logging to debug I stop getting any log messages. Also, it appears all of my inputs and outputs, specifically, have a track id tag in their definitions. The one strange thing I am doing that seems to work otherwise is I am using a field map where the OBJECTID of my one layer is mapped to an ID field of another layer. This is to copy several attributes over to the other layer using what might be a "hacky join" method. Both these fields are the track ids of their respective layers. Any assistance with possibly getting rid of the log message would help.
... View more
02-20-2020
09:09 AM
|
0
|
3
|
1326
|
POST
|
Weird, it seems that when I'm on our town network it doesn't want to iframe that page, but only in the edge browser?! Otherwise it works fine, especially outside our network (I tested it while my laptop was tethered to my phone and on data)... so I'm going to leave it at that. The other issues are just my stream service and our geoevent configuration that I'm still working out to expose publicly. Thanks
... View more
02-20-2020
08:57 AM
|
1
|
0
|
1128
|
POST
|
I have created this "Snow Removal Tracker" storymap ArcGIS StoryMaps On the section "Thank a Plow Driver" I embed the page https://data.orangeville.ca/Apps/SnowThanks/index.html It works in all browsers except Edge (of course) where it doesn't load the iframe and the devtools cite CSP14312: Resource violated directive 'default-src https: data: blob:' in Content-Security-Policy: ms-appx-web:///assets/errorpages/dnserror.html?NetworkStatusSupported=1#https://data.orangeville.ca/Apps/SnowThanks/index.html. Resource will be blocked. It does show the iframe page in next section of the storymap with no problem Dark Sky Is there something I can add to the headers of my page to make it work? I'm not sure how to remedy this, any help would be great.
... View more
02-18-2020
09:10 AM
|
0
|
2
|
1256
|
Title | Kudos | Posted |
---|---|---|
5 | 07-14-2022 07:32 PM | |
1 | 05-26-2021 07:17 AM | |
1 | 02-20-2020 08:57 AM | |
1 | 07-10-2017 07:32 AM | |
1 | 11-07-2017 01:52 PM |
Online Status |
Offline
|
Date Last Visited |
03-14-2023
08:34 PM
|