सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर प्लगइन जो फ्लटर_मैप का उपयोग करके मानचित्र पर डिवाइस की वर्तमान स्थिति को दिखाने की अनुमति देता है। यह एक आसान तरीका प्रदान करता है जिससे उपयोगकर्ता की वास्तविक समय की स्थिति को एक कस्टमाइज़ किए गए मार्कर के साथ देखा जा सकता है, जिससे भौगोलिक स्थिति-आधारित एप्लिकेशन में सुधार होता है। प्लगइन फ्लटर_मैप पैकेज के साथ बिना किसी दिक्कत के एकीकृत होता है और एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स जैसे विभिन्न प्लेटफॉर्म को सपोर्ट करता है। नेविगेशन टूल, डिलीवरी ट्रैकिंग या स्थान साझा करने वाली सेवाओं जैसे ऐप्स के लिए यह आदर्श है।
उपयोग
रियल-टाइम स्थान ट्रैकिंग
नेविगेशन ऐप्स
डिलीवरी और लॉजिस्टिक्स
स्थान-आधारित सेवाएं
उपयोगकर्ता स्थिति के साथ मानचित्र ओवरले
मुख्य विशेषताएँ
वर्तमान उपकरण स्थिति दिखाएं
कस्टमाइज़ेबल स्थान मार्कर
flutter_map के साथ निरंतर एकीकरण
कई प्लेटफॉर्म का समर्थन करता है
स्थान परिवर्तन के लिए स्वचालित अद्यतन
इनके लिए उपयुक्त
मानचित्र-एकीकृत एप्लिकेशन बना रहे विकासकर्मी
रियल-टाइम जीपीएस ट्रैकिंग की आवश्यकता वाले ऐप्स
क्रॉस-प्लेटफ़ॉर्म जियोलोकेशन समाधान
स्थान-जागरूक डैशबोर्ड
विचार योग्य बातें
स्थान की अनुमति की आवश्यकता है
सक्रिय होने पर बैटरी का उपयोग कर सकता है
flutter_map के इंस्टॉल होने पर निर्भर करता है
सटीकता उपकरण जीपीएस पर निर्भर करती है
अनुमति अनुरोधों का सही तरीके से प्रबंधन की आवश्यकता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
flutter_map_location_marker
flutter_map_location_marker is a flutter_map plugin for
displaying the device's current location on a map. It provides a simple and flexible way to add a
customizable location marker to your map.
Join flutter_map Discord server to talk
about flutter_map_location_marker, get help and help others in the #plugins channel.
Features
Simple: The only thing you need to do is to add a CurrentLocationLayer() to your map
because all parameters have good default values.
Flexible: The default implementation receives the device's position from
the geolocator package and the device's heading from
the flutter_rotation_sensor package, but with
type conversion, streams from other sources are also supported.
Auto-following: The map follows the new location when the location is updated. This feature is
disabled by default.
Auto-rotating: The map can be rotated automatically in navigation mode. This feature is
disabled by default.
Customization: The location marker can be fully customized, including the colors of the
accuracy circle and heading sector.
Usage
Add flutter_map_location_marker to your pubspec.yaml:
dependencies:flutter_map_location_marker:any# or latest version
Add permission by following the instructions from
the geolocator package.
Custom Stream:
Use your own stream, such as position stream from another library or predefined route, as the
source.
No Stream:
Use Flutter setState() to update position and heading.
Navigation Mode:
Rotate the map to keep heading pointing upward.
Default Stream:
Share the default streams between your app and this plugin.
FAQ
Q: How can I get
the positionStream
, headingStream
or their origin streams from a CurrentLocationLayer widget?
A: You should not get these streams from a CurrentLocationLayer widget. Instead, create your own
streams with the same types and also pass them to all widgets that need them. CurrentLocationLayer
doesn't own the streams; it just listens to them. You can use any implementation of position and
heading streams, as long as the stream types are Stream<LocationMarkerPosition?> and
Stream<LocationMarkerHeading?>, respectively. You may
see this example
to know about how to do this.