Skip to content

Commit 48abec0

Browse files
committed
fix: Fix readme and updated example
1 parent 1b8243a commit 48abec0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 align="center" style="border-bottom: none;">🗺🎯 location-picker</h1>
22

3-
<h3 align="center">Efficiently allow your user to pick a location!</h3>
3+
<h3 align="center">Efficiently allow your users to pick a location!</h3>
44

55
<p align="center">
66
<a href="https://github.com/ellerbrock/open-source-badges/">

example/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
var confirmBtn = document.getElementById('confirmPosition');
2727
var onClickPositionView = document.getElementById('onClickPositionView');
2828
var onIdlePositionView = document.getElementById('onIdlePositionView');
29+
var map = document.getElementById('map');
2930

3031
// Initialize LocationPicker plugin
31-
var lp = new locationPicker('map', {
32+
var lp = new locationPicker(map, {
3233
setCurrentPosition: true, // You can omit this, defaults to true
3334
}, {
3435
zoom: 15 // You can set any google map options here, zoom defaults to 15

0 commit comments

Comments
 (0)