GeolocationControlOptions
interface GeolocationControlOptions {
anchor?: ControlAnchor;
autoViewport?: boolean;
autoZoom?: boolean;
enableAutoLocation?: boolean;
locationIcon?: Icon;
offset?: Size;
showAddressBar?: boolean;
useCompass?: boolean;
watchPosition?: boolean;
}
anchor?: ControlAnchor;
autoViewport?: boolean;
autoZoom?: boolean;
enableAutoLocation?: boolean;
locationIcon?: Icon;
offset?: Size;
showAddressBar?: boolean;
useCompass?: boolean;
watchPosition?: boolean;
}
GeolocationControl 构造函数的可选参数。它没有构造函数,但可通过对象字面量形式表示。