Files
openlayers/examples/load-events.html
2022-03-19 10:50:04 +01:00

14 lines
496 B
HTML

---
layout: example.html
title: Loading Spinner
shortdesc: Example using load events to show a loading spinner.
docs: >
You can listen for the map's <code>loadstart</code> and <code>loadend</code> events
to show a loading spinner on top of the map.
tags: "events, loading, spinner"
cloak:
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2t0cGdwMHVnMGdlbzMxbDhwazBic2xrNSJ9.WbcTL9uj8JPAsnT9mgb7oQ
value: Your Mapbox access token from https://mapbox.com/ here
---
<div id="map" class="map"></div>