new LocationStrategy(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
lucid.maps.limbs.location.LocationStrategyOptions | The options controlling the location calculation. |
- Source:
Methods
-
computeLocation(target, mapBounds) → {google.maps.LatLng}
-
Parameters:
Name Type Description target
google.maps.Marker | google.maps.Polyline | google.maps.Polygon | google.maps.Rectangle | google.maps.Circle The given target. mapBounds
google.maps.LatLngBounds The bounds of the current map view. - Source:
Returns:
The location of the target. The actual location will vary between different strategy classes.- Type
- google.maps.LatLng
-
getMethodForTargetType(target) → {function}
-
Parameters:
Name Type Description target
google.maps.Marker | google.maps.Polyline | google.maps.Polygon | google.maps.Rectangle | google.maps.Circle The given target. - Source:
Returns:
The function that will compute the location for the type of target given.- Type
- function