|
POST
|
Hi Justin Saarinen, A few years ago I did get a tip from a long term Esri user about coded value domains. This trick has proven to be very valuable, and I have applied it ever since. And now I will share it here: When working with coded value domains always make sure that code and value are equal! So for example you should avoid something like: Fe = Iron / Pb = Lead / Cu = Copper / Ag = Silver Instead you should just use: Iron = Iron / Lead = Lead / Copper = Copper / Silver = Silver Keeping codes and values the same will avoid a lot of confusion in many situations, like the one you describe above. When a tree is dying, it is not '2', it is 'dying'. HTH, Egge-Jan
... View more
04-23-2020
06:51 AM
|
1
|
0
|
2324
|
|
POST
|
Hi Aldwin Gregorio, Good to hear that my suggestion was useful and good to see that you managed to get the conversion right 🙂 BR, Egge-Jan
... View more
04-21-2020
04:02 AM
|
0
|
0
|
1635
|
|
POST
|
Hi Majdoleen Awadallah, Yeah, the idea would be to start with a working example of the new functionality you want to add to an existing application. That example is provided by Esri. Now the next step is to integrate this functionality in your existing cityworks application. And this requires - apart from a lot of trial and error - at least some experience with JavaScript and the ArcGIS API for JavaScript 3.x. You indicate you are missing 'something'. But what exactly ae you missing? Did you already manage to create the dialog to select and add the shapefile? Does the shapefile appear in the wrong location? What error messages do you get? This would really require someone to go and sit down to accomplish this. Did you contact Cityworks? Are they able to help? BR, Egge-Jan
... View more
04-21-2020
02:45 AM
|
6
|
2
|
2468
|
|
POST
|
Hi Aldwin Gregorio, I guess the CRS (Coordinate Reference System) of your featureSet is something like 102100 or 3857 (most probably both), which is Web Mercator, while the CRS of your input data is not... You can check this by asking for it's spatial_reference like this: In [28]: fs.spatial_reference Out[28]: {'wkid': 102100, 'latestWkid': 3857} So, you will have to convert your input data to Web Mercator during the import process. HTH, Egge-Jan
... View more
04-20-2020
05:17 AM
|
0
|
3
|
1635
|
|
POST
|
Hi Majdoleen Awadallah, Did you have a look at the samples provided by Esri? Create a FeatureLayer from a shapefile | ArcGIS API for JavaScript 4.15 or Add shapefile | ArcGIS API for JavaScript 3.32 HTH, Egge-Jan
... View more
04-19-2020
06:17 AM
|
7
|
4
|
2468
|
|
BLOG
|
Hi Katherine Clark, Please have a look at the screen capture of the DOSBox below. I did create a new folder on my C:\-drive specifically for this test (Yes, the folder is called Katherine :-)) In this folder I placed the two files agol_group_membership.py and provide_credentials.py (for the content of these files, see code in post above) And then I did run the following command: "C:\Program Files\ArcGIS\Pro\bin\Python\scripts\propy.bat" agol_group_membership.py Please note: It is very important to run this script in combination with the bat file mentioned to make sure you run it in the correct ArcGIS/Python environment (This batch file comes with the installation of ArcGIS Pro). Without making sure you use this correct environment the script will fail anyway... Please let me know if this works for you. Stay safe, stay home - have a nice weekend. Egge-Jan
... View more
04-17-2020
01:23 PM
|
0
|
0
|
2714
|
|
BLOG
|
Hi Jeff Timm, Has the file not just been created in the same folder where the Python script resides? BR, Egge-Jan
... View more
04-16-2020
11:58 PM
|
0
|
0
|
2714
|
|
POST
|
Hi Lukas Würsch, Did you have a look at this very cool masking example? Masking effect using a custom layer view | ArcGIS API for JavaScript 4.15 (It uses the JSAPI 4.x which is the successor of the JSAPI 3.x) An please note: This sample shows experimental functionality, please read the documentation carefully before using it in a product. BR, Egge-Jan
... View more
04-14-2020
04:53 AM
|
0
|
2
|
1805
|
|
POST
|
Hi rajni sharma, Do you mean something like this? Your own little div on the map...? See html below HTH, Egge-Jan <html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>ArcGIS JavaScript Tutorials: Create a Starter App</title>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.14/esri/themes/light/main.css">
<script src="https://js.arcgis.com/4.14/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
], function(Map, MapView) {
var map = new Map({
basemap: "topo-vector"
});
var view = new MapView({
container: "viewDiv",
map: map,
center: [-118.80500, 34.02700],
zoom: 13
});
var myWidget = document.createElement("div");
myWidget.id = "myWidget";
myWidget.className = "esri-widget esri-component";
myWidget.style.padding = "7px 15px 5px";
view.ui.add(myWidget, "bottom-right");
var myValue = "Your calculation here"
myWidget.innerHTML = myValue
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
04-02-2020
05:12 AM
|
0
|
0
|
1198
|
|
POST
|
Hi rajni sharma, Did you have a look at these samples? Add labels to a FeatureLayer | ArcGIS API for JavaScript 4.14 Multi-line labels | ArcGIS API for JavaScript 4.14 Label features using Arcade expressions | ArcGIS API for JavaScript 4.14 Add multiple label classes to a layer | ArcGIS API for JavaScript 4.14 BR, Egge-Jan
... View more
04-02-2020
04:35 AM
|
0
|
2
|
1198
|
|
POST
|
Hi rajni sharma, Please see the example below. Here you can turn labels on and off in the layer list. HTH, Egge-Jan Aan de slag met ArcGIS JavaScript - Labels aan- of uitzetten
... View more
04-02-2020
03:39 AM
|
0
|
4
|
1198
|
|
POST
|
Hi Jamal NUMAN, In general it is not a good idea to give two different columns the same alias. So the quickest solution would be to modify one of the two aliases. Alternatively you could choose to keep Field Name and Alias identical, just to avoid the confusion which is so often caused by the use of aliases. HTH, Egge-Jan
... View more
04-02-2020
01:43 AM
|
7
|
0
|
1374
|
|
POST
|
Hi rajni sharma, For an example with all the buttons aligned one below another in the top left corner, see this map. The buttons are added to the view.ui like this: view.ui.add([aboutExpand, searchWidgetExpand, zoom, homeWidget, compass, basemapGalleryExpand, layerListExpand], "top-left"); If you replace the top-left with bottom-right, the buttons will appear in that other corner, but aligned horizontally (instead of vertically). There is also an option manual. Using manual allows you to place the component in a container where you can position it anywhere using CSS. HTH, Egge-Jan
... View more
04-01-2020
02:28 AM
|
0
|
1
|
1421
|
|
POST
|
... so that would be this WKID:102100/EPSG:3857 thing, as I mentioned above.
... View more
03-31-2020
09:12 AM
|
0
|
0
|
3582
|
|
POST
|
Hi Michael Richards, You may wish to vote for this Idea: Group layers for ArcGIS online. It looks like someone has already suggested this in 2014 and the status of the idea now is: In Product Plan. So, maybe, somewhere in the future, maybe even in the foreseeable future... BR, Egge-Jan
... View more
03-31-2020
09:10 AM
|
1
|
1
|
2308
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-30-2020 09:03 AM | |
| 2 | 12-12-2024 03:56 AM | |
| 2 | 04-15-2024 03:25 AM | |
| 2 | 03-25-2024 02:06 PM | |
| 1 | 01-17-2024 10:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-19-2025
02:25 AM
|