LazarilloMapsPlatform
Constructors
LazarilloMapsPlatform.new
LazarilloMapsPlatform.new()Constructs a LazarilloMapsPlatform.
Methods
addAttributeMarker
addAttributeMarker(String mapId, LzAttributeMarker marker) → Future<String>addBasicMarker
addBasicMarker(String mapId, LzBasicMarker marker) → Future<String>addRoute
addRoute(RouteConfiguration routeConfiguration) → Future<LzRoute?>Creates a route on the map with enhanced origin handling and fallback logic.
buildViewWithConfiguration
buildViewWithConfiguration(String apiKey, String mapId, dynamic onMapReady(String)?, {required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers, required MapConfiguration mapConfiguration}) → WidgetMethod that returns a Widet instance according to the type of platform used and the delivered map configuration, gestureRecognizers and mapConfiguration are required, gestureRecognizers refers to an instance of allowed gesture sequence and mapConfiguration refers to an instance of MapConfiguration model with all its values.
clearMarkers
clearMarkers(String mapId) → Future<void>Remove all markers from the map mapId refers to the identifier of the map
clearRoute
clearRoute(String mapId) → Future<void>clearSelectedPlace
clearSelectedPlace(String mapId) → Future<void>followUserLocation
followUserLocation(String mapId, bool follow, {double? pitch, double? zoom}) → Future<void>Follow user location on the map mapId refers to the identifier of the map you are pointing to follow indicates whether to follow user location or not pitch optional pitch angle in degrees zoom optional zoom level
getPlaceInfo
getPlaceInfo(String id) → Future<LzPlace?>This method is in charge of obtaining the information of the place from the api, it only needs the parameter placeId, which refers to the unique identifier of the place that is being consulted.
getPlacesForApiKey
getPlacesForApiKey(String apiKey) → Future<List<LzPlace?>getPlatformVersion
getPlatformVersion() → Future<String?>Return a String with the platform (“Android”, “iOS”) and the version @returns String
getSubPlacesById
getSubPlacesById(String id) → Future<List<LzPlace?>hideLocationOnMap
hideLocationOnMap(String mapId) → Future<void>This method corresponds to the function to hide the user’s location on the map, it requires the mapId parameter, which refers to the identifier of the map.
initializePlugin
initializePlugin(String apiKey, String? placeId) → Future<void>Allows to initialize a lazarilloSDK instance, the parameters apikey and placeId are required, apiKey refers to the lazarillo api access key and placeId refers to the alphanumeric id that receives a specific place, the method does not return values.
removeCompassClickListener
removeCompassClickListener(String mapId) → Future<void>Remove the compass click listener.
removeLocationButtonClickListener
removeLocationButtonClickListener(String mapId) → Future<void>Remove the location button click listener.
removeMarker
removeMarker(String mapId, String markerId) → Future<void>Remove a specific marker by its ID mapId refers to the identifier of the map markerId refers to the ID of the marker to remove
setBearing
setBearing(String mapId, double bearing) → Future<void>Set the bearing (rotation) of the map camera mapId refers to the identifier of the map you are pointing to bearing bearing angle in degrees
setFloor
setFloor(String mapId, String floorId) → Future<void>Allows you to change the floor you are on in order to see the correct information on the map, mapId and floorId are required, mapId refers to the identifier of the map you are pointing to, floorId refers to the floor you want to change to.
setOnCompassClickListener
setOnCompassClickListener(String mapId, void callback(double)) → Future<void>Set a callback to be notified when the user taps the compass button on the map.
setOnLocationButtonClickListener
setOnLocationButtonClickListener(String mapId, void callback(LocationButtonClickResult)) → Future<void>Set a callback to be notified when the user taps the location button on the map.
setParentPlace
setParentPlace(String? id) → Future<void>setPitch
setPitch(String mapId, double pitch) → Future<void>Set the pitch (tilt) of the map camera mapId refers to the identifier of the map you are pointing to pitch pitch angle in degrees
showLocationOnMap
showLocationOnMap(String mapId) → Future<void>This method corresponds to the function to show the user’s location on the map, it requires the mapId parameter, which refers to the identifier of the map.
startUpdatingLocation
startUpdatingLocation(void callback(Position)) → Future<void>This method corresponds to the function to start listening to the change of state of the user’s location, in addition to configuring the callback of the location, for this you need the callback, in this case callback is a function that receives by parameter a position object, regularly corresponds to the variable location, this function does not return anything.
startUpdatingTappedPlace
startUpdatingTappedPlace(String mapId, void callback(String?)) → Future<void>This method corresponds to the function to start listening to the change of state of the tap in some allowed place, besides configuring the callback of the tap, for that you need the parameter mapId and callback, in this case mapId refers to the identifier of the map and callback is a function that receives by parameter a String, regularly corresponds to the variable placeId, this function does not return anything.
stopUpdatingLocation
stopUpdatingLocation() → Future<void>This method corresponds to the function to finish listening and clearing the location callback of user location, no parameters required.
stopUpdatingTappedPlace
stopUpdatingTappedPlace(String mapId) → Future<void>This method corresponds to the function to finish listening and clearing the tap callback of an allowed place, it only requires the mapId, which refers to the map identifier.