indoorequal / vue-maplibre-gl

Vue 3 plugin for maplibre-gl-js
https://indoorequal.github.io/vue-maplibre-gl/
MIT License
51 stars 5 forks source link

Documentation improvements #77

Open CodeXiD opened 1 month ago

CodeXiD commented 1 month ago

I am new to using vue-maplibre-gl and maplibre-gl, I tried to refer to the documentation of this package to understand the structure and props of components, but unfortunately the documentation seems too empty, for example I wanted to add a base raster layer to override the base vector, but I did not find an example. Still, I managed to output the raster layer (but it is not clear yet how to remove the base vector). And it seems not obvious that MglRasterLayer should be placed inside MglRasterSource, since this is not described anywhere.

Let me know if all this is described somewhere, and I am not looking well

francois2metz commented 1 month ago

Hi,

I agree that the documentation on source and layers is quite poor. I'll try to improve it in the future. There is one example with multiple source and layers here: https://indoorequal.github.io/vue-maplibre-gl/examples/playground.html