o-map-layer
Introduction
The component o-map-layer is used to add a new layer to the map.
Basic Example
This is a basic example of a Map using the component o-map-layer inside to create a new marker. You can check a working example of o-map-layer component here
HTML
<o-map #oMapMarker center="42.940599, -7.120727" zoom="8" min-zoom="3" max-zoom="20"
zoom-control="yes" search-control="no" layer-panel-visible="no" fxFlex>
<o-map-layer layer-type="marker" layer-id="office_marker" layer-center="42.240599;-8.720727" layer-menu-label="Office headquarters" layer-menu-label-secondary="Location of office headquarters"></o-map-layer>
</o-map>
In the API tab you can check all inputs and outputs allowed.
o-map-layer
Directive: o-map-layer
Inputs
Name | Since | Description | Default |
---|---|---|---|
crs string |
|
CRS |
|
crs-configuration ICRSConfiguration |
|
CRS configuration |
|
layer-base-url string |
|
Base URL of the layer. |
|
layer-bounds string |
|
Number of bounds in layer. |
|
layer-center string |
|
Center the position of the layer. The structure is latitude, longitude. e.g layer-center=’42.240599;-8.720727’ |
|
layer-contextmenu any |
|
Layer in context menu |
|
layer-group-id string |
|
Set layer group id |
|
layer-icon string |
|
Icon of layer |
|
layer-id string |
|
Set layer id |
|
layer-in-menu string |
|
Show or not layer in menu |
|
layer-in-ws boolean |
|
Layer in WS |
true |
layer-menu-label string |
|
Label of the layer in menu |
|
layer-menu-label-secondary string |
|
Secondary label of layer in menu |
|
layer-points string |
|
Number of points in layer. |
|
layer-popup string |
|
Set layer popup |
|
layer-popup-url string |
|
URL of the popup |
|
layer-radius string |
|
Radius of the circle, in meters. |
|
layer-selected boolean |
|
Layer selected or not |
|
layer-service string |
|
Service of the layer |
|
layer-type string |
|
Type of layer |
|
layer-visible boolean |
|
Show or not layer |
true |
query-features-in-bounds boolean |
|
Query features in bounds |
true |