Location
Index
Constructors
constructor
Parameters
options: LocationOptionsInterface
Returns Location
Properties
optionaladdress
optionalgeoPoint
imagePath
img
optionalmarker
optionalobject
optionalsvgPoint
Methods
getData
Returns only essential data of the location
Returns { address: LocationAddress; geoPoint?: { lat: number; lng: number }; imagePath: string; img: string; markerImagePath: string; svgPoint?: { x: number; y: number } }
address: LocationAddress
optionalgeoPoint?: { lat: number; lng: number }
lat: number
lng: number
imagePath: string
img: string
markerImagePath: string
optionalsvgPoint?: { x: number; y: number }
x: number
y: number
getImageUrl
Returns full image path
Returns string
string URL path
getMarkerImage
Returns full marker image URL
Returns string
image URL
setAddress
Parameters
address: {}
Returns void
setGeoPoint
Sets GeoPoint of the location (lat/lng coordinates)
Parameters
geoPoint: GeoPoint | { lat: number; lng: number }
Returns void
void
setObject
Sets parent object
Parameters
object: Model
Returns void
setSvgPoint
Sets SvgPoint of the location (x/y coordinates)
Parameters
svgPoint: SVGPoint | { x: number; y: number }
Returns void
void
update
Parameters
options: LocationOptionsInterface
Returns void
Location class. Contains lat/lon, x/y coordinates, image, address and marker. Whenever you need to add a marker to the map, start with creating a location first.