Add loading spinner example
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user