FIX: Google maps setZoom bug
This commit is contained in:
parent
855261047f
commit
ddebeab853
|
@ -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],
|
||||||
|
|
Loading…
Reference in New Issue