Members
Object
# constant PositionState
Identifiers for position states.
Properties:
Name | Type | Description |
---|---|---|
POSITION_UNKNOWN |
string | When the position is not known. |
POSITION_REQUESTING |
string | When the UA is requesting the position. |
POSITION_INACCURATE |
string | When the position has lower accuracy than requested. |
POSITION_KNOWN |
string | When the position is known. |
POSITION_CENTERED |
string | When the map is centered on the current position (which is known). |
Type Definitions
Object
# PositionControlOptions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
MapsIndoors |
MapsIndoors | MapsIndoors instance | |
maxAccuracy |
number |
<optional> |
The max value of geolocation coordinate accuracy (learn more) for showing current position (meters). If accuracy is larger than that, the position will not be shown. Default value is 200. |
positionOptions |
Object |
<optional> |
Geolocation PositionOptions. |
positionMarkerStyles |
Object |
<optional> |
Layout options for the position marker |
accuracyCircleStyles |
Object |
<optional> |
Layout options for accuracy circle |
Example
// default values:
{
maxAccuracy: 200,
positionOptions: {
timeout: 30000,
enableHighAccuracy: true,
maximumAge: 0
}
timeout: 30000,
positionMarkerStyles: {
radius: '12px',
strokeWidth: '2px',
strokeColor: 'hsl(0, 0%, 100%)',
fillColor: 'hsl(217, 69%, 52%)',
fillOpacity: 1
},
accuracyCircleStyles: {
fillColor: 'hsl(217, 69%, 52%)',
fillOpacity: 0.16
}
}