|
POST
|
Hi Amin Bangash, Somehow you will have to create a URL to Google Maps with the information available in your data set. You can either use the coordinates or address information (if available). Using Maps URLs, you can build a universal, cross-platform URL to launch Google Maps and perform searches, get directions and navigation, and display map views and panoramic images. The URL syntax is the same regardless of the platform in use. You don't need a Google API key to use Maps URLs. Developer Guide | Maps URLs | Google Developers HTH, Egge-Jan
... View more
06-24-2020
05:21 AM
|
1
|
1
|
820
|
|
POST
|
Hi Vincent Launstorfer, You are right: if you open your Web Map in the Map Viewer, the window for the table only offers limited functionality. And to zoom in to a selected feature, you really have to select Center on Selection from the top-right menu, as you have discovered. This is the way it has been designed 😞 A solution to this issue, a workaround, would be to build a little Web Mapping Application with the Web AppBuilder for ArcGIS (which comes with Portal for ArcGIS). If you put your map in this app, you will have access to a table window with slightly more functionality. Now you can just double-click on a row (in this case Amsterdam) to immediately zoom to the selected record. See screen captures attached. HTH, Egge-Jan
... View more
06-24-2020
04:53 AM
|
1
|
1
|
1805
|
|
POST
|
Hi Erica Newton, I noticed that you marked my answer as being correct. Thanks for that. Just out of curiosity: did you manage to replicate the MS Access database form in a satisfactory way, showing all the relevant information in the AGOL popup? BR, Egge-Jan
... View more
06-22-2020
06:30 AM
|
1
|
0
|
1966
|
|
POST
|
Hi Luke Allen, Did you have a look at the example in this blog? Bring Colors From Your Map Into Your Pop-up Using Arcade I am not sure whether it is possible to use RGB values as such, but it would be better to use hexadecimal color values instead. You will find plenty of RGB to hex convertors on the web, so if you pick blue (0,0,255) it should not be difficult to find the hexadecimal value #0000ff. And the same is true for the other (255*255*255-1=) 16,581,374 possible values. HTH, Egge-Jan
... View more
06-22-2020
05:25 AM
|
0
|
0
|
1880
|
|
POST
|
Hi Christian Bischof, No, apparently not... When your image is hosted in a different domain as the application, you should make sure that the server the image is hosted on is CORS enabled. Or you should install a proxy... When I tried this sometime ago (Aan de slag met ArcGIS JavaScript - CSV bestand toevoegen), I ended up using the most simple solution: I copied the image to my own server. I did not (not yet) get one of the other two options to work, so I am not able to give you any insights into these... BR, Egge-Jan
... View more
06-22-2020
03:58 AM
|
2
|
0
|
2677
|
|
POST
|
Hi Christian Bischof, Yeah, the easiest way is to use an image hosted on the same domain as the application. That works, as you have already noted. Alternatively: To avoid CORS issues with this symbol, do one of the following: Make certain that the image is hosted on a CORS enabled server. Use an image hosted on the same domain as the application. Install a proxy. More info here: PictureMarkerSymbol | ArcGIS API for JavaScript 4.15 HTH, Egge-Jan
... View more
06-22-2020
03:02 AM
|
2
|
2
|
2677
|
|
POST
|
Hi Emily Holmes, Silly questions do not exist, but silly answers do... 🙂 I think my answer is similar to the one Dan Patterson is pointing to. See screen capture below for details. HTH, Egge-Jan
... View more
06-18-2020
07:57 AM
|
2
|
1
|
829
|
|
POST
|
Hi Arthur Genet, Can you please indicate which Scene Layer from the Living Atlas you are using? And would it be possible to share the code of your app? With this additional information someone in the community might be able to help. BR, Egge-Jan
... View more
06-17-2020
03:51 AM
|
1
|
0
|
980
|
|
POST
|
Hi Chris Smith, Yeah, I know what you mean. And I would, like you and probably many others, be very interested in a simple, elegant and smooth solution for hover/tooltips in the ArcGIS API for JavaScript. It does not exist, though, I am afraid. Via the link below you will find an application which I did build some time ago, just a simple map showing railway stations as blue dots. And when you hover over them their name pops up! Brilliant! That's what I want! I don't want to click ten times before identifying the correct railway station. I just want to see their name right away when I hover over them. TWIAV - Tips & trucs - Luchtfoto's ProRail (in EPSG:28992) But yeah, that's not ArcGIS API for JavaScript, it is Leaflet. And you know, as they state on their website: Leaflet is designed with simplicity, performance and usability in mind. BR, Egge-Jan
... View more
06-16-2020
01:58 PM
|
2
|
0
|
6745
|
|
POST
|
Hi Allen Dailey, Hmmm, I am not sure, but it doesn't looks like there is any invalid syntax in line 1... "import arcpy", what can be wrong with that?! I have always been taught, when looking for the error, to also have a look at the line before and/or the line after the one indicated by the parser. So, let's have a look at line 2, the line where you set the path to your data: you are using backslashes here. And maybe that's what is hurting... You should replace these backslashes either by forward slashes, or by double backslashes. HTH, Egge-Jan More info: Setting paths to data in Python—ArcPy Get Started | Documentation Programming languages, such as Python, treat a backslash (\) as an escape character. For instance, \n represents a line feed, and \t represents a tab. When specifying a path, a forward slash ( /) can be used in place of a backslash. Two backslashes can be used instead of one to avoid a syntax error. A string literal can also be used by placing the letter r before a string containing a backslash so it is interpreted correctly.
... View more
06-16-2020
01:32 PM
|
1
|
1
|
2224
|
|
BLOG
|
https://community.esri.com/people/EPolle_TensingInternational/blog/2020/06/14/tutorial-arcgis-api-for-javascript-4x-table-of-contents watchUtils: only add Compass Widget when needed In general maps are oriented north. This is a widely used convention in cartography. And the same is true for most web maps. With the ArcGIS API for JavaScript 4.x however it is possible to rotate the map on the screen. The user can rotate the map (or rather the view) in two ways: right-click + drag with the mouse tapping the A and D keys You, as a developer, can also use programmatic navigation by adjusting MapView.rotation To allow the user to reset the compass orientation to 0 (i.e. with north at the top of the view) you have to add a Compass widget to the view. This widget indicates where north is in relation to the current view rotation. Clicking the widget rotates the view back to face north (heading = 0). So, in a sense, you could say that you only need this Compass widget when the map is not oriented north. Or, the other way round: most of the time the Compass widget is not needed, because the map is "correctly" oriented. In the sample below we only add the Compass when the user rotates the map (be it by accident or on purpose). And the moment the compass orientation has been reset to 0 we remove it again. To check the orientation of the view we use watchUtils like this: watchUtils.whenTrue(view, "stationary", function() {
if (view.rotation == 0){
view.ui.remove(compassWidget);
} else {
view.ui.add(compassWidget, "top-left");
}
}) Below you will find the full code of this sample, and you can view it live: ArcGIS JavaScript Tutorial - Add Compass Widget only when needed <html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"/>
<title>ArcGIS JavaScript Tutorial - Add Compass Widget only when needed</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/themes/light/main.css"/>
<script src="https://js.arcgis.com/4.15/"></script>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/widgets/Compass",
"esri/core/watchUtils"
], function(Map, MapView, Compass, watchUtils) {
var map = new Map({
basemap: "national-geographic"
});
var view = new MapView({
container: "viewDiv",
scale: 500000,
center: [26.26, 39.17],
rotation: 45,
map: map
});
var compassWidget = new Compass({
view: view
});
// Watch view's stationary property for becoming true to check the rotation
// If the rotation equals 0 (i.e. map is oriented North) remove the compass widget,
// otherwise add this widget
watchUtils.whenTrue(view, "stationary", function() {
if (view.rotation == 0){
view.ui.remove(compassWidget);
} else {
view.ui.add(compassWidget, "top-left");
}
})
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
06-14-2020
01:06 PM
|
0
|
0
|
1410
|
|
BLOG
|
Since early 2019 I have written a number of blogs here on GeoNet. Most of these posts cover tips and tricks on the use of the ArcGIS API for JavaScript 4.x. And, since I am still playing around with this API, more contributions will surely follow. A considerable number of my posts are written in Dutch, my mother tongue, but some are in English. Below you will find a (growing) list of the tutorials in English. For an overview of the tutorials in Dutch, you can have a look here: https://community.esri.com/people/EPolle_TensingInternational/blog/2019/06/02/aan-de-slag-met-arcgis-javascript-inleiding Tutorials - ArcGIS API for JavaScript 4.x https://community.esri.com/people/EPolle_TensingInternational/blog/2019/07/16/arcgis-javascript-tutorial-use-watch-handler-on-scale-of-view https://community.esri.com/people/EPolle_TensingInternational/blog/2020/06/14/arcgis-javascript-tutorial-watchutils-only-add-compass-widget-when-needed
... View more
06-14-2020
07:49 AM
|
0
|
0
|
1342
|
|
POST
|
Hi Anat Ben Israel, The current version (100.8, released May 2020) does not support Windows 7: System requirements for 100.8.0—ArcGIS Runtime SDK for Qt | ArcGIS for Developers The same might be true for the previous version 100.7 (released December 2019), knowing that Microsoft has ended extended support for Windows 7 on January 14, 2020. Maybe time to upgrade your OS 🙂 BR, Egge-Jan
... View more
06-03-2020
07:00 AM
|
0
|
1
|
1503
|
|
POST
|
Hi Yaniv Lev, It is possible to create your own custom widgets for use in the JS API: Widget development | ArcGIS API for JavaScript 4.15 The ArcGIS for JavaScript API provides a set of ready-to-use widgets. Beginning with version 4.2, it also provides a foundation for you to create custom widgets. HTH, Egge-Jan
... View more
06-03-2020
05:01 AM
|
0
|
0
|
1355
|
|
POST
|
Hoi Vincent Duijnhoven, Het is mij gelukt om jouw service te benaderen, en ik kan hem in de Map Viewer toevoegen, zowel as basiskaart als als laag, zie bijgevoegde schermafdruk. Is het jou ondertussen ook gelukt, of nog steeds niet? Wat voor foutmeldingen krijg je? Groet, Egge-Jan
... View more
06-03-2020
04:23 AM
|
1
|
1
|
1664
|
| 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
|