FIX: Google maps setZoom bug

This commit is contained in:
Tony Air 2021-08-17 03:15:26 +02:00
parent 855261047f
commit ddebeab853

View File

@ -35,7 +35,7 @@ const GoogleMapsDriver = ((window) => {
const el = ui.el; const el = ui.el;
const config = ui.config; const config = ui.config;
const mapDiv = el.querySelector('.mapAPI-map'); 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'] !== ',' ? const center = config['center'] && config['center'] !== ',' ?
{ {
lat: config['center'][1], lat: config['center'][1],