POST
|
Today I'd recommend using the includedEffect (see link below) on a point layer that will highlight the clicked points and have a second points layer with the same symbology to make sure excluded/unclicked points will remain the same.. this is a faster and cheaper way to highlight points. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html
... View more
08-17-2023
06:13 AM
|
1
|
1
|
1270
|
POST
|
You don't need the API for this. Assuming the data is suitable, you can just upload the file to a new map at ArcGIS.com and apply the heatmap style. Here are some resources about this - https://enterprise.arcgis.com/en/portal/latest/use/add-items.htm https://doc.arcgis.com/en/insights/latest/create/heat-maps.htm https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/heat-mapping-in-two-simple-steps/
... View more
01-03-2022
07:01 PM
|
0
|
0
|
563
|
POST
|
I had a look at the API and you can use the following example - view.allLayerViews.items[2]._highlightIds.delete(7423) item #2 is the feature layer object - in your case, you'll need to recognise the right layer in the array of allLayersViews. You can do that in many way (hard coded like in my example would be the worse option. Once you have the layer object available, you could have access to an object called _highlightIds which contains a map of all highlighted features. This array has a delete function that you pass an objectId you would like to remove as highlighted.
... View more
12-01-2021
03:17 PM
|
1
|
1
|
2511
|
POST
|
Well, I haven't checked this myself but my guess is that when features are highlighted, it's a new separated graphic layer created, which you can access and modify manually. Once you are able to validate this, your next issue would probably be to recognise the right point you would like to remove, which surely can be solved easily with a filter based on an attribute. Hope that make sense
... View more
11-29-2021
10:52 PM
|
1
|
1
|
2540
|
POST
|
Hi, this is really basic javascript knowledge - I strongly suggest you find a good javascript tutorial to teach you these things, which will make your life so much easier in the long run. To call a function within the same module you need to use "this" - this.multiply(a, b). this points at the current scope of work, which includes all the other functions as well.
... View more
11-29-2021
10:47 PM
|
0
|
1
|
887
|
POST
|
Hi, Have you tried to highlight all the relevant features again minus the one you want to remove the highlight for?
... View more
11-29-2021
06:30 PM
|
1
|
3
|
2552
|
POST
|
Not sure why you'd assume there's only a single function in a module. Have you ever looked inside modules you're importing? they're all filled with functions - that's the whole purpose of a module. As Dojo isn't the modern way of writing javascript (like in the new versions of ES6+), the way to separate code blocks seems a bit "hacky" and the "define" helps to create separate modules (as you already understood). Each module contains a "main" function, which is then used as a namespace. What's the error you're getting if you add more functions? like the following -
define(
[],
function() {
return {
add: function(a,b) {
alert("entered module2")
return a + b;
},
delete: function(a,b) {
alert("another function")
return a + b;
}
}
}
)
... View more
11-29-2021
06:15 PM
|
1
|
1
|
915
|
POST
|
Hi, There are plenty of tools and ways for the calculation to be performed - https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html https://developers.arcgis.com/javascript/3/jssamples/util_measurepoly.html But you mentioned you're using ArcGIS Online, which means you don't have the ability to develop and host a custom solution like the one you ask for. You need to use WebApp Builder Developer Edition to be able to achieve your required functionality - https://developers.arcgis.com/web-appbuilder/guide/xt-welcome.htm
... View more
11-18-2021
07:17 PM
|
2
|
0
|
827
|
POST
|
Have you initialised the API with a token? I suggest you try to follow the basic tutorial from the documentations - https://developers.arcgis.com/javascript/latest/display-a-map/
... View more
11-14-2021
02:54 PM
|
0
|
0
|
792
|
POST
|
Pretty simple - arcpy.AssignDefaultToField_management(fc_path, fld_name, def_val, subtype_code)
... View more
11-14-2021
02:49 PM
|
0
|
1
|
533
|
POST
|
I've seen this before. I changed it as I was working on the dev' edition and customizing that widget
... View more
11-09-2021
08:54 PM
|
0
|
0
|
417
|
POST
|
All the supported URL parameters are covered in this page - https://doc.arcgis.com/en/web-appbuilder/manage-apps/app-url-parameters.htm To customize the behaviour of the app like you mentioned you need to have it created on the developer edition and then you could change it however you like
... View more
11-09-2021
08:47 PM
|
0
|
0
|
393
|
POST
|
You need to understand what's under the hood to implement such behaviour. From what I know, the ability to zoom requires geometry because then the ideal extent of that geometry can be calculated. You already know what's required by the API to zoom somewhere so I don't understand what's the actual question? why does the API doesn't automatically supports GeoJSON and other formats? or how can you implement it independently? or what's required to extract from the GeoJSON?
... View more
11-09-2021
07:55 PM
|
0
|
0
|
278
|
POST
|
There are huge huge differences in terms of how Google maps works compared to ESRI and if you're searching a direct "translation" of the functionality you had in Google into ESRI then you're looking at it wrong. Just like you can't translate every sentence directly from one language to another (might not be the best analogy). If you'd like to achieve the functionality of dragging a point over the map to update it's location, you need to understand the fundamentals of ESRI and how to publish editable layers, which then gives you this functionality out-of-the-box. The answers you received here are just workarounds to try and mimic that behaviour based on what you already know from Google, which is very wrong in my opinion. A new product requires a new approach and different (better) solutions.
... View more
11-09-2021
07:39 PM
|
0
|
0
|
381
|
Title | Kudos | Posted |
---|---|---|
1 | 08-17-2023 06:13 AM | |
1 | 11-29-2021 06:30 PM | |
1 | 12-01-2021 03:17 PM | |
1 | 11-29-2021 10:52 PM | |
1 | 11-29-2021 06:15 PM |