POST
|
Thanks for the reply. I eventually used hitTest() in SceneView | API Reference | ArcGIS API for JavaScript 4.0 for my purpose. Just to add a comment, if I remove all the graphics from the view or layer and added the modified graphic, the "zoom to" function will raise an error (as described here: change the symbol (color, opacity, size, etc) when I click one feature in the layer ). I managed to fix it by cloning the graphics in the view/layer and modified them individually. Not sure if this is the correct way to do it since I manipulate the property values directly.
... View more
07-11-2016
04:29 PM
|
0
|
0
|
3705
|
POST
|
thanks for the prompt reply, I found the function: FeatureLayer | API Reference | ArcGIS API for JavaScript 4.0 There are also some documentation about the query: Query | API Reference | ArcGIS API for JavaScript 4.0 But what I want to do essentially is that I can select a feature with mouse click. I'm actually using SceneView, so the features are 3d features. I try to do the query based on geometry on mouse click event: view.on("click", function(evt){ // evt is the event handle returned after the event fires. console.log(evt.mapPoint); var query = new Query(); query.geometry = evt.mapPoint; lyr.queryFeatures(query).then(function(results){ console.log(results.features); }) }); but it gives me the error:'name: "QueryEngine", message: "Invalid query", details: undefined'. It looks like the query function only supports ArcGIS Online hosted feature service(s) or ArcGIS Server service(s)? My features are rendered by client-side graphics.
... View more
07-01-2016
03:49 PM
|
0
|
4
|
3705
|
POST
|
I have rendered some features(client-side graphics) on a feature layer, how do I select individual features? Essentially I want to change the color or opacity to highlight the selected feature in the layer. The only thing I can do is to show the popup when I click on a feature, but how does the popup show up (how does it know which feature to show popup) under the hood?
... View more
07-01-2016
02:54 PM
|
1
|
8
|
10807
|
POST
|
is there a way to change the symbol (color, opacity, size, etc) when I click one feature in the layer? I just want to highlight the selected feature. I'm using javascript api 4.0 in scene view
... View more
07-01-2016
11:46 AM
|
0
|
4
|
5264
|
POST
|
I found that we can create heat map with the javascript api 3.x, but I haven't found such functions in 4.0, can we do it?
... View more
06-30-2016
05:01 PM
|
0
|
4
|
3187
|
POST
|
thanks, I haven't tried your approach yet, but I figured that I can create an application in my developer account and use the app id and secret to get token for the rest api
... View more
06-30-2016
04:59 PM
|
4
|
1
|
1601
|
POST
|
I would like to access mao services for example this one: http://earthobs1.arcgis.com/arcgis/rest/services/Live_Stream_Gauges/MapServer/ , if I type the url in browser, it redirects me to the arcgis online login, then I can access the map server. But if I want to access the map server using python code with the REST API, how do I get the token? I also noticed that there are many ways to get the token, like using 'Oauth2.0 token' or 'generateToken'. I just don't know what I should use and what exactly is the url I need to use to get the token in this case.
... View more
06-24-2016
05:41 PM
|
1
|
3
|
4944
|
Title | Kudos | Posted |
---|---|---|
1 | 06-24-2016 05:41 PM | |
4 | 06-30-2016 04:59 PM | |
1 | 07-01-2016 02:54 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|