Vilnius city municipality administration (VCMA) interactive maps based on [ArcGis API] ^4.13, [Angular] ^8.x. and [Angular CLI]
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Add --esModuleInterop
to script or tsconfig for importing modules in ES6 manner.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Add default funcionality themes with Dynamic layers based on ArcMaps *.mxd project and REST services to and existing Config.ts file.
App uses DI for injecting configurations. You can change config file, by providing value in app.module
Run ng build
to build the project.
The build artifacts for production should be stored stored in the dist/
directory. Use the ng build --prod --deployUrl=dist/
flags for a production build and files can deployed in dist catalogs on IIS.
Run ng build -c mapsdev --deployUrl=dist/
for a QA / mapsdev server.
Combine options file with npm run options
. Upload options
folder in dist catalog to www... directory
In order to use esri web workers follow current Esri guide.
Unfortunately due to compiling issues set "buildOptimizer": false
in angular.json, but this generates large bundle size.
Use and "optimization": true
and "buildOptimizer": false
(this creates way larger bundle size)
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Update ngrx-popper, which is currently not supported for Angular 8
Check for web workers updates from ESRI, if fixes added use "buildOptimizer": true
for a way smaller bundle size (removes 3MB)
This project was generated with Angular CLI version 8.3.14.
Currently using express js and ejs in production.
See private repo vm-ng-cli-configuration
in vplanas account https://github.com/mevplanas
Check the npm packages described in the package.json