Angular2+ components for Openlayers 4.x
To install this library, run:
npm install ngx-openlayers --save
Here is a "minimal" map example that fetches tiles from OpenStreetMap and center the map in Meylan (France):
in
app.module.ts: ```js ... import { AngularOpenlayersModule } from "ngx-openlayers"; ...
@NgModule({ imports: [ ... AngularOpenlayersModule ], ... bootstrap: [AppComponent] }) export class AppModule { } ```
in
app.component.html:
html
The API is documented in documentation
Join us at our Gitter: https://gitter.im/ngx-openlayers
To generate all
*.js,
*.js.mapand
*.d.tsfiles:
npm run ngc
To lint all
*.tsfiles:
npm run lint
Live example (reload on code changes):
npm install -g @angular/cli cd example npm install ng serve
Live example will be viewable at locahost:4200
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MPL-2.0 - Quentin Lampin [email protected] Copyright 2017 Orange