ngx-openlayers

by quentin-ol

quentin-ol /ngx-openlayers

Angular2+ components for Openlayers 4.x

130 Stars 93 Forks Last release: about 2 years ago (v0.8.22) Mozilla Public License 2.0 256 Commits 23 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

ngx-openlayers Build StatusJoin the chat at https://gitter.im/ngx-openlayers

Installation

To install this library, run:

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

Getting Help

Join us at our Gitter: https://gitter.im/ngx-openlayers

Development

To generate all

*.js
,
*.js.map
and
*.d.ts
files:
npm run ngc

To lint all

*.ts
files:
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

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 [email protected] Copyright 2017 Orange

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.