diff --git a/website/src/content/how_to_use/openlayers.md b/website/src/content/how_to_use/openlayers.md new file mode 100644 index 0000000..d1b34b2 --- /dev/null +++ b/website/src/content/how_to_use/openlayers.md @@ -0,0 +1,29 @@ +## Using OpenLayers + +[ol-mapbox-style](https://openlayers.org/ol-mapbox-style/) is an OpenLayers add-on that creates a layer group from a Mapbox/MapLibre style. + +Include the following links and scripts in your page: + +```html + + + + + + +``` + +Initialize it to a div like this: + +```html +
+ +``` \ No newline at end of file diff --git a/website/src/pages/quick_start.astro b/website/src/pages/quick_start.astro index ef45f0e..cad1281 100644 --- a/website/src/pages/quick_start.astro +++ b/website/src/pages/quick_start.astro @@ -9,6 +9,7 @@ import { Content as LeafletText } from '../content/how_to_use/leaflet.md' import { Content as MapboxText } from '../content/how_to_use/mapbox.md' import { Content as MaplibreText } from '../content/how_to_use/maplibre.md' import { Content as MobileText } from '../content/how_to_use/mobile.md' +import { Content as OpenLayersText } from '../content/how_to_use/openlayers.md' import { Content as SelfHostingText } from '../content/how_to_use/self_hosting.md' --- @@ -32,6 +33,7 @@ import { Content as SelfHostingText } from '../content/how_to_use/self_hosting.m