Skip to content

Commit dab5de7

Browse files
HarelMNeonox31
authored andcommitted
Add short code to show how to add the module #189
1 parent 70fe990 commit dab5de7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.MD

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ npm install ngx-openlayers --save
1212

1313
Here is a "minimal" map example that fetches tiles from OpenStreetMap and center the map in Meylan (France):
1414

15+
in `app.module.ts`:
16+
```js
17+
...
18+
import { AngularOpenlayersModule } from "ngx-openlayers";
19+
...
20+
21+
@NgModule({
22+
imports: [
23+
...
24+
AngularOpenlayersModule
25+
],
26+
...
27+
bootstrap: [AppComponent]
28+
})
29+
export class AppModule { }
30+
```
31+
32+
in `app.component.html`:
1533
```html
1634
<aol-map [width]="'500px'" [height]="'300'">
1735
<aol-view [zoom]="2">
@@ -25,7 +43,7 @@ Here is a "minimal" map example that fetches tiles from OpenStreetMap and center
2543

2644
## Documentation
2745

28-
The API is documented in `documentation/`
46+
The API is documented in [documentation](/documnetation)
2947

3048
## Getting Help
3149

0 commit comments

Comments
 (0)