Skip to Content
API ReferenceCoreMethodChannelLazarilloMaps

MethodChannelLazarilloMaps

An implementation of LazarilloMapsPlatform that uses method channels.

Constructors

MethodChannelLazarilloMaps.new

MethodChannelLazarilloMaps.new()

Properties

PropertyTypeDescription
apiKey↔ String(getter/setter pair)
methodChannelMethodChannelThe method channel used to interact with the native platform. (final)

Methods

addAttributeMarker

addAttributeMarker(String mapId, LzAttributeMarker marker) → Future<String>

override

addBasicMarker

addBasicMarker(String mapId, LzBasicMarker marker) → Future<String>

override

addRoute

addRoute(RouteConfiguration routeConfiguration) → Future<LzRoute?>

Creates a route on the map with enhanced origin handling and fallback logic. override

buildViewWithConfiguration

buildViewWithConfiguration(String apiKey, String mapId, dynamic onMapReady(String)?, {required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers, required MapConfiguration mapConfiguration}) → Widget

Method that returns a Widget 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. override

clearMarkers

clearMarkers(String mapId) → Future<void>

Remove all markers from the map mapId refers to the identifier of the map override

clearRoute

clearRoute(String mapId) → Future<void>

override

clearSelectedPlace

clearSelectedPlace(String mapId) → Future<void>

override

followUserLocation

followUserLocation(String mapId, bool follow, {double? pitch, double? zoom}) → Future<void>

Follow user location on the map override

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. override

getPlacesForApiKey

getPlacesForApiKey(String apiKey) → Future<List<LzPlace?>

override

getPlatformVersion

getPlatformVersion() → Future<String?>

Return a String with the platform (“Android”, “iOS”) and the version @returns String override

getSubPlacesById

getSubPlacesById(String id) → Future<List<LzPlace?>

override

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. override

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. override

removeCompassClickListener

removeCompassClickListener(String mapId) → Future<void>

Remove the compass click listener. override

removeLocationButtonClickListener

removeLocationButtonClickListener(String mapId) → Future<void>

Remove the location button click listener. override

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 override

setBearing

setBearing(String mapId, double bearing) → Future<void>

Set the bearing (rotation) of the map camera override

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. override

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. override

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. override

setPitch

setPitch(String mapId, double pitch) → Future<void>

Set the pitch (tilt) of the map camera override

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. override

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. override

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. override

stopUpdatingLocation

stopUpdatingLocation() → Future<void>

This method corresponds to the function to finish listening and clearing the location callback of user location, no parameters required. override

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. override

Last updated on