From 603cf7ba0f2edcaeb87726050449312d3e795547 Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Tue, 18 Dec 2018 21:29:12 +1100 Subject: [PATCH] two new geo location map demo cards (#2349) --- gallery/src/demos/demo-hui-map-card.ts | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gallery/src/demos/demo-hui-map-card.ts b/gallery/src/demos/demo-hui-map-card.ts index a402d80024..da59ba6d00 100644 --- a/gallery/src/demos/demo-hui-map-card.ts +++ b/gallery/src/demos/demo-hui-map-card.ts @@ -29,6 +29,31 @@ const ENTITIES = [ friendly_name: "Home", icon: "mdi:home", }), + getEntity("zone", "bushfire", "zoning", { + latitude: -33.8611, + longitude: 151.203, + radius: 35000, + friendly_name: "Bushfire Zone", + icon: "mdi:home", + }), + getEntity("geo_location", "nelsons_creek", "15", { + source: "bushfire_demo", + latitude: -34.07792, + longitude: 151.03219, + friendly_name: "Nelsons Creek", + }), + getEntity("geo_location", "forest_rd_nowra_hill", "8", { + source: "bushfire_demo", + latitude: -33.69452, + longitude: 151.19577, + friendly_name: "Forest Rd, Nowra Hill", + }), + getEntity("geo_location", "stoney_ridge_rd_kremnos", "20", { + source: "bushfire_demo", + latitude: -33.66584, + longitude: 150.97209, + friendly_name: "Stoney Ridge Rd, Kremnos", + }), ]; const CONFIGS = [ @@ -116,6 +141,24 @@ const CONFIGS = [ - light.bed_light `, }, + { + heading: "Geo Location Entities", + config: ` +- type: map + geo_location_sources: + - bushfire_demo + `, + }, + { + heading: "Geo Location Entities with Home Zone", + config: ` +- type: map + geo_location_sources: + - bushfire_demo + entities: + - zone.bushfire + `, + }, ]; class DemoMap extends PolymerElement {