angular2-esri4-components
v0.5.5
Published
A set of Angular 2 components to work with ArcGIS API for JavaScript v4.3
Downloads
7
Readme
angular2-esri4-components
A set of Angular 2 components to work with ArcGIS API for JavaScript v4.3
Setup
npm install --save angular2-esri4-components
Component status:
| Component | Status | Docs | Issue | |--------------------|-------------------------------------|--------------|----------------| | esri4-map | Available | README | - | | esri4-legend | Not Started | | - | | esri4-layerList | Not Started | | - | | esri4-customWidget | Available | README | #4 | | esri4-layersToggle | Available | README | #6 | | (more coming) | | | - |
Setup
Import CSS for ArcGIS API for JavaScript v4 into the head of your index.html:
<!doctype html>
<html>
<head>
<!-- ... -->
<link rel="stylesheet" href="https://js.arcgis.com/4.3/esri/css/main.css">
<!-- ... -->
</head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
Include Angular2Esri4Module
in your main module:
// ...
import { Angular2Esri4Module } from 'angular2-esri4-components';
@NgModule({
// ...
imports: [
Angular2Esri4Module
],
// ...
})
export class AppModule { }