Google Maps पर क्षेत्रों को बनाने, चिह्नित करने और प्रबंधित करने के लिए एक शक्तिशाली Flutter पैकेज। बहु-क्षेत्र समर्थन, कस्टम मानचित्र शैलियां और कैमरा नियंत्रण जैसी विशेषताओं के साथ एक निरंतर उपयोगकर्ता अनुभव प्रदान करता है।
सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
MapZoneManager एक Flutter पैकेज है जिसका उद्देश्य Google मानचित्र पर क्षेत्रों के निर्माण, चिह्नांकन और प्रबंधन को सरल बनाना है। इसमें कई क्षेत्रों का समर्थन है, मानचित्र शैली को कस्टमाइज़ करने की अनुमति है, और चित्रण के लिए सटीक कैमरा नियंत्रण प्रदान करता है। डिलीवरी क्षेत्र, आयोजन क्षेत्र या भौगोलिक घेरे जैसे अनुप्रयोगों के लिए आदर्श है। पैकेज Android, iOS और वेब प्लेटफॉर्म के साथ बिना किसी दिक्कत के एकीकृत होता है, जिससे विकासकर्ताओं को इंटरैक्टिव मानचित्र-आधारित विशेषताओं के लिए एक विश्वसनीय समाधान मिलता है।
उपयोग
डिलीवरी क्षेत्र दृश्याकरण
जियोफेंसिंग एप्लिकेशन
घटना क्षेत्र योजना
इंटरैक्टिव मानचित्र अनुमान
स्थान-आधारित सेवाएं
रियल-टाइम क्षेत्र ट्रैकिंग
मुख्य विशेषताएँ
बहु-क्षेत्र समर्थन
कस्टमाइज़ेबल मैप स्टाइल्स
कैमरा नियंत्रण उपकरण
क्षेत्र निर्माण उपकरण
इंटरैक्टिव क्षेत्र चिह्न
प्लेटफॉर्म के अनुकूलता
इनके लिए उपयुक्त
स्थान-जागरूक एप्लिकेशन बना रहे विकासकर्मी
क्षेत्र-आधारित मानचित्र इंटरैक्शन की आवश्यकता वाली टीमें
जियोफेंसिंग या डिलीवरी क्षेत्र का उपयोग करने वाले एप्लिकेशन
वेब और मोबाइल मानचित्र एकीकरण
गतिशील मानचित्र अनुमोदन की आवश्यकता वाले प्रोजेक्ट
विचार योग्य बातें
Google Maps API की की आवश्यक है
Google Maps एकीकरण पर सीमित
बड़ी संख्या में क्षेत्रों के लिए प्रदर्शन ट्यूनिंग की आवश्यकता हो सकती है
मानचित्र रेंडरिंग के लिए स्थिर इंटरनेट कनेक्शन की आवश्यकता होती है
वेब प्लेटफॉर्म के लिए अतिरिक्त सेटअप की आवश्यकता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
MapZoneManager
MapZoneManager is a Flutter package that provides a widget and controller to manage zones on a Google Map. It allows you to create, update, and manage multiple zones, with features for handling map markers, polygons, and custom actions like adding or resetting zones. It supports both single and multi-zone management and is highly customizable with features like custom buttons and map styles.
Features
Zone Creation: Create zones by tapping on the map and adding coordinates to form a polygon.
Multiple Zones: Supports managing multiple zones on the map.
Customizable: Customize zone colors, border colors, and border width.
View-Only Mode: Ability to display zones in a read-only mode (no zone creation).
Custom Buttons: Option to replace the default add/reset zone buttons with custom widgets.
Markers & Polygons: Displays markers and polygons for each zone created on the map.
Zoom Controls: Enable/disable zoom controls and gestures.
Location Services: Enable location tracking and display of the user's current location.
Map Styles: Apply different map styles to customize the appearance of the map.
Installation
To add the package to your Flutter project, update your pubspec.yaml file:
Run flutter pub get to install the dependencies.
dependencies:
map_zone_manager: ^0.0.1
Usage
Basic Usage
To use the MapZoneManager widget, you need to add it to your widget tree. Here's a basic example:
initialCameraPosition: The initial camera position for the map (optional).
markerIcon: The icon for the markers (optional).
multiZone: Whether multiple zones can be added (default is true).
showAddButton: Whether to show the button to add a zone (default is true).
showResetButton: Whether to show the button to reset the zone (default is true).
viewOnly: Whether the map is in view-only mode (default is false).
addButtonWidget: Custom widget for the add button (optional).
resetButtonWidget: Custom widget for the reset button (optional).
zones: A list of initial zones to display on the map (optional).
onZoneAdded: A callback triggered when a new zone is added (optional).
mapStyle: The map style to apply (optional, defaults to MapStyle.standard).
mapZoneManagerController: A controller to manage map zones (optional).
minimumCoordinatesForAdding: The minimum number of coordinates required to create a zone (default is 2).
defaultZoneColor: The default fill color for zones (default is Colors.yellow).
defaultBorderColor: The default border color for zones (default is Colors.black).
defaultBorderWidth: The default border width for zones (default is 2).
currentZoneColor: The color for the current zone being created (default is Colors.red).
currentBorderColor: The color for the current zone's border (default is Colors.black).
currentBorderWidth: The width of the current zone's border (default is 2).
onTap: A callback triggered when the map is tapped (optional).
onLongPress: A callback triggered when the map is long-pressed (optional).
zoomControlsEnabled: Whether zoom controls are enabled (default is true).
zoomGesturesEnabled: Whether zoom gestures are enabled (default is true).
myLocationEnabled: Whether the user's current location is displayed (default is false).
myLocationButtonEnabled: Whether the "My Location" button is enabled (default is true).
MapZoneManagerController
The MapZoneManagerController is a controller class for managing zones and map-related operations. You can use this controller to manage zones, add coordinates, and move the camera to fit a zone.