From 7d39590fa7afe3435ec1678b32697d78c4caa2f6 Mon Sep 17 00:00:00 2001 From: JayParmar271 Date: Sat, 30 Sep 2023 20:33:53 +0530 Subject: [PATCH] Allow to set maptypeid --- helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper.js b/helper.js index 8f05051..0951549 100644 --- a/helper.js +++ b/helper.js @@ -35,6 +35,7 @@ export default class GoogleMaps { this.version = opts.version || 'quarterly' this.libraries = opts.libraries || ['places'] this.zoom = opts.zoom || 11 + this.mapTypeId = opts.mapTypeId // this.google = null @@ -67,6 +68,7 @@ export default class GoogleMaps { center: this.location, mapTypeControl: false, streetViewControl: false, + mapTypeId: this.mapTypeId, ...(this.options.mapOptions || {}) } }