Code Monkey home page Code Monkey logo

carmarker-animation's Introduction

CarMarker-Animation


Smooth marker animation on google map along with proper turns and camera bearing.

Demo



Steps:

  • Pass the Marker to animate, googlemap, Latlng of current position of the marker, Latlng of curent position of the user, duration of the animation & CameraUpdate of googlemap.
    
    
  • CarMoveAnim.startcarAnimation(marker,googleMap, startposition,endposition,duration,cameraupdate);


  • Here marker,googlemap,startposition refers to the position of marker,end position refers to the position of the user or wherever the marker needs to be placed. These four fields are mandatory.


    • Note: If you are animating car onLocationChanged() then, Ideal location request for car animation should be as below. Greater than the interval mentioned will give more good results but less than this may hamper the animation.
      mLocationRequest = new LocationRequest();
      mLocationRequest.setInterval(1000 * 5);
      mLocationRequest.setFastestInterval(1000 * 3);
       mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
      

      Dependency

    • App Level: implementation 'com.github.tintinscorpion:CarMarker-Animation:1.1'

    • Project Level: maven { url 'https://jitpack.io' }
    • Developers

carmarker-animation's People

Contributors

tintinscorpion avatar

Watchers

James Cloos avatar Marcos Paulo Farias avatar  avatar

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.