सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Flutter Animarker एक विशेष पैकेज है जो Flutter एप्लिकेशन में Google मानचित्र पर मार्कर के एनीमेशन के लिए उपयोग किया जाता है। यह स्मूथ, डायनामिक मार्कर गति और ट्रांज़िशन की अनुमति देता है, जो वास्तविक समय की स्थिति ट्रैकिंग या पथ एनीमेशन के लिए आदर्श है। प्रदर्शन और एकीकरण की आसानी के लिए बनाया गया, यह सभी प्रमुख प्लेटफॉर्म जैसे Android, iOS, Web, macOS, Windows और Linux को समर्थन देता है। यह Google मानचित्र कार्यक्षमता को एनीमेशन गति, ईज़िंग और मार्कर व्यवहार को नियंत्रित करने के लिए उपयोगी API के साथ विस्तारित करता है। नेविगेशन एप्लिकेशन, डिलीवरी ट्रैकिंग या किसी भी ऐसे उपयोग केस के लिए आदर्श है जिसमें एनीमेटेड भौगोलिक स्थिति मार्कर की आवश्यकता हो।
उपयोग
रियल-टाइम स्थान ट्रैकिंग
एनिमेटेड रूट विज़ुअलाइज़ेशन
डिलीवरी या राइड-शेयरिंग ऐप्स
इंटरैक्टिव मानचित्र टूर
भौगोलिक डेटा कहानी रचना
मुख्य विशेषताएँ
चिकनी मार्कर एनिमेशन
क्रॉस-प्लेटफ़ॉर्म समर्थन
कस्टमाइज़ेबल एनिमेशन स्पीड
ईजिंग कर्व नियंत्रण
सरल API एकीकरण
रियल-टाइम स्थिति अपडेट
इनके लिए उपयुक्त
स्थान-आधारित एप्लिकेशन बना रहे डेवलपर्स
एनिमेटेड मैप मार्कर वाले ऐप्स
गूगल मैप्स के साथ डायनामिक डेटा का उपयोग करने वाले प्रोजेक्ट
क्रॉस-प्लेटफॉर्म सुसंगतता को प्राथमिकता देने वाली टीमें
विचार योग्य बातें
Google Maps SDK सेटअप की आवश्यकता है
Google Maps एकीकरण पर सीमित
प्रदर्शन एनीमेशन की जटिलता पर निर्भर करता है
उच्च आवृत्ति अपडेट के लिए अनुकूलन की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Google Maps Marker Animation - Overview
Sometimes you need more than place a Marker📍 at map canvas 🌍, you need to smoothly move through Google Maps.
This package will help you to animate Markers' position changes and more.
This version v3.0.0 includes many useful features, namely:
Marker's position animation
Multiple markers' animations at the same time
Null-safety compatible
Ripple effect over marker position
Marker's rotation or bearing/heading of direction
Multipoint linear animation (Piecewise Linear Approximation Algorithm)
Support animation curves and duration
Widget-based with fully customized behaviors
Animation warm-up for improving performance
Useful LocationTween, AngleTween and PolynomialLocationInterpolator core logic
Note
This package only animate the marker's changes. Both Geolocation and Google Maps configuration are out of the scope of this package. So, before trying this package to ensure that you place a marker you Google Map or get location updates.
You only need to use the marker wrapper class RippleMarker, and set the ripple flag in order you can the ripple state.
Animarker(
// Other properties
rippleRadius: 0.5, //[0,1.0] range, how big is the circle
rippleColor: Colors.teal, // Color of fade ripple circle
rippleDuration: Duration(milliseconds: 2500), //Pulse ripple duration
markers: <Marker>{
//Ripple MarkerRippleMarker(
markerId: MarkerId('MarkerId1'),
position: LatLng(0, 0),
ripple: true, //Ripple state
),
//Non-ripple markerMarker(
markerId: MarkerId('MarkerId2'),
position: LatLng(0, 0),
),
},
// Other properties
)
So, Let's it rip!
Using Rotation
The Marker rotation can be useful for Uber-like or delivery apps. The bearing or heading is the angle of direction which the Marker is moving toward to over the earth.
Animarker(
// Other properties
useRotation : true, // Actived by default
markers: <Marker>{
Marker(
markerId: MarkerId('MarkerId2'),
position: LatLng(0, 0),
)
},
// Other properties
)
This way useRotation = true, you control globally if Marker should rotate or not.
Using Curve and Duration
Just like a normal Flutter animation, you can set a Curve o Duration to get the desire effect or result. So flexible, right?
BSD-3-Clause License Copyright 2020 Gauris Javier. All rights
reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.```