|
IDEA
|
Each pro project might use a lot of little python, javascript, vb script...etc snippets. Just provide a folder in the project catelog so that we can easily find and organize these snippets. Bonus if the scripts are editable in a syntax highlighted text editor
... View more
12-28-2017
06:20 AM
|
2
|
0
|
460
|
|
POST
|
This is the correction of the typo I had in my function. for(var i in items) i is actually the index, not the item. function bullet(item, isLast){
return ' - ' + item + IIF(isLast, '', '\n');
}
function list(items){
var body = '';
for(var index in items){
var isLast = index == Count(items) - 1;
body += IIF(IsEmpty(item), '', bullet(items[index], isLast));
}
return body;
}
... View more
12-27-2017
11:11 AM
|
0
|
0
|
2114
|
|
IDEA
|
The api seems to be missing a default behavior for popups. By default, I think it would be very convenient for all popup templates on features layers to have a default fieldInfos. This would be similar to the behavior in desktop apps like Pro, where you click on a feature, and it automatically shows you the table of fields that are visible. No config necessary.
... View more
12-07-2017
09:59 AM
|
1
|
0
|
425
|
|
POST
|
gmattis_visalia wrote: I was able to get it to work without the list function. To my knowledge I do not think that Arcade supports list functions. I wasn't able to find it in the ArcGIS Arcade documentation. I think you may have missed part of the code. I have a function "list" defined above. It does a little bit of processing to see if the field has a value, and adds a bullet point to the field so its in a list-like format, like in the screenshot. The idea is, some fields may be empty or null, and I don't want them to have an empty bullet point, I'd rather they are skipped.
... View more
09-13-2017
12:05 PM
|
0
|
0
|
2114
|
|
POST
|
I'm going to be passing it a field. So something like this: '<BOL>UND>' + $feature.field1 + '</BOL></UND>\n' + list( [$feature.field2, $feature.field3])
... View more
09-13-2017
11:23 AM
|
0
|
2
|
2114
|
|
IDEA
|
My comment was to support adding folders within the "Maps" folder and "Layouts" folder, and I'm fairly certain that is what the original issue was about. One use case is to imagine I have a zoning ArcGIS Pro project. It contains different types of zoning data. Inside the project, I might have several different types of maps, (zoning, land use, permits). So my project folder structure would be set up like this: Maps Zoning (folder) Zoning.map Zoning Boundaries.map Permits (folder) 123 1st st.map 142 2nd ave.map ... Land Use (folder) Future Land use Current Land Use ... Layouts Zoning ... Permits Site Map Layout.layout Other permit layout.layout Land Use Land Use Large Format.layout Land Use Presentation.layout ... Databases Land_Use.gdb Zoning.gdb Permits.gdb
... View more
09-13-2017
09:47 AM
|
1
|
2
|
6513
|
|
POST
|
So, I'm trying to make a list of items in a label. Should look like this: Instead, its looking like this: The arcade snippet: function bullet(item, isLast){
return ' - ' + item + IIF(isLast, '', '\n');
}
function list(items){
var body = '';
for(var item in items){
var index = IndexOf(items, item);
var isLast = index == Count(items) - 1;
body += IIF(IsEmpty(item), '', bullet(item, isLast));
}
return body;
}
'<BOL>UND>' + 'test' + '</BOL></UND>\n' + list( ['hey', 'there']) What would be the issue I'm missing?
... View more
09-13-2017
09:39 AM
|
0
|
5
|
2453
|
|
POST
|
From the chat: roemhildtg [10:42 AM] Its like its getting reversed somehow yann [10:56 AM] well yes and no :slightly_smiling_face: [10:56] the ids are one order. but overall, all the layers and sublayers in the map are ordered the same way, drawing from bottom to top
... View more
08-17-2017
09:22 AM
|
0
|
0
|
2338
|
|
POST
|
Thanks for the tips. Just an Update: If I specify the sublayers in reverse order like this: sublayers: [{
id: 13,
visible: true
}, {
id: 12,
visible: true
}], It actually works! Thanks to Yann Cabon for this tip. Just to address some of your comments: > The JS code then looks at this information and see that there is no sublayer with id 12 There is a sublayer id 12. Its the storm structures layer. > Anyway, the request is made and fails, and that failure is not handled correctly, so there's no user feedback. The request appears to succeed, the server returns a status 200, but there is "No Data" in the request. Server logs on debug mode don't show any issues either. If I open up the url, the data does show an error message: {"error":{"code":400,"message":"'dynamicLayers' is not enabled on this MapService.","details":[]}} > I assume all of your sublayers are sourced from the same Map Service, so you shouldn't need to worry about dynamicLayers at all. Correct, I don't actually want to use dynamic layers, I just want the default symbology, but for some reason the api is converting my request to a dynamic layers request.
... View more
08-17-2017
08:54 AM
|
0
|
2
|
2338
|
|
POST
|
Your module paths and module variables need to appear in the same order. var esriRequireModules = [
"esri/Map", // 0
"esri/request", // 1
"esri/geometry/support/webMercatorUtils", //2
"esri/geometry/Point", //3
"esri/widgets/Search",//4
"esri/Graphic",//5
"esri/symbols/PictureMarkerSymbol",//6
"esri/PopupTemplate",//7
"esri/layers/GraphicsLayer",//8
"esri/layers/FeatureLayer",//9
"esri/layers/MapImageLayer",//10
"esri/layers/GroupLayer",//11
"dojo/on",//12
"dojo/domReady!",//13
"esri/identity/IdentityManager"//14
];
var esriRequireCallback = function(
Map,//0
esriRequest,//1
webMercatorUtils,//2
Point,//3
Search,//4
Graphic,//5
PictureMarkerSymbol,//6
PopupTemplate,//7
GraphicsLayer,//8
FeatureLayer,//9
MapImageLayer,//10
GroupLayer,//11
on,//12
esriId//13 So in your case, esriId is actually the domReady object. you can switch the two paths in your require array, or add another variable in your callback to fix.
... View more
08-17-2017
07:28 AM
|
2
|
0
|
2133
|
|
POST
|
I'm confused on how I can use dynamic layers in the 4.4 api. I have a group of layers published from arcmap like this: By default, all of the group layers are off, some of the child layers are on, and nothing is visible until the user toggles a group layer on. (this is how it works in 3.x). In 4.4, I set up some layer like this: {
id: 'assets',
url: `${url}/internal/assets/MapServer`,
// sublayers: [{
// id: 12,
// visible: true
// }, {
// id: 13,
// visible: true
// }],
popupTemplate: {
title: 'cid: {cid}'
}
} When the map loads, all of the child layers that are visible are displayed. The map looks crazy busy. So just to test what happens I uncomment the above code to show only sublayer 12. This works, only sublayer 12 is shown: Now if I uncomment both sublayers 12 and 13 from the block above, it stops working. I get no image from the server. I checked the network logs. In the version with no sublayers, the network image request looks like this: layers:show:43,44,51,50,36,37,38,1,2,3,53,54,6,8,9,10,55,13,14,15,16,17,22,58,59,25,30,31,32,33 With one sublayer: layers:show:12 With two sublayers: dynamicLayers:[{"id":13,"source":{"mapLayerId":13,"type":"mapLayer"}},{"id":12,"source":{"mapLayerId":12,"type":"mapLayer"}}] My questions are: Why does providing no sublayers display the layer incorrectly (ie ignoring group layer visibility)? Why do the parameters change from layers to dynamicLayers when switching from one sublayer to two sublayers? - a similar problem is observed here: https://codepen.io/anon/pen/zdpGLL?&editors=100
... View more
08-17-2017
06:18 AM
|
0
|
4
|
3481
|
|
POST
|
Please upvote https://community.esri.com/ideas/12258?commentID=47537
... View more
08-16-2017
03:36 PM
|
2
|
1
|
4160
|
|
POST
|
Question for the group: I have been getting started using Trimble Positions, and had managed to install and use the previous version, however, after the 10.5 update came out, I have started to try and get that version installed. I've uninstalled all of the previous trimble software (license manager, extension, etc) and reinstalled just the Trimble Positions package, but I cannot seem to get ArcMap to let me view or enable the extension anymore. Things I've tried: 1. In ArcMap, Customize -> Add-In Manager -> Options -> Require Add-Ins to be digitally signed by trusted publisher (I've also tried the "Load all Add-ins without restrictions" but neither worked 2. Modify the arcmap.exe.config file to include these lines: <startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727" />
</startup> 3. Launching license administrator and reactivating the extension software. This worked successfully but the extension still doesn't appear. 4. I've run the positions configuration tool and clicked "Test Configuration". This appears to pass with a success message (attached) Any suggestions?
... View more
07-31-2017
06:51 AM
|
0
|
2
|
2887
|
|
IDEA
|
One thing I've missed in ArcGIS Desktop is the ability to quickly create custom layouts using dynamic text that can display feature information. Use cases would be primarily in Map Series (pro's data driven pages equivolent) but would also apply to static layouts in some cases as a quick way to create automatically generated text blocks from feature layers. Example: Map Series Show text blocks for each feature in the current extent: Possible Dynamic text code: <dyn type="iterator" layer="Properties">
ID: <dyn type="field" property="id" />
Address: <dyn type="field" property="street_num" /> <dyn type="field" property="street_name" />
Dept: <dyn type="field" property="department" />
</dyn> In this hypothetical example, the important part is the `dyn type="iterator"` The block of text inside here would be repeated for each feature visible in the current extent. I know this functionality is possible using a custom python arcpy.mp script but this method would integrate with existing tools to allow the data and the framework to do the work. I wouldn't have to re-run a script if the data changes, all we need to do is re-export the map series and the layout would be updated. This could also apply to static layouts, for instance if we just quickly want to build a list of features like the one above, a simple block of xml is all we would need to insert. The Insert Dynamic Text dropdown could insert a quick snippet with the required text block for easy modification.
... View more
07-17-2017
07:41 AM
|
1
|
3
|
1471
|
|
IDEA
|
I think this would also be very useful. Organizing maps and layouts in folders would help to simplify complex projects with multiple different types of maps/layouts and allow users to more easily find layout or map they are searching for.
... View more
07-10-2017
09:49 AM
|
0
|
0
|
6514
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-30-2019 07:30 AM | |
| 1 | 02-21-2022 01:09 PM | |
| 2 | 12-07-2021 11:51 AM | |
| 1 | 08-18-2016 01:47 PM | |
| 1 | 10-02-2015 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-28-2022
12:44 PM
|