From d36dbd47cd6e9669568f9b3408791b046ca5390a Mon Sep 17 00:00:00 2001 From: jayparmar271 Date: Sat, 30 Sep 2023 19:18:15 +0530 Subject: [PATCH 1/2] feat: Allow maptype id --- src/components/GoogleMap.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/GoogleMap.vue b/src/components/GoogleMap.vue index c212534..9d3577f 100644 --- a/src/components/GoogleMap.vue +++ b/src/components/GoogleMap.vue @@ -46,7 +46,8 @@ export default { mapStyleOption: { type: Object, default: () => ({}) }, loaderOptions: { type: Object, default: () => ({}) }, drawingManagerOptions: { type: Object, default: () => ({}) }, - drawingControlOptions: { type: Object, default: () => ({}) } + drawingControlOptions: { type: Object, default: () => ({}) }, + mapTypeId: { type: String, default: 'terrain' } }, data () { return { @@ -70,7 +71,8 @@ export default { libraries: ['places', 'drawing'], language: this.language, location: this.location, - loaderOptions: this.loaderOptions + loaderOptions: this.loaderOptions, + mapTypeId: this.mapTypeId }) }, autoCompleteOptions () { From 0c527d5a804eccd2d860f9c58569a299600a36a5 Mon Sep 17 00:00:00 2001 From: jayparmar271 Date: Sat, 30 Sep 2023 20:18:33 +0530 Subject: [PATCH 2/2] feat: Provide to set maptypeid --- src/components/GoogleMap.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/GoogleMap.vue b/src/components/GoogleMap.vue index c212534..9d3577f 100644 --- a/src/components/GoogleMap.vue +++ b/src/components/GoogleMap.vue @@ -46,7 +46,8 @@ export default { mapStyleOption: { type: Object, default: () => ({}) }, loaderOptions: { type: Object, default: () => ({}) }, drawingManagerOptions: { type: Object, default: () => ({}) }, - drawingControlOptions: { type: Object, default: () => ({}) } + drawingControlOptions: { type: Object, default: () => ({}) }, + mapTypeId: { type: String, default: 'terrain' } }, data () { return { @@ -70,7 +71,8 @@ export default { libraries: ['places', 'drawing'], language: this.language, location: this.location, - loaderOptions: this.loaderOptions + loaderOptions: this.loaderOptions, + mapTypeId: this.mapTypeId }) }, autoCompleteOptions () {