|
POST
|
Bonsoir Eric DUCOS, Avez-vous jeté un oeil à l'ArcGIS REST API ? ArcGIS REST API | ArcGIS for Developers HTH, Egge-Jan
... View more
12-04-2019
09:02 AM
|
0
|
4
|
5534
|
|
POST
|
Hi Mark Cooper, I regularly use the ArcGIS Online Assistant to log in to Portal. How come this route doesn't work for you? Egge-Jan
... View more
12-02-2019
05:34 AM
|
0
|
1
|
915
|
|
POST
|
Hi Wordsworth Trust, Using ArcMap, you could create a Feature Class from your CSV and enable attachments for this Feature Class. In this way you can attach your images and publish your data to a Feature Layer (with images attached), all from within ArcMap. HTH, Egge-Jan
... View more
11-29-2019
04:55 AM
|
1
|
0
|
863
|
|
POST
|
Hi kawish abbas, Thanks for your reaction. If you think your question has been answered now, would you please be so kind to mark one of the answers as correct. In this way it will be clear to the community that your issue has been solved. Cheers, Egge-Jan
... View more
11-28-2019
05:38 AM
|
0
|
0
|
3038
|
|
POST
|
Hi kawish abbas, By pure coincidence (I didn't see your post) I posted a similar question today: ArcGIS JavaScript: Toggle Labels On and Off? And, as Noah Sager states above, it really is an issue with the 4.13 version of the ArcGIS API for JavaScript. It worked fine in 4.12, and will work again in 4.14. Please note: you can already use a prerelease version of the 4.14 API: <link rel="stylesheet" href="https://js.arcgis.com/4.14/esri/css/main.css"> <script src="https://js.arcgis.com/4.14/"></script> By the way, I have chosen to use an action button in the LayerList widget (instead of your checkbox). You can find my working solution here: Aan de slag met ArcGIS JavaScript - Labels aan- of uitzetten Hope this helps. Please let us know what you think. Cheers, Egge-Jan
... View more
11-27-2019
02:30 PM
|
1
|
2
|
3038
|
|
POST
|
Hi Ken Buja, OK - known issue... So, my idea that I wanted to add an action to the LayerList widget to turn on and off the labels was right, and actually the way I did implement it was also OK, but for the 4.13 version of the ArcGIS API for JavaScript having an issue here... I changed the library to 4.12 and then my solution worked fine 🙂 And as Noah Sager states here (Label Geometry with CheckBox ) the issue will be solved in 4.14. This version is due to be released in December 2020 (reasonably soon), but of course a beta version is already available. So in the end I just decided to use 4.14, and that worked out fine: <link rel="stylesheet" href="https://js.arcgis.com/4.14/esri/css/main.css"> <script src="https://js.arcgis.com/4.14/"></script> I did publish the final working solution here: Aan de slag met ArcGIS JavaScript - Labels aan- of uitzetten Thanks, Egge-Jan
... View more
11-27-2019
02:12 PM
|
1
|
0
|
5125
|
|
POST
|
Hi community, I think I need your help 🙂 Using the ArcGIS API for JavaScript 4.13 I have created a web map containing a FeatureLayer. Now I want to be able to toggle the labels for this layers on and off. Initially I have set the labelsVisible property to false (Labels invisible :-)). By clicking the labels button in the layerlist once I set this property to true and the labels appear 🙂 With this labels button I can now toggle this property between true and false, but the labels are not removed when the property is set to false... What should I do to get rid of the labels? See screen capture and full code below to see what I have accomplished up to now. Any suggestions highly appreciated. TIA, Egge-Jan <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Aan de slag met ArcGIS JavaScript - Labels aan- of uitzetten</title>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.13/esri/css/main.css">
<script src="https://js.arcgis.com/4.13/"></script>
<script>
require([
"esri/Map",
"esri/geometry/Point",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/widgets/LayerList",
"esri/widgets/Expand"
], function(Map, Point, MapView, FeatureLayer, LayerList, Expand) {
var map = new Map({
basemap: {
portalItem: {
id: "7aea6fa913a94176a1074edb40690318" // Topo RD
}
}
});
var popupTemplate = { // autocasts as new PopupTemplate()
title: "Provincie",
content: "{Provincienaam}"
};
var renderer = {
type: "simple", // autocasts as new SimpleRenderer()
symbol: {
type: "simple-fill", // autocasts as new SimpleFillSymbol()
style: "none", // The polygon has no fill
outline: { // autocasts as new SimpleLineSymbol()
width: 1.5,
color: "#F5B041" // Hex Color Code
}
}
};
const labelClass = {
// autocasts as new LabelClass()
symbol: {
type: "text", // autocasts as new TextSymbol()
color: "green",
haloColor: "black",
font: { // autocast as new Font()
family: "Playfair Display",
size: 12,
weight: "bold"
}
},
labelPlacement: "above-center",
labelExpressionInfo: {
expression: "$feature.Provincienaam"
}
};
var nederlandseProvinciesLayer = new FeatureLayer({
url: "https://services.arcgis.com/nSZVuSZjHpEZZbRo/arcgis/rest/services/Bestuurlijke_Grenzen_Provincies_2019/FeatureServer/0",
title: "Provincies (2019)",
popupTemplate: popupTemplate,
renderer: renderer,
labelingInfo: [labelClass],
labelsVisible: false
});
map.add(nederlandseProvinciesLayer);
var view = new MapView({
spatialReference: 28992,
container: "viewDiv",
map: map,
center: new Point({x: 155000, y: 463000, spatialReference: 28992}),
zoom: 3
});
var layerList = new LayerList({
view: view,
listItemCreatedFunction: function(event){
const item = event.item;
item.actionsSections = [
[
{
title: "Labels",
className: "esri-icon-labels",
id: "labels"
}
]
];
}
});
layerList.on("trigger-action", function(event) {
if (event.action.id === "labels") {
if (nederlandseProvinciesLayer.labelsVisible == false) {
nederlandseProvinciesLayer.labelsVisible = true;
console.log(nederlandseProvinciesLayer.labelsVisible);
} else {
nederlandseProvinciesLayer.labelsVisible = false;
console.log(nederlandseProvinciesLayer.labelsVisible);
}
}
});
layerListExpand = new Expand({
expandIconClass: "esri-icon-layer-list", // see https://developers.arcgis.com/javascript/latest/guide/esri-icon-font/
expandTooltip: layerList.label,
view: view,
content: layerList,
expanded: true,
group: "top-right"
});
view.ui.add([layerListExpand], "top-right");
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
11-27-2019
09:33 AM
|
0
|
3
|
5461
|
|
POST
|
Hi Persefoni Kapotas, Did you see this thread: Hosted Feature Layer - delete one of the layers within it? This question - similar to yours - was posted in January 2016, but the most recent answer (by Joe Catanzarita) dates from January 2019. It involves the use of ArcGIS Online Assistant and Joe gives a step-by-step description on how to remove a single layer from a hosted feature service. HTH, Egge-Jan
... View more
11-25-2019
05:33 AM
|
3
|
2
|
11977
|
|
POST
|
Hi Majdoleen Awadallah, Recently, I did create a little app - with the ArcGIS API for JavaScript 4.x - with a custom tool to enter WGS84 Coordinates to zoom to a certain point, see screen capture attached. You can find (the source code of) the app here: ArcGIS JavaScript Tutorial - Go to Latitude/Longitude I hope this provides you with some inspiration to integrate this functionality in your app. Cheers, Egge-Jan
... View more
11-13-2019
04:07 AM
|
6
|
1
|
2257
|
|
POST
|
Hi irtiza hussain, Did you have a look at this sample? Search Widget | ArcGIS API for JavaScript 4.13 Is this what you are looking for? HTH, Egge-Jan
... View more
11-12-2019
08:25 AM
|
1
|
3
|
1475
|
|
POST
|
Hi Liang Jiang, No, I do not agree 🙂 With this code - written ages ago - you do not paste multiple lines in the IE text box. Instead you convert a multi line string in a single line string before pasting it..... And this would only be necessary for IE, because modern browsers do not mind pasting multi line strings. So this would require an additional check, to see what browser is being used. Again: I would suggest to forget about Internet Explorer altogether 🙂 Egge-Jan
... View more
11-07-2019
09:06 AM
|
0
|
1
|
3351
|
|
POST
|
If you think my answer is right, you might mark it as the correct one 🙂
... View more
11-07-2019
08:54 AM
|
0
|
0
|
3351
|
|
BLOG
|
Hoi Ellen van den Bergen Jeske van der Velden, Dit is mooi nieuws! OpenStreetMap is een heel mooi product, en deze 'gemeenschapskaart' heeft voor Nederland een zeer hoge kwaliteit. Dus het is mooi dat jullie deze nu in RD (EPSG:28992) gaan aanbieden via ArcGIS Online. Vraagje: Now that we know What's coming, the next question would be: When is it coming? Binnenkort? :-):-):-) Groet, Egge-Jan P.S. die geocoder op basis van POIs klinkt ook mooi. Ik kijk er naar uit!
... View more
11-07-2019
03:16 AM
|
3
|
0
|
2081
|
|
POST
|
Hi Ori Gudes, GTFS = General Transit Feed Specification, I suppose? Did you have a look at An overview of the Transit Feed (GTFS) toolset—Conversion toolbox | ArcGIS Desktop? This toolbox in ArcPro does contain the tools GTFS Shapes To Features en GTFS Stops To Features. These Features can then be published to ArcGIS Online. HTH, Egge-Jan
... View more
11-07-2019
02:29 AM
|
0
|
0
|
1165
|
|
POST
|
Hi Liang Jiang, You more or less answer the question by posing it. You mention several modern browsers who handle the pasting of multiple lines of value very well. If the user chooses to stick with good "old" Internet Explorer, he/she should accept the limitations of this application... HTH, Egge-Jan
... View more
11-07-2019
01:11 AM
|
1
|
5
|
3351
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-11-2019 08:58 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
11-19-2025
02:25 AM
|