All Projects → tintinscorpion → Dual-color-Polyline-Animation

tintinscorpion / Dual-color-Polyline-Animation

Licence: MIT license
This library will help to show the polyline in dual color similar as Uber.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Dual-color-Polyline-Animation

js-markerclusterer
Create and manage clusters for large amounts of markers
Stars: ✭ 92 (+26.03%)
Mutual labels:  maps, google-maps, markers
Arcarmovement
This is navigation example on google map. Here Marker move as vehicles moves with turns as uber does in their app. Using old and new coordinates animating bearing value the markers are moving.
Stars: ✭ 137 (+87.67%)
Mutual labels:  uber, google-maps, markers
Maplace.js
A Google Maps Javascript plugin for jQuery.
Stars: ✭ 1,021 (+1298.63%)
Mutual labels:  maps, google-maps, markers
Airbnb Android Google Map View
This is a sample Android Application which has Google Map view similar to what AirBnb Android Application. Moving Markers like Uber/Ola. Custom Google Search for places. Recycler view with Animations added.
Stars: ✭ 175 (+139.73%)
Mutual labels:  uber, maps, google-maps
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+94.52%)
Mutual labels:  uber, maps, google-maps
geojson-editor
A modified version of Googles Simple GeoJSON Editor
Stars: ✭ 43 (-41.1%)
Mutual labels:  maps, google-maps
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+265.75%)
Mutual labels:  maps, google-maps
deck.gl-time-series-widget
A React Time Slider implementation for DECK.GL - (non)temporal data - by CPU filtering ⌛
Stars: ✭ 19 (-73.97%)
Mutual labels:  uber, maps
svelte-googlemaps
Svelte Google Maps Components
Stars: ✭ 62 (-15.07%)
Mutual labels:  maps, google-maps
ember-google-maps
A friendly Ember addon for working with Google Maps.
Stars: ✭ 93 (+27.4%)
Mutual labels:  maps, google-maps
GoogleMapsHelper
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.
Stars: ✭ 21 (-71.23%)
Mutual labels:  maps, google-maps
activeadmin-latlng
Active Admin plugin for setting up latitude and longitude
Stars: ✭ 34 (-53.42%)
Mutual labels:  maps, google-maps
Uber React
Uber-like project in React Native
Stars: ✭ 151 (+106.85%)
Mutual labels:  uber, maps
google maps
🗺 An unofficial Google Maps Platform client library for the Rust programming language.
Stars: ✭ 40 (-45.21%)
Mutual labels:  maps, google-maps
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (+1.37%)
Mutual labels:  maps, google-maps
HealthCare-Scan-Nearby-Hospital-Locations
I developed this android application to help beginner developers to know how to use Google Maps API and how to convert JSON data into Java Object.
Stars: ✭ 23 (-68.49%)
Mutual labels:  maps, google-maps
Trail Android
🚕 Simple, smooth animation for route / polylines on google maps using projections.
Stars: ✭ 465 (+536.99%)
Mutual labels:  uber, google-maps
organicmaps
🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Your donations and positive reviews motivate and inspire our small team!
Stars: ✭ 3,689 (+4953.42%)
Mutual labels:  navigation, maps
Vehicle In Motion
This is a basic implementation of location listener using Google Maps Api
Stars: ✭ 339 (+364.38%)
Mutual labels:  uber, maps
geofiddle
Geometric conversions between different formats and projections
Stars: ✭ 15 (-79.45%)
Mutual labels:  maps, polyline

Dual-color-Polyline-Animation

Android Arsenal BCH compliance Platform
This library will help to show the polyline in dual color similar as Uber with animation in the demo.

Demo



Dependency

App Level:
implementation 'com.github.tintinscorpion:Dual-color-Polyline-Animation:{latest_version}'
Project Level:
maven { url 'https://jitpack.io' }

Steps:

Pass the googlemap context and Latlng points stored in arraylist.

   In Kotlin:

   MapAnimator.animateRoute(googleMap, polyLineList)

   In Java:

   MapAnimator.INSTANCE.animateRoute(googleMap, polyLineList);

polyLineList refers to the List of LatLng, the coordinates which is to be decoded from the directions api of google.

Additional:

You can change the color and animation time and the width of the polyline by passing :

MapAnimator.setPrimaryLineColor(color)
MapAnimator.setSecondaryLineColor(color) 
MapAnimator.setPercentCompletion(@IntegerRes time: Int) default is 2500 //amount of time to draw the initial polyline 
MapAnimator.setColorFillCompletion(@IntegerRes time: Int) default is 1800 //amount of time to refill the primary color
MapAnimator.setDelayTime(@IntegerRes time: Int) default is 200 //amount of time for delaying to run the sequenceof animation
MapAnimator.setPrimaryLineCompletion(@IntegerRes time: Int) default is 2000 //amount of time required for the animation to reach from point A to B
MapAnimator.setPolylineWidth(width: Float) default is 8f 

If you are calling these methods, call it before animateRoute() method call else it won't reflect.

Note:

If you are using proguard then, write this in proguard-rules.pro

//For android studio 4.0 and above- 
-keepclassmembers class com.logicbeanzs.uberpolylineanimation.* {
  <fields>;
  <init>();
  <methods>;
}


//For android studio below 4.0-
-keep class com.logicbeanzs.uberpolylineanimation.**



Developers

Pritam Dasgupta

License

MIT License Copyright (c) 2018 Pritam Dasgupta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].