MapUtils class
A utility class for map-related calculations and marker customization.
Provides helper methods for:
- Calculating perimeter and area from geographic coordinates
- Converting degrees to radians
- Creating dynamic text-based marker icons for Google Maps
Constructors
- MapUtils()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculateArea(
List< LatLng> points) → double - Calculates the approximate geodesic area (in square meters) of a closed polygon.
-
calculateTotalPerimeter(
List< LatLng> points) → double -
Calculates the total perimeter (in meters) of a list of
LatLngpoints. -
createTextIcon(
String text, {double width = 80, double horizontalPadding = 16, double verticalPadding = 8}) → Future< BitmapDescriptor> -
Creates a dynamic
BitmapDescriptormarker with customtext. -
degreesToRadians(
double degrees) → double - Converts degrees to radians.