https://github.com/quentinlampin/ngx-openlayers
Angular2+ components for Openlayers 4.x
https://github.com/quentinlampin/ngx-openlayers
angular-2 angular2 angular2-openlayers angular4 ngx-openlayers openlayers openlayers4
Last synced: 9 months ago
JSON representation
Angular2+ components for Openlayers 4.x
- Host: GitHub
- URL: https://github.com/quentinlampin/ngx-openlayers
- Owner: quentinlampin
- License: mpl-2.0
- Created: 2016-09-21T09:10:46.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T14:22:05.000Z (9 months ago)
- Last Synced: 2025-04-12T09:04:26.522Z (9 months ago)
- Topics: angular-2, angular2, angular2-openlayers, angular4, ngx-openlayers, openlayers, openlayers4
- Language: TypeScript
- Homepage:
- Size: 6.71 MB
- Stars: 138
- Watchers: 21
- Forks: 97
- Open Issues: 69
-
Metadata Files:
- Readme: README.MD
- License: LICENSE.md
Awesome Lists containing this project
README
# ngx-openlayers [](https://travis-ci.org/quentin-ol/ngx-openlayers)[](https://gitter.im/ngx-openlayers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Installation
To install this library, run:
```bash
npm install ngx-openlayers --save
```
## Example
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
```
## Documentation
The API is documented in [documentation](/documentation/)
## Getting Help
Join us at our Gitter: [https://gitter.im/ngx-openlayers](https://gitter.im/ngx-openlayers)
## Development
To generate all `*.js`, `*.js.map` and `*.d.ts` files:
```bash
npm run ngc
```
To lint all `*.ts` files:
```bash
npm run lint
```
Live example (reload on code changes):
```bash
npm install -g @angular/cli
cd example
npm install
ng serve
```
Live example will be viewable at locahost:4200
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request and enjoy! :D
## License
MPL-2.0 - Quentin Lampin Copyright 2017 Orange