BLOG
|
Great work - the web hooks implementation is going to open up a lot of options. Another implemented idea you can add is: Arcade - Add String Interpolation!
... View more
07-07-2020
05:59 AM
|
1
|
0
|
764
|
POST
|
I'm probably over simplifying this, but could you not concatenate what are currently return statements into a single variable and then return it outside of the loops?
... View more
05-28-2020
11:45 AM
|
0
|
0
|
2466
|
BLOG
|
If you're not worried about aesthetics and want a quick way to display non-null fields, you can use something like this: var skipFields = ['Creator', 'CreationDate', 'Editor', 'EditDate', 'OBJECTID', 'GlobalID'];
var allFields = '';
for(var i in $feature){
var skip = False;
for(var j in skipFields){
if(Text(i) == Text(skipFields[j])){
skip = True;
}
}
if(isEmpty($feature[i])){
Console(Concatenate('Null Field: ', i));
} else if (skip){
Console(Concatenate('Skipping Field: ', i));
} else {
Console(Concatenate('Including Field: ', i));
allFields = Concatenate([allFields, Upper(i), TextFormatting.NewLine, Text($feature[i]), TextFormatting.NewLine, TextFormatting.NewLine]);
}
}
Console(allFields);
return allFields; It returns a basic output like this: It does restrict the formatting of elements, but saves a lot of configuration as it can be used against any layer without much effort. From my testing it does not display in Collector. I'm guessing it's because of the $feature reference, but haven't had a chance to look into it.
... View more
05-25-2020
08:00 AM
|
1
|
0
|
12406
|
POST
|
I use the following for hiding non-null fields in Popups: var skipFields = ['Creator', 'CreationDate', 'Editor', 'EditDate', 'OBJECTID', 'GlobalID'];
var allFields = '';
for(var i in $feature){
var skip = False;
for(var j in skipFields){
if(Text(i) == Text(skipFields[j])){
skip = True;
}
}
if(isEmpty($feature[i])){
Console(Concatenate('Null Field: ', i));
} else if (skip){
Console(Concatenate('Skipping Field: ', i));
} else {
Console(Concatenate('Including Field: ', i));
allFields = Concatenate([allFields, Upper(i), TextFormatting.NewLine, Text($feature[i]), TextFormatting.NewLine, TextFormatting.NewLine]);
}
}
Console(allFields);
return allFields; It returns a basic output like this: It does restrict the formatting of elements, but saves a lot of configuration as it can be used against any layer. From my testing it does not display in Collector. I'm guessing it's because of the $feature reference, but haven't had a chance to look into it. If you are worried about aesthetics, check out this blog. More work, but less raw!
... View more
05-25-2020
07:55 AM
|
0
|
0
|
2409
|
BLOG
|
I have just created an app with Esri's JavaScript API. It shows an exaggerated form of Earth's Crust - go find some mountains hidden in the ocean! You can check it out via the following link: Earth's Crust It is built with Esri's 4.x JavaScript API which allows end users exaggerate topobathy elevation layers for more insightful visuals. A number of custom widgets have been built to enhance the experience: Layer List Select layers from the Living Atlas are available for overlaying on the map Shuffle Various slides have been added to the underlying Web Scene. Every time you click the widget, you are guided to a new location and the relevant title is displayed. The vertical exaggeration and basemap get updated according to slide settings Map Screenshot Download a .png image of the current map view. Layer List settings are honored Contact/Feedback Form Contact the developer and look for information or provide feedback (via Survey123 form) Share Copy the current URL to clipboard Vertical Exaggeration Alter the vertical exaggeration of the elevations from 0 to 100 using a slider Basemap Toggle between Esri Imagery and National Geographic basemaps Other Features Elevation As you pan the scene, view the elevation of the map center point in meters and feet URL Parameters x, y, z, wkid, heading, tilt, fov: These are updated as you browse the 3D Scene so you can bookmark areas of interest basemap: Updates as you toggle basemaps exaggeration: Stores the current vertical exaggeration Mobile Friendly Original screen resolution determines whether vertical exaggeration widget is expanded by default Cool Living Atlas layers available through the app are listed below: Distance to Shore Distance to Coast TopoBathy Elevation Tinted Hillshade Temperature - Sea Surface Temperature - Sea Floor Temperature - Land - January Average Temperature - Land - July Average Population - 2016 Density Estimate Geomorphology - Sea Floor Earthquakes (Recent) - Shake Intensity Earthquakes (Recent) - Events by Magnitude Earthquakes (Major) - Historic Records Volcanic Eruptions (Significant) - Historic Records World Exclusive Economic Zone Boundaries Suggestions and feedback welcome Here are some of screenshots of the app: Via Desktop Browser: Via Mobile Browser: Photos downloaded through app widget: Suggestions and feedback welcome ArcGIS API for JavaScript ArcGIS Living Atlas of the World ArcGIS Online Web GIS Web Developers 3D Mapping Elevation Data Global Content Geo Developers Developer Communities GIS Developers GIS Geeks GeoGeeks error.notfound.socialgroup
... View more
04-20-2020
11:23 AM
|
5
|
0
|
7200
|
POST
|
Hello community, Any ideas why the following code doesn't work? from arcgis import geometry
input_geometry = [{
"xmin": 191038.7271550147,
"ymin": 493884.06809108134,
"xmax": 1011248.7009082956,
"ymax": 971193.3560429906,
"spatialReference": {
"wkid": 2157,
"latestWkid": 2157
}
}]
projected_extent = geometry.project(geometries=input_geometry,
in_sr=2157,
out_sr=4326)
print(projected_extent) I get the following error message: AttributeError: 'NoneType' object has no attribute '_tools' The same error appears when I run the example code snippet in the documentation on which this is based: from arcgis.geometry import project
input_geom = [{'x': -17568824.55, 'y': 2428377.35}, {'x': -17568456.88, 'y': 2428431.352}]
result = project(geometries=input_geom, in_sr=3857, out_sr=4326)
print(result) I could construct the request myself, but would rather use the API. Any suggestions appreciated! Cheers, Mikie
... View more
02-23-2019
01:28 PM
|
0
|
2
|
1920
|
Title | Kudos | Posted |
---|---|---|
1 | 05-25-2020 08:00 AM | |
1 | 02-25-2019 01:15 PM | |
5 | 04-20-2020 11:23 AM | |
1 | 07-07-2020 05:59 AM |
Online Status |
Offline
|
Date Last Visited |
10-31-2024
03:54 PM
|