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