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

404 not found errors in console #6

Closed geraldo closed 11 months ago

geraldo commented 1 year ago

404 not found error do show up in console trying to load undefined.json and undefined@2x.png:

GET http://127.0.0.1:5500/undefined.json 404 (Not Found) GET http://127.0.0.1:5500/undefined@2x.png 404 (Not Found) Uncaught (in promise) i {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}

This so doesn't seem to have any negative effect on the functions of the plugin, but each interaction with the legend checkboxes do again show these errors.

This happens both on Chrome and Firefox using latest maplibre-gl-js 2.4.0 with maplibre-gl-legend 1.2.7.

PS: Here a little example to show this error.

JinIgarashi commented 11 months ago

@geraldo I think this was solved by https://github.com/watergis/maplibre-gl-legend/pull/19. Could you check the latest version. Feel free to reopen the issue if bug is still there