quentinlampin/ngx-openlayers
Fork: 98 Star: 137 (更新于 2024-10-31 02:26:13)
license: MPL-2.0
Language: TypeScript .
Angular2+ components for Openlayers 4.x
最后发布版本: 14.1.0-next.0 ( 2024-04-29 20:43:51)
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
- 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
License
MPL-2.0 - Quentin Lampin quentin.lampin@orange.com Copyright 2017 Orange
最近版本更新:(数据更新于 2024-09-06 11:49:52)
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
quentinlampin/ngx-openlayers同语言 TypeScript最近更新仓库
2024-11-22 01:36:46 twentyhq/twenty
2024-11-21 22:40:05 LLOneBot/LLOneBot
2024-11-21 20:34:48 CopilotKit/CopilotKit
2024-11-21 16:58:07 labring/FastGPT
2024-11-21 16:14:54 RSSNext/Follow
2024-11-21 16:12:23 x-extends/vxe-table