|
POST
|
I think the switch you're looking for is under the organization's settings tab as shown below in AGOL. I think you would need to be administrator to change it.
... View more
09-11-2018
09:21 AM
|
1
|
0
|
3229
|
|
IDEA
|
You bet. FWIW, this is a thread I started related to the AGOL HTML popups and Arcade expressions that ultimately led to using hard coded URLs in my attribute fields. I think you're right though- in your situation, native support of 360 photos by ESRi would probably meet your needs better.
... View more
08-23-2018
10:22 AM
|
2
|
0
|
9812
|
|
IDEA
|
Hi Joshua, The URLs are manually entered into the various fields, unfortunately. You can look at the table here. Originally, I just wanted to put the file names into my attribute fields and then build the URL dynamically using Arcade but found out that building dynamic HTML & links using Arcade for an AGOL popup HTML table doesn't work well (or at least how I wanted to implement it). In order to overcome that, I had to do the extra work up front in the data and provide explicit, full URLs. I'm only adding 6-12 new locations every year so it's not a lot of work for me to do.
... View more
08-23-2018
08:52 AM
|
0
|
1
|
9812
|
|
POST
|
I tried to update my sample to actually return the local time at the location clicked but I'm having trouble doing so. It's returning the time but off one hour so I don't know if that's due to daylight savings or GMT being 0, etc. Perhaps a more savvy coder can find the error of my ways. Here's an updated processResults function that returns the timezone offset and the local time (but off by one hour): function processResults(results) {
var features = results.featureSet.features;
if (features.length > 0) {
var timeOffset = features[0].attributes.ZONE;
var curDate = new Date();
curDate.setUTCMinutes(curDate.getUTCMinutes() + (timeOffset*60));
var hours = curDate.getUTCHours();
var minutes = curDate.getUTCMinutes();
var ampm = hours >= 12 ? 'pm' : 'am';
hours = hours % 12;
hours = hours ? hours : 12; // the hour '0' should be '12'
minutes = minutes < 10 ? '0'+minutes : minutes;
var strTime = hours + ':' + minutes + ' ' + ampm;
alert('The zone offset for the clicked location is ' + features[0].attributes.ZONE + '\n and the local time is ' + strTime); //curDate.toUTCString());
};
};
... View more
08-22-2018
12:24 PM
|
0
|
0
|
3927
|
|
POST
|
You would use Query & QueryTask similar to what's shown in this example. The example uses the location where you click on the map but in your case, you would create a point using your lat/long values and then pass that as the value used with query.Geometry. <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Simple Map</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.25/esri/css/esri.css">
<style>
html, body, #map {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script src="https://js.arcgis.com/3.25/"></script>
<script>
var map;
require(["dojo/on","esri/map","esri/layers/FeatureLayer","esri/tasks/query", "esri/tasks/QueryTask","dojo/domReady!"], function(on,Map,FeatureLayer,Query,QueryTask) {
map = new Map("map", {
basemap: "topo", //For full list of pre-defined basemaps, navigate to http://arcg.is/1JVo6Wd
center: [-100.45, 37.75], // longitude, latitude
zoom: 4
});
var featureLayer = new FeatureLayer("https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/World_Time_Zones/FeatureServer/0",{opacity:0.5});
map.addLayer(featureLayer);
map.on("click", function(evt){
var queryTask = new QueryTask("https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/World_Time_Zones/FeatureServer/0");
var query = new Query();
query.geometry = evt.mapPoint;
query.outFields = ["*"];
queryTask.on("complete", processResults);
queryTask.execute(query);
function processResults(results) {
var features = results.featureSet.features;
if (features.length > 0) {
alert('The zone offset for the clicked location is ' + features[0].attributes.ZONE);
};
};
});
});
</script>
</head>
<body>
<div><h2>Click on the map to get the time zone offset</h2></div>
<div id="map"></div>
</body>
</html>
... View more
08-22-2018
09:32 AM
|
1
|
1
|
3927
|
|
POST
|
ESRI does have a World Time Zone layer in the Living Atlas. Query your lat/long point against that service to find out what the time offset is to get your local time.
... View more
08-21-2018
08:38 AM
|
2
|
3
|
3927
|
|
POST
|
I wonder if your map scale puts you on the border of one of the imagery basemap's level of detail thresholds where it switches from one acquisition to the next level. That could explain why the imagery looks so distinctly different. I haven't experienced this specifically but I did experience a situation where I tried to export my Pro Scene as a JPEG and the resulting JPEG showed more area than I was seeing on my screen extent (hence Pro was altering the map extent on its own accord). My example: Screenshot of app view: Resulting export: Clearly the map extent was altered but not by me. I wonder if you're experiencing something similar?..
... View more
08-17-2018
03:15 PM
|
1
|
1
|
3016
|
|
POST
|
The thing is that ESRI *HAS* been doing holistic testing & running software beta programs for years and yet, here we are with a program designed to make maps in which you can't display printer margins. I have no idea how so many things slipped through the process of creating the "next generation" of GIS software.
... View more
08-09-2018
11:51 AM
|
4
|
0
|
2410
|
|
POST
|
Perfect, that's what I was looking for. Tangantal question- the grid labels along the neatline... I'm finding in my map that there isn't enough space between the value & the directional letter (30°N in your screenshot example) for my tastes. Do I need to construct a multi- dynamic text string in order to insert a space or is there a simple option within the lone dynamic text formatting tag that I can use? I know that there is a direction Separator tag to add a space between N/S/E/W and the number but it does nothing if your labels along the neatline are something like -122°30' Steve
... View more
08-01-2018
04:24 PM
|
0
|
2
|
3188
|
|
POST
|
In Arcmap, it was possible to add a graticule grid that only had tic marks within the data frame area. I'm not seeing this as an option in Pro. Is this possible? This was the option within Arcmap- Steve
... View more
08-01-2018
08:33 AM
|
0
|
4
|
3423
|
|
BLOG
|
FWIW, I was sent a link to the post conference survey via an email I received from ESRI last Thursday (7/26). Maybe check your spam folder for the email account you used to register for the UC conference?.. Steve
... View more
07-31-2018
09:10 AM
|
0
|
0
|
4839
|
|
POST
|
How would you sync the extents across each map frame?
... View more
07-27-2018
04:11 PM
|
0
|
1
|
2948
|
|
POST
|
Exactly. I went back and re-read the help subject about this before replying. It just says: Specify text for labels—ArcGIS Pro | ArcGIS Desktop Using an advanced label expression, you can add any Arcade, Python, VBScript, or JScript logic to your label expressions, including conditional logic and looping. For example, you could produce labels that have only the first letter of each word capitalized, regardless of how the text strings are stored in the attribute fields. You can also use label expressions to adjust the formatting of your labels using ArcGIS Pro formatting tags. These are special characters for changing the appearance of all or part of your labels. For example, you might use the bold formatting tag to make the first line bold in a stacked, multiline label. I mean, adding the context that label expressions don't work on applied text cases seems like an important caveat to me, and one that would have saved me a lot of time wasted and frustration. ESRI has promoted Arcade as this miracle option to make all sorts of on-the-fly adjustments so why would I think otherwise that simply converting to proper case wouldn't work? Gone are the days of ArcGIS 9.x level of documentation and I miss that.
... View more
07-25-2018
10:23 AM
|
0
|
1
|
4761
|
|
POST
|
Thanks, Mark. As you point it out, that makes sense. I know that I did not see that myself but there are multiple dimensions of options in Pro. Perhaps the help documentation can be updated to reflect this restriction that Arcade (and other expression languages) respects. Thanks again- Steve
... View more
07-24-2018
10:04 AM
|
3
|
4
|
4761
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | a week ago | |
| 1 | 2 weeks ago | |
| 2 | 2 weeks ago | |
| 1 | 3 weeks ago |