casa_google_map library

Classes

AndroidGoogleMapsFlutter
Android specific settings for GoogleMap.
AndroidSettings
Represents different Android specific settings with which you can set a value other then the default value of the setting.
AppleSettings
Represents different iOS specific settings with which you can set a value other then the default value of the setting.
ArgumentCallbacks<T>
Mutable collection of ArgumentCallback instances, itself an ArgumentCallback.
BitmapDescriptor
Defines a bitmap image. For a marker, this class can be used to set the image of the marker icon. For a ground overlay, it can be used to set the image to place on the surface of the earth.
CameraPosition
The position of the map "camera", the view point from which the world is shown in the map view.
CameraTargetBounds
Bounds for the map camera target.
CameraUpdate
Defines a camera move, supporting absolute moves as well as moves relative the current position.
Cap
Cap that can be applied at the start or end vertex of a Polyline.
CasaGoogleMap
A CasaGoogleMap which can be used to make polylines(route) from a source to a destination, and also handle a driver's realtime location (if any) on the map.
CasaMapService
CasaMarkerIcon
Class used to provide information about the marker on the GoogleMap widget. Pass either an asset image assetPath or a material icon. assetMarkerSize can be provided to resize image at assetPath.
CasaPosition
Circle
Draws a circle on the map.
CircleId
Uniquely identifies a Circle among GoogleMap circles.
ForegroundNotificationConfig
Configuration for the foreground notification. When this is provided the location service will run as a foreground service.
Geolocator
Wraps CLLocationManager (on iOS) and FusedLocationProviderClient or LocationManager (on Android), providing support to retrieve position information of the device.
GeolocatorPlatform
The interface that implementations of geolocator must implement.
GoogleMap
A widget which displays a map with data obtained from the Google Maps service.
GoogleMapController
Controller for a single GoogleMap instance running on the host platform.
InfoWindow
Text labels for a Marker info window.
LatLng
A pair of latitude and longitude coordinates, stored as degrees.
LatLngBounds
A latitude/longitude aligned rectangle.
LocationSettings
Represents the abstract LocationSettings class with which you can configure platform specific settings.
Marker
Marks a geographical location on the map.
MarkerId
Uniquely identifies a Marker among GoogleMap markers.
MinMaxZoomPreference
Preferred bounds for map camera zoom level.
PatternItem
Item used in the stroke pattern for a Polyline.
Polygon
Draws a polygon through geographical locations on the map.
PolygonId
Uniquely identifies a Polygon among GoogleMap polygons.
Polyline
Draws a line through geographical locations on the map.
PolylineId
Uniquely identifies a Polyline among GoogleMap polylines.
Position
Contains detailed location information.
ScreenCoordinate
Represents a point coordinate in the GoogleMap's view.
Tile
Contains information about a Tile that is returned by a TileProvider.
TileOverlay
A set of images which are displayed on top of the base map tiles.
TileOverlayId
Uniquely identifies a TileOverlay among GoogleMap tile overlays.
TileProvider
An interface for a class that provides the tile images for a TileOverlay.

Enums

ActivityType
Represents the possible iOS activity types.
CasaMapViewType
JointType
Joint types for Polyline.
LocationAccuracy
Represent the possible location accuracy values.
LocationAccuracyStatus
Represent the current Location Accuracy Status on iOS 14.0 and higher.
LocationPermission
Represent the possible location permissions.
MapType
Type of map tiles to display.
ServiceStatus
Describes the current state of the location service on the native platform.
WebGestureHandling
This setting controls how the API handles gestures on the map

Extensions

IntergerExtensions on int
Provides extension methods on the LocationAccuracy enum.

Typedefs

ArgumentCallback<T> = void Function(T argument)
Callback function taking a single argument.
CameraPositionCallback = void Function(CameraPosition position)
Callback that receives updates to the camera position.
MapCreatedCallback = void Function(GoogleMapController controller)
Callback method for when the map is ready to be used.

Exceptions / Errors

ActivityMissingException
An exception thrown when executing functionality which requires an Android while no activity is provided.
AlreadySubscribedException
An exception thrown when subscribing to receive positions while another subscription is already active.
InvalidPermissionException
An exception thrown when trying to convert a unknown permission into the LocationPermission enum.
LocationServiceDisabledException
An exception thrown when trying to access the device's location information while the location service on the device is disabled.
MapStyleException
Exception when a map style is invalid or was unable to be set.
PermissionDefinitionsNotFoundException
An exception thrown when the required platform specific permission definitions could not be found (e.g. in the AndroidManifest.xml file on Android or in the Info.plist file on iOS).
PermissionDeniedException
An exception thrown when trying to access the device's location information while access is denied.
PermissionRequestInProgressException
An exception thrown when requesting location permissions while an earlier request has not yet been completed.
PositionUpdateException
An exception thrown when something went wrong while listening for position updates.
UnknownMapObjectIdError
Error thrown when an unknown map object ID is provided to a method.