Using osm in Angular project
- Create
osm-view
component in your project. - Copy and paste
osm-view
component from repository to your project. - Install ngx-openlayers with
npm install ngx-openlayers --save
. - Call ans pass data to
osm-view
component and start using.
Parameters, which you can pass to osm-view
component.
Property | Type | Description |
---|---|---|
changeLocation |
boolean |
|
width |
string |
|
height |
string |
|
latitude |
number |
|
longitude |
number |
|
latitude |
number |
|
longitudePointer |
number |
|
showControlsZoom |
boolean |
|
titleZoomIn |
string = 'Zoom in' |
|
titleZoomOut |
string = 'Zoom out' |
|
showControlsCurrentLocation |
boolean |
|
titleCurrentLocation |
string = 'Current location' |
|
showDebugInfo |
boolean |
|
opacity |
number |
|
zoom |
number |
Parameters, which can be emitted from component.
Property | Type | Description |
---|---|---|
onMapCoordinatesChange |
any |
|
addressChanged |
string |