--- layout: example.html title: Loading Spinner shortdesc: Example using load events to show a loading spinner. docs: > You can listen for the map's `loadstart` and `loadend` 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 ---