- Adding min-zoom to the map object (we already have max-zoom)

- Adding the details to the readme file
This commit is contained in:
Andrew Slack
2023-03-08 17:29:31 +01:00
parent d048a599bf
commit 374ffb30c5
3 changed files with 25 additions and 0 deletions

View File

@@ -36,6 +36,12 @@ const props = {
type: Number,
noBind: true,
},
minZoom: {
required: false,
twoWay: true,
type: Number,
noBind: true,
},
heading: {
type: Number,
twoWay: true,

View File

@@ -17,8 +17,10 @@ import buildComponent from './components/build-component'
import MountableMixin from './utils/mountableMixin'
import { Env } from './utils/env'
let GMapApi = null
let googleMapsObject = null
export {
googleMapsObject,
loadGMapApi,
Marker,
Polyline,
@@ -82,6 +84,7 @@ function makeGMapApiPromiseLazy(options) {
// Things to do once the API is loaded
function onApiLoaded() {
GMapApi.gmapApi = {}
googleMapsObject = window.google
return window.google
}