Skip to content

Commit ce61062

Browse files
committed
reset coordinates on re-visit, remove location request
1 parent 779a92f commit ce61062

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

components/Map.vue

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -203,21 +203,6 @@ export default {
203203
};
204204
},
205205
async mounted() {
206-
if (localStorage.center) {
207-
this.myCoordinates = JSON.parse(localStorage.center);
208-
} else {
209-
// get user's coordinates from browser request
210-
this.$getLocation({})
211-
.then(coordinates => {
212-
this.myCoordinates = coordinates;
213-
})
214-
.catch(error => console.log(error));
215-
}
216-
217-
// does the user have a saved zoom? use it instead of the default
218-
if (localStorage.zoom) {
219-
this.zoom = parseInt(localStorage.zoom);
220-
}
221206
let ref = this;
222207
223208
// add the map to a data object

0 commit comments

Comments
 (0)