Hide individual buttons in the sketch widget in Angular 2+

332
1
05-19-2021 06:20 PM
NilankaD
New Contributor II

We are using Angular repo for Esri angular-esri-map version 2.0.5 with ArcGIS for Javascript API 4.1.9 in our Angular 2+ app. We used the sample code (VisibleElements) in the API to show/hide buttons in 'sketch' widget. It doesn't seem to hide anything.

Is VisibleElements is supported in angular-esri-map version 2.0.5? If not what is the best solution to hide some individual buttons in the sketch widget?

0 Kudos
1 Reply
AndyGup
Esri Regular Contributor

Hi @NilankaD the angular-esri-map project was fully retired in November 2020: https://github.com/Esri/angular-esri-map#angular-esri-map Also, note that Google does not support that version of Angular anymore, currently they only support version 9+: https://angular.io/guide/releases#support-policy-and-schedule. I suggest trying to get the ArcGIS JS API 4.19 functionality working in a non-Angular vanillaJS app and then migrate that code back to your Angular app.

We typically only offer samples that work with the latest versions of a particular framework, and where possible we now recommend upgrading from using the APIs AMD modules to using ES modules. Here's a sample using Angular 11 (soon to be upgraded to Angular 12): https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli 

0 Kudos