MyGit
🚩收到GitHub仓库的更新通知

quentin-ol/ngx-openlayers

Fork: 98 Star: 137 (更新于 2024-05-04 17:01:38)

license: MPL-2.0

Language: TypeScript .

Angular2+ components for Openlayers 4.x

最后发布版本: 14.1.0-next.0 ( 2024-04-29 20:43:51)

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

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:

...
import { AngularOpenlayersModule } from "ngx-openlayers";
...

@NgModule({
  imports: [
    ...
    AngularOpenlayersModule
  ],
  ...
  bootstrap: [AppComponent]
})
export class AppModule { }

in app.component.html:

<aol-map [width]="'500px'" [height]="'300'">
    <aol-view [zoom]="2">
        <aol-coordinate [x]="5.795122" [y]="45.210225" [srid]="'EPSG:4326'"></aol-coordinate>
    </aol-view>
    <aol-layer-tile>
        <aol-source-osm></aol-source-osm>
    </aol-layer-tile>
</aol-map>

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 quentin.lampin@orange.com Copyright 2017 Orange

最近版本更新:(数据更新于 2024-05-04 17:01:21)

2024-04-29 20:43:51 14.1.0-next.0

2024-03-27 04:07:22 14.0.0-next.0

2023-11-30 23:54:02 1.0.0-next.21

2023-11-30 23:36:30 1.0.0-next.20

2021-09-03 20:54:18 1.0.0-next.19

2021-01-06 23:48:38 1.0.0-next.17

2020-07-02 15:21:41 1.0.0-next.16

2020-04-08 21:42:07 1.0.0-next.15

2020-04-08 19:44:17 1.0.0-next.14

2019-11-13 23:34:45 1.0.0-next.13

主题(topics):

angular-2, angular2, angular2-openlayers, angular4, ngx-openlayers, openlayers, openlayers4

quentin-ol/ngx-openlayers同语言 TypeScript最近更新仓库

2024-05-18 10:05:52 johnlindquist/kit

2024-05-18 04:16:53 payloadcms/payload

2024-05-17 19:26:25 siyuan-note/siyuan

2024-05-17 15:48:20 dream-num/univer

2024-05-17 13:55:38 NetEase/tango

2024-05-17 12:27:45 illacloud/illa-builder