larsmaxfield / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in WebGL2
https://maplibre.org/maplibre-gl-js/docs/
Other
0 stars 0 forks source link

How to bypass validation of style? #7

Closed larsmaxfield closed 3 months ago

larsmaxfield commented 3 months ago

I want to bypass validating the style in style.ts which is done when loading (loadJson > _load).

larsmaxfield commented 3 months ago

Use validateStyle: false when creating a Map object:

const map = (window.map = new maplibregl.Map({
        validateStyle: false,