1 | ---
|
2 | layout: example.html
|
3 | title: Image Load Events
|
4 | shortdesc: Example using image load events.
|
5 | docs: >
|
6 | <p>Image sources fire events related to image loading. You can
|
7 | listen for <code>imageloadstart</code>, <code>imageloadend</code>,
|
8 | and <code>imageloaderror</code> type events to monitor image loading
|
9 | progress. This example registers listeners for these events and
|
10 | renders an image loading progress bar at the bottom of the map.</p>
|
11 | tags: "image, events, loading"
|
12 | ---
|
13 | <div class="wrapper">
|
14 | <div id="map" class="map"></div>
|
15 | <div id="progress"></div>
|
16 | </div>
|