Add loading spinner example

This commit is contained in:
Andreas Hocevar
2022-03-19 10:32:41 +01:00
parent bf9472ac57
commit 26e6bf505c
3 changed files with 74 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
---
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>