GeolocationControl API
Props
Prop | Default | Description |
---|---|---|
position 'top-left'|'top-right'|'bottom-left'|'bottom-right' | bottom-right |
控件的停靠位置,默认定位到地图的右下角 |
offset {width: number, height: number } | undefined |
控件的水平偏移值 |
showAddressBar boolean | true |
是否显示定位信息面板。默认显示定位信息面板 |
enableAutoLocation boolean | false |
添加控件时是否进行定位。默认添加控件时不进行定位 |
Events
Event | Returns | Description |
---|---|---|
locationSuccess | DOMEvent | DOM Event |
Last Updated: 2021-08-29