Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ Options specific for this plugin
* `lat`: latitude of initial needed position
* `lng`: longitude of initial needed position
* `setCurrentPosition`: specifies if you want the plugin to automatically try and detect and set the marker to the the current user's location. It has no effect if `lat` and `lng` are supplied. _(defaults to true)_
* `dfLat` : default latitude if `lat` is not defined and setCurrentPosition is false or does not work
* `dfLng` : default latitude if `lng` is not defined and setCurrentPosition is false or does not work



#### `mapOptions`:
Expand Down
2 changes: 1 addition & 1 deletion src/location-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class LocationPicker {
Object.assign(pO, options)

let mO: MapOptions = {
center: new google.maps.LatLng(pO.lat ? pO.lat : 34.4346, pO.lng ? pO.lng : 35.8362),
center: new google.maps.LatLng(pO.lat ? pO.lat : pO.dfLat ? pO.dfLat : 34.4346, pO.lng ? pO.lng : pO.dfLng ? pO.dfLng : 35.8362),
zoom: 15
}

Expand Down