Map view uses sensor and event objects

This commit is contained in:
Ziver Koc 2016-06-29 17:14:05 +02:00
parent 87badd45bc
commit 866e776b19
3 changed files with 38 additions and 4 deletions

View file

@ -7,11 +7,14 @@
<rect width="100%" height="100%" style="fill-opacity:0;stroke-width:5;stroke:rgb(0,0,0)" />
<!-- Sensor devices-->
<image class="draggable" x="0" y="0" width="46" height="46" xlink:href="/img/temperature.png" />
{{#sensors}}
<image id="sensor{{.getId()}}" class="draggable sensor" x="0" y="0" width="46" height="46" xlink:href="/img/temperature.png" />
{{/sensors}}
<!-- Event devices -->
<image class="draggable" x="0" y="0" width="46" height="46" xlink:href="/img/lightbulb_01.svg" />
<image class="draggable" x="0" y="0" width="46" height="46" xlink:href="/img/lightbulb_02.svg" />
{{#events}}
<image id="event{{.getId()}}" class="draggable event" x="0" y="0" width="46" height="46" xlink:href="/img/lightbulb.svg" />
{{/events}}
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before After
Before After