TourModel class

Class that defines the tour entity, which contains its properties and methods. Used for creating the tour path and the placemarks.

Constructors

TourModel({required String name, required int numberOfPlaces, required List<LookAtModel> lookAtCoordinates, required List<String> poisNames})
TourModel.fromMap(Map<String, dynamic> map)
Returns a TourModel from the given map.
factory

Properties

allPathPoints List<LatLng>
Property that defines the list of all path points.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interpolatedPoints List<LatLng>
Property that defines the list of interpolated points.
getter/setter pair
lookAtCoordinates List<LookAtModel>
Property that defines the list of look at coordinates.
getter/setter pair
name String
Property that defines the tour name.
getter/setter pair
numberOfPlaces int
Property that defines the number of places in the tour.
getter/setter pair
poisNames List<String>
Property that defines the list of POIs names.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
waitOnlyTag String
Property that defines the tour waitOnlyTag according to its current properties.
no setter

Methods

ballonVisibilityOnlyTag(String placemarkIndex, int visibility) String
Property that defines the tour ballonVisibilityOnlyTag according to its current properties.
calculateDistance(LatLng start, LatLng end) double
Property that defines the tour calculateDistance according to its current properties. Returns the distance between two given points.
determineNumPoints(double distance) int
Property that defines the tour determineNumPoints according to its current properties. Returns the number of points to interpolate between two given points.
flyToCameraOnlyTag(double lat, double long) String
Property that defines the tour flyToCameraOnlyTag according to its current properties.
flyToLookAtOnlyTag(double lat, double long, String mode, double duration, String range, String tilt, String heading, double altitude) String
Property that defines the tour flyToLookAtOnlyTag according to its current properties.
iconStyleOnlyTag(String hrefIcon, String styleID) String
Property that defines the tour iconStyleOnlyTag according to its current properties.
interpolatePoints(LatLng start, LatLng end) List<LatLng>
Property that defines the tour interpolatePoints according to its current properties. Returns a list of interpolated points between two given points.
linePlacemarkOnlyTag(List<LatLng> coordinates) String
Property that defines the tour linePlacemarkOnlyTag according to its current properties. Returns the line placemark content.
lineStyleOnlyTag() String
Property that defines the tour lineStyleOnlyTag according to its current properties.
lineTourTag() List
//////////////////////////////////////////////////////////////////////////////////////////////////////
midPointPlacemarkOnlyTag(double lat, double long, String styleID) String
Property that defines the tour midPointPlacemarkOnlyTag according to its current properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
placemarkOnlyTag(String placemarkIndex, String placemarkName, double lat, double long) String
Property that defines the tour placemarkOnlyTag according to its current properties.
pointPlacemarkOnlyTag(String placemarkName, double lat, double long, String styleID) String
Property that defines the tour pointPlacemarkOnlyTag according to its current properties.
setInterpolatedPath() → dynamic
Property that defines the tour setInterpolatedPath according to its current properties.
styleOnlyTag(String placemarkIndex) String
Property that defines the tour styleOnlyTag according to its current properties.
toMap() Map<String, dynamic>
Returns a Map from the current TourModel.
toString() String
A string representation of this object.
inherited
tourTag() String

Operators

operator ==(Object other) bool
The equality operator.
inherited