|
POST
|
Hi Adeeb Farhan, Which version of the ArcGIS API for JavaScript are you using? 3.x or 4.x? The links provided by Robert Scheitlin, GISP above are obviously for the legacy 3.x version. The relevant links for the 4.x version are: documentation: request | ArcGIS API for JavaScript 4.15 sample: Request data from a remote server | ArcGIS API for JavaScript 4.15 HTH, Egge-Jan
... View more
07-05-2020
02:46 PM
|
1
|
1
|
1443
|
|
POST
|
Hi Tim Jackson, That's what the GeoNet Community is there for: to help 🙂 And it is always good to just try something out: trial-and-error, learning-by-doing, that's the way forward 🙂 So, in the end my first answer seemed to be right, didn't it? You may close the call by marking the answer as correct. There are many questions on this forum which remain open, even though a correct answer has been given. Cheers, Egge-Jan
... View more
07-04-2020
01:51 PM
|
1
|
0
|
1948
|
|
POST
|
Hi Tim Jackson, Yeah, that's what you have indicated already in your initial post, that everything has been working fine until very recently. Hmmm, something somewhere must have changed between the moment it did still work and the moment it didn't any longer... And now the trick would be to identify that change. (Please note: I am not from Esri. Just a fellow Esri user trying to help :-)) Did you change the code of your app recently? Another thing I noted: you are using version 4.16 of the JS API: <script src="https://js.arcgis.com/4.16/"></script>. This version has not yet officially been released. Current version is 4.15 Hope you will find a solution. Please let us know when you do. BR, Egge-Jan
... View more
07-04-2020
12:23 PM
|
0
|
0
|
1948
|
|
POST
|
Hi Tim Jackson, In the second app, the one with the Ordnance Survey layer, an error message pops up in the console: "The spatial reference of this layer does not meet the requirements of the view" (see screen capture attached) I guess the OS layer is in British National Grid (EPSG:27700), whereas the satellite layer is not. Did you previously point to an OS layer in Web Mercator? HTH, Egge-Jan
... View more
07-04-2020
09:37 AM
|
1
|
3
|
1948
|
|
POST
|
Hi Siyabonga Kubeka, If you think your question has been answered you can close it by marking one of the answers as the correct one. Either the answer given by me or the one given by Robert Scheitlin, GISP, depending on which was most useful to you. In this way it will be clear to other users of this forum with the same question that they can find their answer here. Cheers, Egge-Jan
... View more
07-04-2020
06:30 AM
|
0
|
0
|
3824
|
|
POST
|
Hi Luis, If you think your question has been answered, you might mark it as such. Many questions on this forum remain open, even though in some cases a correct answer has been given... BR, Egge-Jan
... View more
07-02-2020
05:53 AM
|
2
|
0
|
2180
|
|
POST
|
Hi Siyabonga Kubeka, You can add a widget to a view with view.ui.add() . Similarly you can remove this same widget, to effectively hide it, with view.ui.remove() . So, with an if - else statement you can accomplish what you want. Please have a look at this example with a similar use case which I have published recently on GeoNet: https://community.esri.com/people/EPolle_TensingInternational/blog/2020/06/14/arcgis-javascript-tutorial-watchutils-only-add-compass-widget-when-needed With the Compass widget you can reset the compass orientation to 0 (i.e. with north at the top of the view). But you really only need this widget when the map is rotated, which most often is not the case. So, by checking the rotation of the view I decide to either show (add) or hide (remove) the Compass widget: watchUtils.whenTrue(view, "stationary", function() {
if (view.rotation == 0){
view.ui.remove(compassWidget);
} else {
view.ui.add(compassWidget, "top-left");
}
}) (Full code in the blog post mentioned above) In this example the view starts wit a rotation of 45 degrees, so the Compass widget is shown. The moment you click the button, the view rotation is reset to exactly 0, and the button (magically :-)) disappears from the screen. Now you can grab the map ( right-click + drag with the mouse) to rotate it and aww there it is again! Back to step 2, and so on Is this useful to you? Cheers, Egge-Jan
... View more
07-02-2020
05:45 AM
|
3
|
2
|
3824
|
|
POST
|
Hi Luis Batalha, If I understand the Esri Leaflet - Terms well, you can use the library (and the underlying Esri data) for free for most public, non-commercial applications. As long as the number of map transactions does not surpass 1 million per month. So, as long as you are not generating any revenue and your app is not going viral, you're good to go, I guess. BR, Egge-Jan
... View more
07-02-2020
05:02 AM
|
2
|
0
|
2180
|
|
POST
|
Hi Jason Wood, Yes, you are close. You are new to mapping & ArcGIS, didn't you say so? So, the next topic to study is: the spatial reference of your data... You added a feature layer and - unless you specify it explicitly - this will get the default spatial reference of 102100 (aka 3857): "spatialReference" : {"wkid" : 102100, "latestWkid" : 3857} (EPSG:3857 is a Spherical Mercator projection coordinate system popularized by web services such as Google and later OpenStreetMap, and also being used by Esri, with WKID:102100). On the other hand, It looks like your input x and y are in WGS84 (EPSG:4326). Your input is x:-79.419591 and y:43.647131. In WGS84 this will bring you to a point in Toronto, but in this Web Mercator projection it is close to zero. So, that's why you ended up where you ended up 🙂 I did use this site to transform your input coordinates: https://epsg.io/transform#s_srs=4326&t_srs=3857 and that gives me x: -8840948.43 and y: 5410996.30. These new values bring me to a building on the corner of Ossington Ave and Argyle St in (downtown?) Toronto, Canada. Is that the location you were after? HTH, Egge-Jan
... View more
07-02-2020
04:41 AM
|
3
|
1
|
4782
|
|
POST
|
Hi Anand, With the ArcGIS JS API you can create new Basemap objects, which you can combine into a LocalBasemapsSource to be used in a BasemapGallery. So, if you have any localized basemaps available you can follow this route to ad them to your map. Here is a little example with basemaps for the UK from Ordnance Survey: https://community.esri.com/people/EPolle_TensingInternational/blog/2020/03/24/arcgis-javascript-with-uk-data-os-basemapgallery HTH, Egge-Jan
... View more
07-01-2020
05:00 AM
|
0
|
1
|
2401
|
|
POST
|
Hi Alexandra Luisa Højgaard Wood, Yes, this is possible. Please have a look at this page: Create hosted feature layer views—ArcGIS Online Help | Documentation If you need a different view of the data represented by a hosted feature layer—for example, you want to apply different editor settings, styles or filters—create a hosted feature layer view of that hosted feature layer. Once you have a view, you can define which features or fields are available in the hosted feature layer view and share the view to groups whose members need access to that view of the data. HTH, Egge-Jan
... View more
07-01-2020
03:09 AM
|
0
|
0
|
1253
|
|
POST
|
Dear community, Hi all, Is it possible to add Levels of Detail (LODs) to a MapView, using the ArcGIS API for JavaScript 4.x? I have created a little map showing aerial imagery of the Dutch railway network: https://twiav.nl/cursus/arcgis/javascript/cursus_arcgis_javascript_wmslayer_toevoegen.htm?x=135908&y=455938&n=16 (it will not be possible to zoom in any further from this point...) The max zoom level in this map is 16. This is decided for by the basemap used (in this case: https://www.arcgis.com/home/item.html?id=7aea6fa913a94176a1074edb40690318 ). The quality of the imagery, however, would allow zooming in a little further into the assets along the railroad track, i.e. a level 17, 18, 19, 20 and 21 would be welcome. So, the questions is: how to add these additional LODs manually, if possible? In comparison: I have created a similar map (using Leaflet) where I managed to add these additional levels irrespective of the limitations given by the basemaps used: https://twiav.nl/nl/luchtfoto_prorail.php#19/52.09136/5.10865 (this is more or less the same location, but now at zoom level 19, with 2 more levels to zoom in still available). Any insights? Thanks in advance. Egge-Jan
... View more
06-30-2020
10:53 AM
|
0
|
2
|
2068
|
|
POST
|
Hi Jason Wood, Yes, you can use the ArcGIS REST API to add a feature (e.g. a point) directly to a Feature Service through an HTTP POST request. And this point will become visible on the map. Eduardo Fernandez gives some links to useful resources above. I will extend the answer here with a hands-on exercise. IN this exercise you will use the Hazards service from the Editor widget example: https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Hazards_Uptown_Charlotte/FeatureServer/0 (This is a public service, maintained by Esri's jsapi_team. You can add records freely to this service, for testing purposes. I guess they remove the records every now and then...) We want to report a hazard, a wild animal: let's pretend we have seen a gorilla in the center of Paris!! Go to https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Hazards_Uptown_Charlotte/FeatureServer/0/addFeatures and enter the feature you want to add: [
{
"attributes" : {
"HazardType" : "Dangerous Animal",
"Description" : "We have seen a gorilla in the vicinity of the Effel Tower",
"SpecialInstructions" : "No Action",
"Status" : "Active",
"Priority" : "High"
},
"geometry" : {
"x" : 255422,
"y" : 6250838
}
}
] As soon as you click Add Features, your Gorilla Warning will be added to the service and hence be added to the map. Is this example useful to you? Best regards, Egge-Jan
... View more
06-30-2020
10:24 AM
|
3
|
0
|
4782
|
|
POST
|
Hi Wade, Bryan, I am not sure, but I ha a similar issue sometime ago: MS Flow does not run when Survey123 response is submitted (At that time MS Power Automate was still called MS Flow...) My issue was solved after downloading the survey again: However, in this section I also found a link to additional documentation Webhooks—Survey123 for ArcGIS | ArcGIS with a brilliant remark: Note: If the survey you apply a webhook to has already been downloaded in the Survey123 field app, it will need to be downloaded again for the webhook to work. Does this solve your issue? BR, Egge-Jan
... View more
06-30-2020
08:40 AM
|
3
|
3
|
2578
|
|
POST
|
Hi Jonathon Moses, Please see link below: NUTS - Eurostat This will lead you directly to the source at Eurostat. From here you can download NUTS 2016 geodata is different file formats: SHP, TopoJSON, geoJSON, GDB and SVG. Access to the datasets is additionally provided via the GISCO data distribution REST API which includes data in different projections. HTH, Egge-Jan
... View more
06-24-2020
09:17 AM
|
1
|
2
|
4395
|
| 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
|