diff --git a/package.json b/package.json index 38bacda7fe..e8c088adb0 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "watch_ru_core": "rollup --config rollup/core.js --watch --sourcemap inline", "watch_ru_demo": "rollup --config rollup/demo.js --watch --sourcemap inline", "lint_js": "eslint src panels --ext html", - "lint_html": "ls -1 src/**/*.html panels/**/*.html | xargs polymer lint --input", + "lint_html": "ls -1 src/home-assistant.html panels/**/ha-panel-*.html | xargs polymer lint --input", "test": "npm run lint_js && npm run lint_html" }, "author": "Paulus Schoutsen (http://paulusschoutsen.nl)", diff --git a/panels/map/ha-panel-map.html b/panels/map/ha-panel-map.html index e195bcb9ec..6bcfbd4c55 100644 --- a/panels/map/ha-panel-map.html +++ b/panels/map/ha-panel-map.html @@ -75,14 +75,14 @@ Polymer({ var bounds; if (this._mapItems.length === 0) { - this._map.setView(new L.LatLng(this.hass.config.core.latitude, - this.hass.config.core.longitude), 14); + this._map.setView( + new window.L.LatLng(this.hass.config.core.latitude, this.hass.config.core.longitude), + 14); } else { bounds = new window.L.latLngBounds( this._mapItems.map(function (item) { return item.getLatLng(); })); this._map.fitBounds(bounds.pad(0.5)); } - }, drawEntities: function (hass) {