We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ea717 commit 79fd662Copy full SHA for 79fd662
src/location-picker.ts
@@ -43,7 +43,8 @@ export default class LocationPicker {
43
this.element.children[0].appendChild(node)
44
}
45
46
- if (pO.setCurrentPosition) {
+ // Set center to current position if attribute `setCurrentPosition` is true and no initial position is set
47
+ if (pO.setCurrentPosition && !pO.lat && !pO.lng) {
48
this.setCurrentPosition()
49
50
0 commit comments