POST
|
thanks, that helped a lot I only need to work on the drag and drop effect for now 🙂
... View more
4 weeks ago
|
1
|
0
|
71
|
POST
|
Hi folks, I have a FeatureLayer with features which are rendered with a UniqueValueRenderer (based on their status they show on the map visualized by custom images img1 img2 or img3. This works well. I have also applied clustering successfully. Now I want to change the symbology for those features which are clustered to simply show up with a SimpleMarkerSymbol Circle and the amount of features of the cluster inside. How could I achieve this? Thanks in advance, Christian
... View more
4 weeks ago
|
0
|
1
|
46
|
POST
|
Hi folks, I have seen this roads and highways sample and want to recreate it by using the JS API 4.17: Drag and Drop XY Locations (esri.com) If anybody could provide some suggestions of a sufficient workflow, I'd appreciate that! Thanks in advance 🙂
... View more
12-16-2020
06:07 AM
|
0
|
2
|
106
|
POST
|
You're welcome, allways a pleasure to help each other - nice solution with the tags!
... View more
12-16-2020
05:58 AM
|
0
|
0
|
94
|
POST
|
Maybe you are treating it the wrong way as it is technically not a JS function, but a Promise. Here is the Doc to the fetchData Promise: PortalItem | ArcGIS API for JavaScript 4.17 Promise - JavaScript | MDN (mozilla.org) You can try the logic of the code sample below: let testPortalItem = new PortalItem({
id: "af1ad38816814b7eba3fe74a3b84412d"
});
let responseData = testPortalItem.load().then((response) => {
console.log(response);
response.fetchData().then((meep) => { console.log(meep)} ).catch((err) => { console.log(err) })
}).catch(error => {
console.log(error);
}); the default value of fetchData() is json.
... View more
12-10-2020
03:21 AM
|
2
|
2
|
107
|
POST
|
Maybe you could use the fetchData() Promise from the PortalItem Class instead of the load() Promise you are using right now. You can specify the responseType there. I guess if you choose JSON for example you could possibly reduce workload for fetching the data and speed up your process. PortalItem | ArcGIS API for JavaScript 4.17
... View more
12-04-2020
06:24 AM
|
0
|
4
|
144
|
POST
|
I have found the setLocale() Method: Localization | ArcGIS API for JavaScript 4.17 But it only seems to apply changes to the widgets which are used within the webmap, but not the actual webmap. For example the webmaps countries are labeled in English but I need it to be in Russian as it was applied to a widget (here in this example I have used the Measurement widget). Does anybody have an idea how to change the labeling language of the webmap itself and not just its components? Thanks in advance! Code require(["esri/views/MapView", "esri/WebMap", "esri/intl", "esri/widgets/Measurement"], function (
MapView,
WebMap,
intl,
Measurement
) {
var webmap = new WebMap({
basemap: 'topo'
});
var view = new MapView({
map: webmap,
container: "viewDiv"
});
const measurement = new Measurement({
view: view,
activeTool: "distance"
});
view.ui.add(measurement, "top-right");
view.when(function () {
intl.onLocaleChange(function(locale) {
console.log("locale changed to: ", locale);
});
intl.setLocale("ru");
});
});
... View more
12-04-2020
06:12 AM
|
0
|
0
|
59
|
POST
|
Hi guys we got some support questions from customers in which we are interested if anyone of you knows more about these issues and maybe how to achieve them with the tools available right now. 1) Is it true right now only points are supported for clustering? If yes: is it planned to support other geometry types as well, e.g. lines and polygons? We already opened an issue and an enhancement request for this topic - see: https://my.esri.com/#/support/cases/02553289 https://my.esri.com/#/support/bugs/ENH-000130897 2) Is is planned to support an „exploding animation“ for clusters on click (and/or mouseover) to get an object for each clustered object to access the individuell object information (via pop-up)? as shown in the uploaded pictures: 2_clusteranimation and 2_clusteranimation_popup 3) Is it true, that right now only FeatureServer services are supported for clustering? If yes: is it planned to support other service types as well, e.g. MapServer services? 4) Are there any plans to adopt the functionality which could make it possible to see which types of features and how many of them per category are clustered? as shown in the uploaded picture: 4_clusteranimation_advancedlabeling Thanks for your suggestions, opinions and information in advance! Best regards! Christian PS: With the currently available tools of the ArcGIS JS API maybe point 2) could be solved like this (maybe even point 4 with a similar approach, just not on a mouse event, but as soon as the MapView is ready) do a hitTest at mouseover/click on cluster https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest if hitTest isnt' the right choice maybe try query the feature layer at the current pointer position https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html then add the returned features as Graphics to the MapView (obviously adding the needed GraphicsLayer previously) create a popupTemplate for the newly added Graphics if the pointer leaves the current cluster remove all the Graphics from GraphicsLayer
... View more
07-15-2020
06:43 AM
|
0
|
0
|
60
|
POST
|
Thanks Mehdi Pira ! This is definitely a way in the right direction. Although I forgot to mention, that I need to calculate the distances based on a street network (SMP) and the results from your approach are direct lines between the points, right? Thank you anyway for the "Excel Hint" this was also very helpful! If anybody could suggest if I should rather try to implement a solution with ODCM Matrix or CF, maybe just a Route? The only thing we need is the distance in km.
... View more
07-07-2020
01:32 AM
|
0
|
0
|
87
|
POST
|
Hey guys ho ping the network analyst experts can provide me a suggestion for the following task. We have a *.csv file containing about 200k entries each entry lists the origin (XY Point) and the destination (XY Point) and an ID. The only thing we need to get out of the analysis is the Distance in km for each line in the csv file, nothing else (no Route Directions, Shapes etc). CSV ID, start_x, start_y, end_x, end_y values ===============values I was able to implement a script to solve what we need by using a ODCM with arcpy. But the problem is that (if I got it right) the ODCM calculates the routes for every entry which is okay for 1k or something like this but at 200k it takes "years". I am not quite satisfied with this solution because eventually I already know from which origin to which destination the route should be taken and I can't make it work using the Routing approach instead of ODCM. Any suggestions how to solve this? An arcpy or ArcGIS Pro Workflow would be great! Thanks in advance!
... View more
07-06-2020
07:10 AM
|
0
|
0
|
72
|
Online Status |
Offline
|
Date Last Visited |
Tuesday
|