|
BLOG
|
Today, we are pleased to release versions 4.16 and 3.33 of the ArcGIS API for JavaScript. Here are some of the 4.16 highlights (please refer to the 3.33 link at the end for 3.x updates). The stats We fixed 20 bugs, added 65 new classes, created 24 new samples, and over 99% of the codebase is now written in TypeScript. Blending-in is the new standing-out Ever wanted to combine one or more layers together to produce what looks like a new layer? Sounds cool, right? To accomplish this, we introduced a new capability called layer blending. This powerful capability allows you to apply blend modes to your layers to create striking visual effects. https://developers.arcgis.com/javascript/latest/sample-code/?search=blendMode Are you down with OGC? Yeah, you know, me also. The OGC (Open Geospatial Consortium) API Feature standard is the successor to the OGC Web Feature Server (WFS) specification. And have we got a layer for you. The new OGCFeatureLayer, which works in 2D MapViews and 3D SceneViews, is better/stronger/faster than OGC WFS, and is now supported by the ArcGIS API for JavaScript. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html Self-evaluate your performance At 4.15, we introduced a new SceneView.performanceInfo property to offer insight into the performance and memory consumptions of layers in your 3D scene. Now at 4.16, we’re ready to share this with the world. Heads-up: this property is experimental, prices and participation may vary, and can change at any time. But if you’re into performance metrics and 3D scenes, check out this new feature in your testing environments. https://developers.arcgis.com/javascript/latest/sample-code/sceneview-memory/index.html If you like labeling points, you may also like… If you like labeling, you’ll love the new Honey Nut Clusters FeatureReductionCluster.labelingInfo property that allows you to label clusters based on count, or based on any summary statistics used by the cluster popup. https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-filter-slider/index.html Client-side geometric modifications Client-side geometric modifications (like clipping) on IntegratedMeshLayers in 3D SceneViews, are you serious?! Yes, very much so. With the SceneModifications class, you can now modify parts of an integrated mesh using polygon geometries. Focus on your areas of interest; ignore the noise. https://developers.arcgis.com/javascript/latest/sample-code/layers-integratedmeshlayer-modification/index.html CIM (/ˈsim/) seems (/sēmz/) cool (/ko͞ol/) Remember, back in the day, when we released CIMSymbol for point features? Well, now you can do the same with lines and polygons in 2D MapViews. So create those custom symbols for all geometry types by using multiple symbol layers. And yes, you can print them just fine. https://developers.arcgis.com/javascript/latest/sample-code/cim-lines-and-polygons/index.html Reflecting pools for all We enhanced the WaterSymbol3DLayer to reflect any 3D objects on water surfaces. The SceneView.environment property, which already has tons of options to make your 3D scenes even more beautiful and realistic, now has a fun waterReflectionEnabled property. https://developers.arcgis.com/javascript/latest/sample-code/visualization-realistic-water/index.html Wait, what’s that about seamless integration? Oh yeah, thanks for the reminder. At every release we modernize the API. Fact. Sometimes we add things, sometimes we remove them. At 4.16, the API returns native promises by default. You can no longer opt-out with the handy has flag. We removed Dojo’s declare module, and pretty much stopped using Dojo altogether, although it’s still available with the CDN build. We also changed our will and stopped being supportive of multiple class inheritance, so start thinking about Accessor mixins. Read more here: https://developers.arcgis.com/javascript/latest/guide/release-notes/#api-modernization Wait wait, what’s next? Do you enjoy the bleeding edge of technology? If so, ArcGIS API for JavaScript – next may be for you. We announced this new feature a couple of release ago, but since we’re all scrambling for things to do at home, this seems like an opportune moment to revisit. It’s basically a weekly-ish build of the next version (e.g. if the current release is 4.16, then next is based on 4.17) of the API that you can use, test, and create issues for if you are so inclined. Probably best to only use for testing as things can change whenevs. https://github.com/Esri/feedback-js-api-next Wait wait wait, there’s more! Because we have so much fun “at the office” developing new stuff for you, we like to showcase our updates and answer any questions that you may have in-person. We do this a couple times per year at conferences like the Developer Summit and the User Conference. If you missed us at the virtual Developer Summit this year, here is a blog about all the JavaScript presentation recordings: https://www.esri.com/arcgis-blog/products/js-api-arcgis/announcements/arcgis-api-for-javascript-devsummit-2020-videos-available/ If you’re joining us for the virtual User Conference, here is a blog about all the exciting web development presentations and resources: https://www.esri.com/arcgis-blog/products/js-api-arcgis/announcements/web-developers-guide-to-the-2020-esri-users-conference/ And if you’re up on the news, you may find this blog about diversity, equity, and racial justice at the virtual User Conference especially relevant: https://www.esri.com/arcgis-blog/products/product/announcements/diversity-equity-inclusion-racial-justice-at-the-esri-user-conference-2020/ There is so much more that’s new and exciting at 4.16 and 3.33. Check out the links below to discover everything. Release Blog https://www.esri.com/arcgis-blog/products/js-api-arcgis/announcements/whats-new-in-the-arcgis-api-for-javascript-july-2020 4.16 Release Notes https://developers.arcgis.com/javascript/latest/guide/release-notes/index.html 4.16 Samples https://developers.arcgis.com/javascript/latest/sample-code/?search=4.16 3.33 What’s New https://developers.arcgis.com/javascript/3/jshelp/whats_new.html
... View more
07-09-2020
11:38 AM
|
4
|
0
|
4501
|
|
POST
|
Ha, well, that wasn't the answer. Can you post a simple codepen?
... View more
07-01-2020
03:58 PM
|
0
|
1
|
2914
|
|
POST
|
I didn't test it, but I wonder if you try using the x and y values for the location of the point like this: var lat = selectedFeature[0].geometry.x; //getLatitude(); var longs = selectedFeature[0].geometry.y; //getLongitude(); var point = new esri.geometry.Point({ x: lat, y: longs });
... View more
07-01-2020
11:50 AM
|
0
|
3
|
2914
|
|
POST
|
You could try using the error property of the RequestInterceptor. It catches the error, but I'm not sure if this gets you to where you want to go though. test app https://codepen.io/noash/pen/GRoMdbL?editors=1001
... View more
06-29-2020
11:27 AM
|
1
|
1
|
4321
|
|
POST
|
Not sure this will solve the issue, but this line confuses me: printTask.execute(params, printResult); I would recommend something like this: printTask.execute(params).then(printResult, printError); PrintTask.execute() doc The second parameter in the print method is for requestOptions, not for the returned object.
... View more
06-25-2020
11:39 AM
|
1
|
0
|
1008
|
|
POST
|
That's great news, thanks for sharing. Feel free to mark this question as answered, even if you provided the answer yourself.
... View more
06-23-2020
11:24 AM
|
0
|
0
|
3846
|
|
POST
|
What sort of elevation profile feature are you asking for? These samples encompass the elevation-focused samples we have: Elevations Samples | ArcGIS API for JavaScript 4.15
... View more
06-23-2020
07:11 AM
|
0
|
4
|
3775
|
|
POST
|
Hi Nadir, I just sent you an email. Also, for future reference, there is a way on GeoNet to send private/direct messages. If you are ever conversing with someone and want to share something non-publicly, just click on the person's profile and then click on Actions and select Send direct message, like this:
... View more
06-23-2020
07:08 AM
|
0
|
0
|
3537
|
|
POST
|
Update: we do not anticipate FeatureTable coming out of beta at the next (4.16) release. Will update this thread when we do have a release date in mind.
... View more
06-22-2020
03:16 PM
|
0
|
0
|
1241
|
|
POST
|
In general, all 4x samples should work fine on a wide variety of mobile devices. That is one of the main advantages of using the 4x version of the API over the 3x version. The only recommendations we have are the system requirements, which help indicate the hardware and software (including mobile) we recommend: System Requirements | ArcGIS API for JavaScript 4.15
... View more
06-22-2020
01:44 PM
|
0
|
0
|
1215
|
|
POST
|
I think it's possible, but perhaps not practical at this time. These features are under active development and we hope to have them released later this year. So if you can wait a few-ish months, we'll have them as part of the widget.
... View more
06-22-2020
01:41 PM
|
0
|
1
|
1026
|
|
POST
|
Couple questions to help us get going: 1) What version of the ArcGIS API for JavaScript are you using? 2) What widget(s) are you using? But those defined in html do not display correctly: 3) How is this defined in the html?
... View more
06-22-2020
10:52 AM
|
0
|
1
|
2103
|
|
POST
|
Three things to try/consider: 1) Check the Console tab of the browser and look for errors. Perhaps the image is 404ing. Also, if you look at the Network requests of the browser, can you find the execute request for the print task? I wonder if something useful is there. 2) Is the print service public? Can you share a link to it for testing? 3) Do you have ArcGIS Pro? I would recommend trying with Pro and see if the same behavior occurs.
... View more
06-22-2020
10:30 AM
|
0
|
2
|
3537
|
|
POST
|
Arne Gelfert wrote: Thanks, Noah. That would be a very opinionated conversation on my end, I'm afraid. I think you guys should start by consolidating on one API version. That would make my life easier for starters. Haha. Can you have that done by Monday? Oops, it's Monday already; I'm behind the deadline! All jokes aside, I would still be interested in hearing your opinions. If you have the time and inclination, feel free to write up some of your thoughts and email them to me (or publicly post if you want). It is always good to hear feedback directly from the people. Arne Gelfert wrote: As for my issue described above, I wasn't able to remove those header sections in the suggestions display but instead managed to override the the meaningless value or "service_name + suggestionTemplate" by setting the name property in my feature layers: Excellent, glad to hear you found a workaround, and thank you for sharing your solution here.
... View more
06-22-2020
10:25 AM
|
0
|
1
|
3782
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-25-2026 07:29 AM | |
| 1 | 07-01-2026 08:08 AM | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM |
| Online Status |
Offline
|
| Date Last Visited |
11 hours ago
|