Interface

PositionControlOptions

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
    }
}