GalliMap
size
Type: Record ({double height, double width})
Required: True
Default: null
Description:
GalliMap( size: ( height: MediaQuery.of(context).size.height * 0.8, width: MediaQuery.of(context).size.width * 0.8, ), )
onMapCreated
Type: Function(GalliMapController controller)
Required: False
Default: null
Description:
GalliMapController? controller; GalliMap( size: ( height: MediaQuery.of(context).size.height * 0.8, width: MediaQuery.of(context).size.width * 0.8, ), compassPosition: ( position: CompassViewPosition.TopRight, offset: null ), showCompass: true, onMapCreated: (newC) { controller = newC; }, )
showCurrentLocation
Type: Bool
Required: False
Default: True
Description: Shows a default user location marker, asks for user location uses if true
showCompass
Type: Bool
Required: False
Default: True
Description: to show or not to show the compass widget, To show custom compass widget, disable the default compass widget and pass a custom widget in children, you can use compass package to get user bearing and use animateMap to rotate map to north
showCurrentLocationButton
Type: Bool
Required: False
Default: True
Description: It will display a button when we tap on it ,It will show a current location
showSearchWidget
Type: Bool
Required: False
Default: True
Description: It is used to search the location .when the user will tap on it ,the user can search the location
showThree60Widget
Type: Bool
Required: False
Default: True
Description: This parameter determines whether to display a Three60 widget. A Three60 widget is a visual component that likely provides a 360-degree view or interactive experience. When showThree60Wisget is set to true (the default), the widget will be shown. If it's set to false, the widget will not be displayed, potentially saving screen space or enhancing the user experience in a different way.
compassPosition
Type: Record ({CompassViewPosition? position, Point<num>? offset})
Required: False
Default: (position: CompassViewPosition.BottomRight,offset: const Point(30, 48))
Description: Default value for compass postion, (BottomRight, BottomLeft, TopRight, TopLeft) and offset to pad the compass widget from the viewport
onMapCreated
Type:Function(GalliMapController controller)?
Required: False
Default: null
Description:
The onMapCreated parameter is a function callback that can be used in the context of creating a map or a map-related component. It is typically utilized to perform actions or configurations after a map has been created and is ready for interaction.
onMapClick
Type: Function(LatLng latlng)?
Required: False
Default:null
Description: The onMapClick parameter is a function callback that is used to handle user clicks or interactions with a map component. It will take a LatLng parameter which represents the geographic coordinates (latitude and longitude) where the user clicked on the map.
initialCameraPostion
Type: CameraPosition
Required: False
Default:
const CameraPosition( target: LatLng( 27.677120, 85.322313,), zoom: 18, bearing: 0.0, tilt: 0),
Description: The initialCameraPosition parameter is used to specify the initial camera position and orientation when a map or map component is first loaded. CameraPosition defines properties of the camera such as target location which is latitude and longitude ,zoom level bearing(rotation), adnd tilt.
onUserLocationChanged
Type: Function(UserLocation location)?
Required: False
Default:null
Description: The onUserLocationChanged parameter is a function callback used to handle changes in the user's location on a map or map-based component.The function is expected to take a userlocation parameter, which represents the user's current location information, including latitude, longitude, altitude, and potentially other attributes related to the user's location.
authToken
Type: final String authToken;
Required: True
Default: null
Description: authtoken is needed to run the app
minMaxZoomPreference
Type: MinMaxZoomPreference
Required: false
Default: const MinMaxZoomPreference(4.5, 22),
Description:The minMaxZoomPreference parameter is used to specify the minimum and maximum zoom levels allowed on a map or map-based component. The default minMaxZoomPreference allows zoom levels between 4.5(fairly zoom-out)and 22(fairly zoomed-in).
zoomGestureEnabled
Type: bool
Required: false
Default: true
Description: The zoomGestureEnabled parameter is used to control whether zooming in and out of the map using gestures (such as pinch-to-zoom on touchscreens) is enabled or disabled. when the zoomGestureEnabled is true ,users can use gestures to zoom in and out on the map if false it disables the zooming gestures.
doubleClickZoomEnabled
Type: bool
Required: false
Default: true
Description: The doubleClickZoomEnabled parameter is used to control whether zooming in and out of the map using a double-click or double-tap gesture is enabled or disabled.
dragEnabled
Type: bool
Required: false
Default: true
Description: The dragEnabled parameter is used to control whether users can drag or pan the map by clicking and dragging it to explore different areas
rotateGestureEnabled
Type: bool
Required: false
Default: true
Description: The rotateGestureEnabled parameter is used to control whether users can rotate the map using gestures, such as two-finger rotation or other rotation gestures
tiltGestureEnabled
Type: bool
Required: false
Default: true
Description: The tiltGestureEnabled parameter is used to control whether users can tilt or change the perspective of the map using gestures, such as a two-finger tilt gesture
scrollGestureEnabled
Type: bool
Required: false
Default: true
Description: The scrollGestureEnabled parameter is used to control whether users can scroll or pan the map by swiping or scrolling on their device's touch screen.
onMapLongPress
Type: Function(LatLng latLng)?
Required: false
Default: null
Description:
The onMapLongPress parameter is a function callback used to handle long-press or long-tap events on a map or map-based component. It allows you to define custom behavior that should occur when a user long-presses or long-taps on the map.
The function is expected to take a LatLng parameter, which represents the geographic coordinates (latitude and longitude) where the user performed the long-press or long-tap.
children
Type: List<Widget>
Required: false
Default: const []
Description: It represents a list of child widgets that are intended to be added or displayed within a parent widget or component.