1 | ---
|
2 | layout: example.html
|
3 | title: Marker Animation
|
4 | shortdesc: Demonstrates how to move a feature along a line.
|
5 | docs: >
|
6 | This example shows how to use <b>postcompose</b> and <b>vectorContext</b> to
|
7 | animate a (marker) feature along a line. In this example an encoded polyline
|
8 | is being used.
|
9 | tags: "animation, feature, postcompose, polyline"
|
10 | cloak:
|
11 | As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5: Your Bing Maps Key from http://www.bingmapsportal.com/ here
|
12 | ---
|
13 | <div id="map" class="map"></div>
|
14 | <label for="speed">
|
15 | speed:
|
16 | <input id="speed" type="range" min="10" max="999" step="10" value="60">
|
17 | </label>
|
18 | <button id="start-animation">Start Animation</button>
|