An open API service indexing awesome lists of open source software.

https://github.com/azure-samples/azure-maps-animations

A rich library of animations for use with the Azure Maps Web SDK.
https://github.com/azure-samples/azure-maps-animations

animations azure-maps drop-animations drop-markers drop-symbols gis iot javascript map maps microsoft typescript web-mapping

Last synced: 7 days ago
JSON representation

A rich library of animations for use with the Azure Maps Web SDK.

Awesome Lists containing this project

README

        

# Azure Maps Animation module

A rich library of animations for use with the Azure Maps Web SDK.

## Features

### Animations

- Frame based animation timer.
- Drop animations for Point data and markers.
- Animate data along a path.
- Animate the map camera along a path.
- Create a snakeline animation effect.
- Animate the changing of coordinates in a shape or marker.
- Morph a shapes from one geometry to another.
- Group animations and play them together, sequentially, or incrementally.
- Create a flowing stroke dash array in a line layer.

### Tools

- Improved setTimeout and setInterval functions that leverage requestAnimationFrame.
- Leverage over 30 different built in easing functions.

## Getting started

Download the project and copy the `azure-maps-animations` JavaScript file from the `dist` folder into your project.

See the [documentation](https://github.com/Azure-Samples/azure-maps-animations/tree/main/docs) for more details on a specific feature or take a look at one of the samples below.

## Samples

[Animate a choropleth map](https://samples.azuremaps.com/?sample=animate-a-choropleth-map)

[](https://samples.azuremaps.com/?sample=animate-a-choropleth-map)

[Animate a GPS trace](https://samples.azuremaps.com/?sample=animate-a-GPS-trace)

[](https://samples.azuremaps.com/?sample=animate-a-GPS-trace)

[Animate a snakeline](https://samples.azuremaps.com/?sample=animate-a-snakeline)

[](https://samples.azuremaps.com/?sample=animate-a-snakeline)

[Animate along a path](https://samples.azuremaps.com/?sample=animate-along-a-path)

[](https://samples.azuremaps.com/?sample=animate-along-a-path)

[Animate along a route path](https://samples.azuremaps.com/?sample=animate-along-a-route-path)

[](https://samples.azuremaps.com/?sample=animate-along-a-route-path)

[Animate marker along path](https://samples.azuremaps.com/?sample=animate-marker-along-path)

[](https://samples.azuremaps.com/?sample=animate-marker-along-path)

[Animate multiple points](https://samples.azuremaps.com/?sample=animate-multiple-points)

[](https://samples.azuremaps.com/?sample=animate-multiple-points)

[Animate point along path](https://samples.azuremaps.com/?sample=animate-point-along-path)

[](https://samples.azuremaps.com/?sample=animate-point-along-path)

[Animate to new position of marker](https://samples.azuremaps.com/?sample=animate-to-new-position-of-marker)

[](https://samples.azuremaps.com/?sample=animate-to-new-position-of-marker)

[Animate to new position of point](https://samples.azuremaps.com/?sample=animate-to-new-position-of-point)

[](https://samples.azuremaps.com/?sample=animate-to-new-position-of-point)

[Animated tile layer](https://samples.azuremaps.com/?sample=animated-tile-layer)

[](https://samples.azuremaps.com/?sample=animated-tile-layer)

[Animated traffic flow](https://samples.azuremaps.com/?sample=animated-traffic-flow)

[](https://samples.azuremaps.com/?sample=animated-traffic-flow)

[Animation easings](https://samples.azuremaps.com/?sample=animation-easings)

[](https://samples.azuremaps.com/?sample=animation-easings)

[Bouncing marker animation](https://samples.azuremaps.com/?sample=bouncing-marker-animation)

[](https://samples.azuremaps.com/?sample=bouncing-marker-animation)

[Drop markers on interval](https://samples.azuremaps.com/?sample=drop-markers-on-interval)

[](https://samples.azuremaps.com/?sample=drop-markers-on-interval)

[Drop multiple markers animation](https://samples.azuremaps.com/?sample=drop-multiple-markers-animation)

[](https://samples.azuremaps.com/?sample=drop-multiple-markers-animation)

[Drop multiple symbols animation](https://samples.azuremaps.com/?sample=drop-multiple-symbols-on-interval)

[](https://samples.azuremaps.com/?sample=drop-multiple-symbols-on-interval)

[Drop symbol animation](https://samples.azuremaps.com/?sample=drop-symbol-animation)

[](https://samples.azuremaps.com/?sample=drop-symbol-animation)

[Drop symbols on interval](https://samples.azuremaps.com/?sample=drop-symbols-on-interval)

[](https://samples.azuremaps.com/?sample=drop-symbols-on-interval)

[Morph shape animation](https://samples.azuremaps.com/?sample=morph-shape-animation)

[](https://samples.azuremaps.com/?sample=morph-shape-animation)

[Moving dashed line](https://samples.azuremaps.com/?sample=moving-dashed-line)

[](https://samples.azuremaps.com/?sample=moving-dashed-line)

## Roadmap

The following are some ideas to take this project further.

- New examples
- Cluster explode
- Traffic flow lines
- New animations
- Line path with trail
- Playable camera animations (rotate around, fly, jump)
- UI controls
- Animation control UI
- Time series animation control UI
- Investigate
- Add option to reduce noise of `heading` values in route path animation.
- JSON schema for saving and replaying animations.

## Related Projects

* [Azure Maps Web SDK Open modules](https://github.com/microsoft/Maps/blob/master/AzureMaps.md#open-web-sdk-modules) - A collection of open source modules that extend the Azure Maps Web SDK.
* [Azure Maps Web SDK Samples](https://github.com/Azure-Samples/AzureMapsCodeSamples)
* [Azure Maps & Azure Active Directory Samples](https://github.com/Azure-Samples/Azure-Maps-AzureAD-Samples)
* [List of open-source Azure Maps projects](https://github.com/microsoft/Maps/blob/master/AzureMaps.md)

## Additional Resources

* [Azure Maps (main site)](https://azure.microsoft.com/en-us/products/azure-maps/)
* [Azure Maps Documentation](https://docs.microsoft.com/azure/azure-maps/index)
* [Azure Maps Blog](https://azure.microsoft.com/en-us/blog/product/azure-maps/)
* [Microsoft Q&A](https://docs.microsoft.com/answers/topics/azure-maps.html)
* [Azure Maps feedback](https://feedback.azure.com/forums/909172-azure-maps)

## Contributing

We welcome contributions. Feel free to submit code samples, file issues and pull requests on the repo and we'll address them as we can.
Learn more about how you can help on our [Contribution Rules & Guidelines](https://github.com/Azure-Samples/azure-maps-animations/blob/main/CONTRIBUTING.md).

You can reach out to us anytime with questions and suggestions using our communities below:
* [Microsoft Q&A](https://docs.microsoft.com/answers/topics/azure-maps.html)
* [Azure Maps feedback](https://feedback.azure.com/forums/909172-azure-maps)

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

## License

MIT

See [License](https://github.com/Azure-Samples/azure-maps-animations/blob/main/LICENSE.md) for full license text.