forked from home-assistant/core
Update frontend
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
"""DO NOT MODIFY. Auto-generated by script/fingerprint_frontend."""
|
"""DO NOT MODIFY. Auto-generated by script/fingerprint_frontend."""
|
||||||
|
|
||||||
FINGERPRINTS = {
|
FINGERPRINTS = {
|
||||||
"core.js": "90c16d2f2c5d52203e2fd5fa2b1ae19c",
|
"core.js": "769f3fdd4e04b34bd66c7415743cf7b5",
|
||||||
"frontend.html": "c8e670c6c9f7c0ea3b971b92ba9013db",
|
"frontend.html": "d48d9a13f7d677e59b1d22c6db051207",
|
||||||
"mdi.html": "5bb2f1717206bad0d187c2633062c575",
|
"mdi.html": "5bb2f1717206bad0d187c2633062c575",
|
||||||
"micromarkdown-js.html": "93b5ec4016f0bba585521cf4d18dec1a",
|
"micromarkdown-js.html": "93b5ec4016f0bba585521cf4d18dec1a",
|
||||||
"panels/ha-panel-dev-event.html": "f19840b9a6a46f57cb064b384e1353f5",
|
"panels/ha-panel-dev-event.html": "f19840b9a6a46f57cb064b384e1353f5",
|
||||||
@@ -10,9 +10,9 @@ FINGERPRINTS = {
|
|||||||
"panels/ha-panel-dev-service.html": "1d223225c1c75083738033895ea3e4b5",
|
"panels/ha-panel-dev-service.html": "1d223225c1c75083738033895ea3e4b5",
|
||||||
"panels/ha-panel-dev-state.html": "8257d99a38358a150eafdb23fa6727e0",
|
"panels/ha-panel-dev-state.html": "8257d99a38358a150eafdb23fa6727e0",
|
||||||
"panels/ha-panel-dev-template.html": "cbb251acabd5e7431058ed507b70522b",
|
"panels/ha-panel-dev-template.html": "cbb251acabd5e7431058ed507b70522b",
|
||||||
"panels/ha-panel-history.html": "7baeb4bd7d9ce0def4f95eab6f10812e",
|
"panels/ha-panel-history.html": "9f2c72574fb6135beb1b381a4b8b7703",
|
||||||
"panels/ha-panel-iframe.html": "d920f0aa3c903680f2f8795e2255daab",
|
"panels/ha-panel-iframe.html": "d920f0aa3c903680f2f8795e2255daab",
|
||||||
"panels/ha-panel-logbook.html": "93de4cee3a2352a6813b5c218421d534",
|
"panels/ha-panel-logbook.html": "313f2ac57aaa5ad55933c9bbf8d8a1e5",
|
||||||
"panels/ha-panel-map.html": "3b0ca63286cbe80f27bd36dbc2434e89",
|
"panels/ha-panel-map.html": "13f120066c0b5faa2ce1db2c3f3cc486",
|
||||||
"websocket_test.html": "575de64b431fe11c3785bf96d7813450"
|
"websocket_test.html": "575de64b431fe11c3785bf96d7813450"
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -75,8 +75,15 @@ Polymer({
|
|||||||
},
|
},
|
||||||
|
|
||||||
fitMap: function () {
|
fitMap: function () {
|
||||||
var bounds = new window.L.latLngBounds(
|
var bounds;
|
||||||
this._mapItems.map(function (item) { return item.getLatLng(); }));
|
|
||||||
|
if (this._mapItems.length === 0) {
|
||||||
|
bounds = new window.L.latLngBounds(
|
||||||
|
[window.L.latLng(this.locationGPS.latitude, this.locationGPS.longitude)]);
|
||||||
|
} else {
|
||||||
|
bounds = new window.L.latLngBounds(
|
||||||
|
this._mapItems.map(function (item) { return item.getLatLng(); }));
|
||||||
|
}
|
||||||
|
|
||||||
this._map.fitBounds(bounds.pad(0.5));
|
this._map.fitBounds(bounds.pad(0.5));
|
||||||
},
|
},
|
||||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user