To install this library, run:
npm install ng-openlayers-lib --save
Import this library in your NgModule:
imports: [
NgOpenlayersModule
]
Here is a "minimal" map example that fetches tiles from OpenStreetMap and center the map:
<ol-map olView
[zoom]="4"
[center]="[-10997148, 4569099]">
<ol-layer></ol-layer>
</ol-map>
The API is documented in documentation/
To compile to module to dist output directory:
ng build --configuration production ng-openlayers-lib
cd dist/ng-openlayers-lib && npm pack
Live example (reload on code changes):
npm install
cd projects/ng-openlayers-lib && npm install
ng serve
Live example will be viewable at locahost:4200
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request and enjoy! :D
Apache-2.0 - Baas geo-information, Bart Baas info@baasgeo.com Copyright 2018 Baasgeo