Giter Site home page Giter Site logo

azure-samples / azure-maps-animations Goto Github PK

View Code? Open in Web Editor NEW
18.0 19.0 18.0 315 KB

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

Home Page: https://azure.com/maps

License: MIT License

JavaScript 4.47% TypeScript 95.53%
azure-maps microsoft iot maps map gis web-mapping javascript drop-animations animations

azure-maps-animations's Introduction

page_type description languages products
sample
A rich library of animations for use with the Azure Maps Web SDK.
javascript
typescript
azure
azure-maps

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 for more details on a specific feature or take a look at one of the samples below.

Samples

Animate a choropleth map

Animate a GPS trace

Animate a snakeline

Animate along a path

Animate along a route path

Animate marker along path

Animate multiple points

Animate point along path

Animate to new position of marker

Animate to new position of point

Animated tile layer

Animated traffic flow

Animation easings

Bouncing marker animation

Drop markers on interval

Drop multiple markers animation

Drop multiple symbols animation

Drop symbol animation

Drop symbols on interval

Morph shape animation

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

Additional Resources

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.

You can reach out to us anytime with questions and suggestions using our communities below:

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

MIT

See License for full license text.

azure-maps-animations's People

Contributors

microsoft-github-operations[bot] avatar microsoftopensource avatar rbrundritt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-maps-animations's Issues

atlas.layer.AnimatedTileLayer is not a constructor

This issue is for a: (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run the Tile Layer sample.

https://github.com/Azure-Samples/azure-maps-animations/blob/main/examples/Animated%20tile%20layer.html

Any log messages given by the failure

atlas.min.js:55 Error: atlas.layer.AnimatedTileLayer is not a constructor

Expected/desired behavior

It should work.

OS and Version?

Asp.net Core 3.1 Web App with Razor support

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Changing map styles while animation is playing (weather) causes JS error

ncaught (in promise) TypeError: i[t]._getSourceIds is not a function
at sm._getSourceIds (atlas.min.js:55)
at atlas.min.js:55
sm._getSourceIds @ atlas.min.js:55
(anonymous) @ atlas.min.js:55
Promise.then (async)
hg._setStyleComponents @ atlas.min.js:55
hg.setStyle @ atlas.min.js:55
updateMapType @ Index.html:287
onchange @ Index.html:471
ListPicker._handleMouseUp

AnimatedTileLayer causes a crash when map is disposed

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Open Animated Tile Layer sample https://azuremapscodesamples.azurewebsites.net/Animations/Animated%20tile%20layer.html
  2. Type map.dispose() in the browser console

Any log messages given by the failure

Uncaught TypeError: Cannot read properties of undefined (reading '_getLayerIds')
    at og._removeMapboxLayers (atlas.min.js:55)
    at og.clear (atlas.min.js:55)
    at sv.clear (atlas.min.js:55)
    at sv.dispose (atlas.min.js:55)
    at <anonymous>:1:5

Expected/desired behavior

Disposing map with an animated tile layer should not crash the map

OS and Version?

Windows 10.

Versions

Any

Mention any other details that might be useful

Using map with React and we dispose it when component containing map is unmounted.

No Support for Angular

Hi , I was trying to make an delivery application using azure maps but got stuck as there is no Animation module in azure-map-control .
I tried to go for any alternative but not found any.
This repo need its npm package so that it can be use by different frameworks

publish to npm

Please provide us with the following information:

Would be great if this project can be published to npm
Hard to include it to our project with the current package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.