watergis / maplibre-gl-legend

This module adds legend control which is able to create legend panel from mapbox style to maplibre-gl-legend
https://maplibre-gl-legend.water-gis.com/
MIT License
31 stars 7 forks source link

Not exporting the css file anymore? #10

Closed digoburigo closed 1 year ago

digoburigo commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. install the lib
  2. try to import the css with import "@watergis/maplibre-gl-legend/css/styles.css"; like before.
  3. Dont find this file

Expected behavior Same as the old version?

Screenshots image

Desktop (please complete the following information):

JinIgarashi commented 1 year ago

@digoburigo I am sorry for inconvenience. Because I changed from webpack to vite to build, folder structure was changed. try the following CSS path.

import '@watergis/maplibre-gl-legend/dist/maplibre-gl-legend.css';

For CDN, please also use the following new path.

<link href="https://www.unpkg.com/@watergis/maplibre-gl-legend@latest/dist/maplibre-gl-legend.css" rel="stylesheet" />

JinIgarashi commented 1 year ago

Let me close this issue. Feel free to reopen if there is an issue of loading css

digoburigo commented 1 year ago

That was it. Thanks for the info!