POST
|
Hi Mia Harrell, Welcome to GeoNet! No, you are not "doing this forum thing wrong", not at all. This forum, the community, is there to help. So, please post your questions and maybe you will receive an answer, maybe even a correct one! (And, as you can see, there is also a lot of Esri staff hanging around here... I guess the answer by Kory Kramer is useful to you.) The good thing about this whole game of questions and answers here is: it is all online, out in the open, so the information shared here is beneficial to the community at large. Personally, I have learned a lot from just following the discussion here: reading a lot of questions, seeing what others are posting as an answer, posting an answer myself every now and then... So, you are invited to come back to this forum regularly. And don't forget: if you happen to know the answer to a question, please share it with us. BR, Egge-Jan
... View more
09-03-2020
12:35 PM
|
1
|
0
|
1680
|
POST
|
Hi alpha coder, Did you have a look at this question: Change Mouse cursor on hover over feature only? The answer given there might be useful to you. HTH, Egge-Jan
... View more
09-03-2020
06:51 AM
|
0
|
0
|
2218
|
POST
|
Hi Santosh V, You may consider to store the images as attachments with the feature layer. And use Arcade to show the images in the popup. See this blog by Jennifer Bell: https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2019/03/22/show-attachments-in-pop-ups-with-arcade-expressions By default, the attachment is shown in the pop-up as a hyperlink. With just a few lines of Arcade Expressions, you can configure the pop-up to display the actual image without requiring your viewers to click on the link. HTH, Egge-Jan
... View more
09-01-2020
07:40 AM
|
3
|
1
|
1873
|
POST
|
Hi Andrew Murdoch, OK - better late than never 🙂 Here is a fully working example: ArcGIS JavaScript Tutorial - Take a screenshot of a MapView I did take the little Printer button from my previous post and I did add the actual functionality to create and show the screenshot and to offer the possibility to download the image. Yes, I actually stripped down the example mentioned by Noah Sager to something I could understand and handle 🙂 Much less elaborate, but doing what you need: Print the current map view. This sample will not work in IE (nor in Legacy Edge), but it should be fine in Chrome and Firefox. What do you think? (To get the code: follow the link and hit Ctrl+U to access the html file, with all the js and css included) BR, Egge-Jan P.S. If you think your question has been properly answered, you might close the call by marking one of the answers as the correct one. In this way it will be easier for other community members to find the right answer in case they have the same question 🙂
... View more
08-26-2020
01:54 PM
|
1
|
0
|
4425
|
POST
|
Hi Megan Fursdon, Here you will find some tips and tricks on how to migrate: Migrating from Google Maps JavaScript API to ArcGIS API for JavaScript | ArcGIS API for JavaScript 4.16 HTH, Egge-Jan
... View more
08-26-2020
11:25 AM
|
0
|
0
|
1644
|
POST
|
Hi James Kelly, It looks like the information you are after can be found here: System requirements—ArcGIS Survey123 | Documentation Please note: Windows 7 support has ended for the Survey123 field app and Survey123 Connect 3.9 due to Microsoft ending extended support for Windows 7 on January 14, 2020. For more information, see Microsoft's support article on the end of Windows 7 support. HTH, Egge-Jan
... View more
08-26-2020
06:17 AM
|
0
|
0
|
932
|
POST
|
Hi Omer Ben-Asher I suppose you are talking here about a v3.x property of the Legend | API Reference | ArcGIS API for JavaScript 3.33. It looks like in v4.x of the JS API you have to use the respectLayerVisibility property: Legend | ArcGIS API for JavaScript 4.16 This property Determines whether to respect the properties of the layers in the map that control the legend's visibility ( minScale , maxScale , legendEnabled ). When the respectLayerVisibility property of the legend is set to false , the legend elements for each layer in the map will always display, thus disregarding the minScale , maxScale , and legendEnabled properties for each layer in the map. Does this answer your question? BR, Egge-Jan
... View more
08-26-2020
12:53 AM
|
1
|
0
|
519
|
POST
|
Hi Thomas Illingworth, You might have a look at Topotijdreis: 200 jaar topografische kaarten for some inspiration. In this application more than 200 years of historical maps, covering the Netherlands, is served in a very user friendly way. This app has been build and is being maintained by the Dutch Esri reseller, Esri Nederland. Maybe they can provide you with some guidance. HTH, Egge-Jan
... View more
08-20-2020
03:53 AM
|
2
|
0
|
1388
|
POST
|
Hi Joseph Rigley, You should be able to access the Annotation Groups settings in the Data Frame Properties dialog. HTH, Egge-Jan
... View more
08-17-2020
02:36 AM
|
0
|
1
|
431
|
POST
|
Hi Josh Obrecht, In general in a query when using the OR operator in your SQL statement you will have to repeat the attribute name to make it a valid statement. If you want to specify multiple values in a WHERE clause, you can also use the IN operator. (This IN operator is actually a kind of shorthand for multiple OR conditions). To illustrate this we will query a REST service with Dutch municipalities: Query on a single municipality name: Gemeentenaam = 'Amsterdam' (look at the result) Multiple values with OR - Wrong: Gemeentenaam = 'Amsterdam' OR 'Rotterdam' (this will generate an error message: 'where' parameter is invalid) Multiple values with OR - Correct: Gemeentenaam = 'Amsterdam' OR Gemeentenaam = 'Rotterdam' (look at the result) Multiple values with IN: Gemeentenaam IN ('Amsterdam', 'Rotterdam', 'Utrecht', 'Eindhoven') (look at the result) HTH, Egge-Jan
... View more
08-17-2020
02:11 AM
|
1
|
0
|
712
|
POST
|
Hi Lior Hershkovitz, I guess you are going to use the ArcGIS Arcade expression language to get this done. You can test this simple script in the ArcGIS Arcade Playground: var tree = "Prunus virginiana";
var sepValues = Split(tree, ' ');
// return sepValues[0]; // Genus - Result: Prunus
return sepValues[1]; // Species - Result: virginiana Let's suppose your column with tree names is called TREE. To apply this split on the whole column at once, you can use: Split($feature.TREE, ' ')[0] // Genus and Split($feature.TREE, ' ')[1] // Species HTH, Egge-Jan
... View more
08-03-2020
05:18 AM
|
2
|
1
|
2781
|
POST
|
Hi Sushant Sardeshpande, Yes, you should be able to accomplish this with ArcGIS Online only. (No need to also host an ArcGIS Server with Enterprise to do this.) Please note: there is no link to this admin page, you will have to manually modify the URL to get there... So, go to the Service URL for the layer to be updated in the feature service. The ArcGIS REST Services Directory page opens. And now you have to insert "admin" between "rest" and "services" (see my previous post). On this page scroll all the way down to find the Update Definition operation. Please let us know whether you managed to solve the issue or not. BR, Egge-Jan
... View more
07-30-2020
12:25 AM
|
0
|
1
|
6575
|
POST
|
Hi Stacey Plumley, I am not completely sure whether I do understand exactly what you want to accomplish, but I think you can do it in one line of code... Situation: in your feature class there is an attribute column called Species containing values like 'CK', 'SH' and 'SRCT' which should be replaced with the values 'Chinook', 'Steelhead' and 'Sea run cutthroat' respectively. Did you have a look at the Decode() function on this page Logical Functions | ArcGIS for Developers ? I think this should do the trick: Decode($feature.Species, 'SK', 'Sockeye', 'CH', 'Chum', 'PK', 'Pink', 'CO',
'Coho', 'CK', 'Chinook', 'SH', 'Steelhead', 'SRCT', 'Sea run cutthroat',
'RT', 'Resident trout', 'BT', 'Bull Trout', 'Other'); This will replace all the abbreviations with the full words. I have added 'Other' at the end (as the default), just in case there are any abbreviations in the column not listed here. Please be gentle and test it on a newly added attribute expression before applying it to the source column 🙂 What do you think? BR, Egge-Jan
... View more
07-28-2020
02:45 PM
|
0
|
5
|
2272
|
POST
|
Hi Bert Kraan, I was actually going to come up with the first solution given by Joshua Sharp-Heward, but from the same answer I learned about the IIf() function. That's why it is so good to follow this forum, to learn a little every day (very kaizen!). So, to wrap up: Simple solution One line solution if (IsEmpty($feature.verharding)) {
return 3;
} else {
return $feature.verharding;
} IIf (IsEmpty($feature.verharding), 3, $feature.verharding); HTH, Egge-Jan
... View more
07-28-2020
01:48 AM
|
4
|
0
|
11010
|
POST
|
Hi David Krady, What is the length of your array, i.e. how may items does your array contain? Some investigation: You can use the function Count() to get the number of items in an array You get the full array with return arr, just to verify the content If there is no second item in your array, then the error message is correct. I wrote a small script to test: var txt = "person1;person2;person3";
var arr = Split(txt, ";");
//return Count(arr)
return arr // expected output [ person1 , person2 , person3 ]
//return arr[0] // expected output person1
//return arr[1] // expected output person2
//return arr[2] // expected output person3
//return arr[3] // expected output Execution Error:Runtime Error: Out of Bounds. HTH, Egge-Jan
... View more
07-27-2020
07:22 AM
|
0
|
1
|
1651
|
Title | Kudos | Posted |
---|---|---|
1 | 04-15-2024 03:25 AM | |
2 | 03-25-2024 02:06 PM | |
1 | 01-17-2024 10:19 AM | |
1 | 03-30-2023 05:57 AM | |
2 | 02-02-2023 02:47 PM |
Online Status |
Offline
|
Date Last Visited |
05-22-2024
01:27 AM
|