mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Correctly check for enabled wms to determine zoom
Without this defensive check, a JS console error is thrown whenever wms is not configured for a map visualization.
This commit is contained in:
parent
6494caa789
commit
c74041cadb
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ export default function MapFactory(Private, tilemap) {
|
|||
TileMapMap.prototype._createMap = function (mapOptions) {
|
||||
if (this.map) this.destroy();
|
||||
|
||||
if (this._attr.wms.enabled) {
|
||||
if (this._attr.wms && this._attr.wms.enabled) {
|
||||
_.assign(mapOptions, {
|
||||
minZoom: 1,
|
||||
maxZoom: 18
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue