|
POST
|
My understanding was that it should work in 3D but taking a look at the sample I can't get it to work in a scene view. However, It does work in a scene view in the next release which is coming in September.
... View more
09-01-2017
06:29 AM
|
2
|
1
|
1077
|
|
POST
|
WMSLayer was added in 4.4: WMSLayer | API Reference | ArcGIS API for JavaScript 4.4
... View more
09-01-2017
06:01 AM
|
1
|
3
|
1077
|
|
POST
|
Also, in the sample you posted, you're invoking the callback when you really want to pass it in as an argument. Try removing the ().
... View more
08-31-2017
10:32 AM
|
0
|
0
|
1379
|
|
POST
|
Okay, here's a sample: https://jsbin.com/qosutebuyi/edit?html,output I couldn't get the getSample request to work for the world elevation service so I queried the elevation in the client. I had to increment the "bottom" of each edge so it isn't directly under the top. Two of the polygons are still drawing incorrectly in that sample: you can see the fill is off by looking at the top. I think this is a winding issue, those rings may be wound incorrectly. I'll keep playing with it.
... View more
08-31-2017
09:01 AM
|
0
|
3
|
2796
|
|
POST
|
That's similar to the approach I'm using. Try shifting the the "bottom" x and y values by a very small amount, something like this: // assuming your SR uses meters
polygonPointArray.push([xmax - 0.0001, ymin - 0.0001, 0]);
polygonPointArray.push([xmin - 0.0001, ymin - 0.0001, 0]); Polygons aren't filled properly if they're perfectly "vertical." I just deleted my sample by accident, but it was drawing for 2/4 sides of the scene. The other two sides weren't drawing probably due to incorrect polygon winding.
... View more
08-31-2017
08:06 AM
|
0
|
4
|
2796
|
|
POST
|
I'm not aware of any built in way to do this but I think it's a good idea. I'll give some thought to how you might be able to do this yourself and post a sample if I can figure something out.
... View more
08-31-2017
06:16 AM
|
0
|
0
|
2796
|
|
POST
|
I'm not aware of any compatibility issues. My experience has been that sometimes the server has capabilities that haven't surfaced in the JS API yet, but this isn't a compatibility issue really.
... View more
08-29-2017
08:35 AM
|
0
|
0
|
858
|
|
POST
|
I would try hitting the same route that you posted above with and without a token and see what message the server is responding with. If the service isn't accepting valid tokens I'm not sure how to troubleshoot that unfortunately.
... View more
08-29-2017
08:16 AM
|
0
|
0
|
1211
|
|
POST
|
I think this is probably a better solution than what I came up with. It should be more or less the same but it's much clearer to watch the selectedFeature as opposed to overriding the _highlight method which isn't documented. In the somewhat near future I expect 2D to have highlighting so we won't have to worry about it.
... View more
08-29-2017
08:07 AM
|
0
|
6
|
3897
|
|
POST
|
Your request looks fine to me. I don't think the AGOL geometry service requires a token (ie it's public), so it may not accept tokens at all.
... View more
08-29-2017
06:40 AM
|
0
|
0
|
1211
|
|
POST
|
Highlighting is supported in 3D but not 2D. One way to add this functionality yourself is to do something like this: JS Bin - Collaborative JavaScript Debugging 1. Added returnGeometry = true to identifyParams. 2. Overrode view.popup.viewModel highlight method. 3. Added event to clear graphics on popup close.
... View more
08-29-2017
06:19 AM
|
1
|
0
|
3897
|
|
POST
|
This looks like another possible open source JS library you could check out: GitHub - mapbox/shp-write: create and write to shapefiles in pure javascript
... View more
08-28-2017
10:25 AM
|
0
|
0
|
4531
|
|
POST
|
It should be possible to do this but you're going to have to jump through some hoops. This is the REST call you'll make to export to a shapefile: ArcGIS REST API That call is made on an existing portal item, so you'll need to take an array of graphics in JavaScript, convert it to a Feature Collection, post the Feature Collection as a new Portal Item, export the new portal item as a shape file, and then direct the user to the newly created shapefile. It also looks like you need to have a portal subscription to do this.
... View more
08-28-2017
08:57 AM
|
1
|
0
|
4531
|
|
POST
|
After playing with it for a bit I got this sample to work: JS Bin - Collaborative JavaScript Debugging That fetches some html from the feature service and parses that into a dom node and uses that node as the content for the infoTemplate.
... View more
08-28-2017
08:37 AM
|
1
|
1
|
4916
|
|
POST
|
In my opinion it's definitely a significant missing piece that labels in 2D are not well supported in the JS API. Even beyond 2D feature layers, I agree with you that labeling is a weak area in general.
... View more
08-24-2017
10:35 AM
|
0
|
0
|
1820
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-03-2017 08:23 AM | |
| 1 | 11-02-2017 08:36 AM | |
| 1 | 11-02-2017 09:23 AM | |
| 1 | 09-20-2017 02:07 PM | |
| 1 | 10-06-2017 05:54 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|