VRasterLayer
RasterLayer
component. Need use with VRasterSource
、VImageSource
、VVideoSource
或 VVectorSource
.
<v-raster-layer
id="raster-layer-id"
source="source-url"
sourceLayer="source-layer-id"
:paint="paint-object"
:layout="layout-object"
:minzoom="minzoom-value"
:maxzoom="maxzoom-value"
:filter="filter-object"
/>
Load layer
Property
Property | Description |
---|---|
id | layer id |
source | source id |
sourceLayer | source layer id |
paint | paint properties |
layout | layout properties |
minzoom | min zoom |
maxzoom | max zoom |
filter | filter rule |
for more details you can access to mapbox website, go to
Event
Event | Description |
---|---|
click | layer click event |
mouseenter | layer mouseenter event |
mousemove | layer mousemove event |
mouseleave | layer mouseleave event |