FIX: Google maps setZoom bug

This commit is contained in:
Tony Air 2021-08-17 03:15:26 +02:00
parent 855261047f
commit ddebeab853
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ const GoogleMapsDriver = ((window) => {
const el = ui.el;
const config = ui.config;
const mapDiv = el.querySelector('.mapAPI-map');
const zoom = config['mapZoom'] && config['mapZoom'] !== '0' ? config['mapZoom'] : 10;
const zoom = config['mapZoom'] && config['mapZoom'] !== '0' ? parseInt(config['mapZoom']) : 10;
const center = config['center'] && config['center'] !== ',' ?
{
lat: config['center'][1],