@indoorequal/vue-maplibre-gl
Version:
Vue 3 plugin for maplibre-gl
19 lines (17 loc) • 679 B
text/typescript
import type { HillshadeLayerSpecification } from "maplibre-gl";
import { defineComponent } from "vue";
import { layerProps, type LayerProps, LAYER_EVENTS, type LayerEventType } from "@/lib/lib/layer.lib";
import { useLayer } from "@/lib/composable/useLayer";
/**
* Hill shade Layer
*
* See the [layer style specification](https://maplibre.org/maplibre-style-spec/layers/)
*/
export default defineComponent({
name: "MglHillshadeLayer",
props: layerProps<HillshadeLayerSpecification>(),
emits: [...LAYER_EVENTS] as LayerEventType[],
setup(props: LayerProps<HillshadeLayerSpecification>) {
return useLayer<HillshadeLayerSpecification>("hillshade", props);
},
});