FAPS_2018
(Smart Office)
June 21, 2018, 8:47am
1
Hello together,
I want to integrate Mapview in my Sitemap and use the latest OH Version 2.3.
For this i use the Demo-Item:
Location DemoLocation “Brandenburg Gate Berlin”
and following in my sitemap:
Frame label=“Map/Location” {
Mapview item=DemoLocation icon=movecontrol height=10
}
Unfortunately no image is displayed in my sitemap.
Should i install something else or do I need a HTML-File?
1 Like
hr3
(Harry)
June 21, 2018, 9:28am
2
This works
Hi, I tried to put the following parameters in OH, but from android smartphones I do not see the map but only the black screen
Thanks for help
------------------- RULES-------------------
rule "Initialize Location"
when
System started
then
DemoLocation.postUpdate(new PointType(“45.3097228,9.50371599999994”))
end
-------------------SITEMAP-------------------
Frame label=“Map/Location” {
Mapview item=DemoLocation height=10
}
------------------- ITEMS-------------------
Location DemoL…
Please post your item and Rule please.
What OS and java-version and browser do you use?
FAPS_2018
(Smart Office)
June 21, 2018, 9:39am
3
---------------RULES----------------
rule “MapMyLocation”
when
System started
then
var PointType home = new PointType(“49.46044,11.02997”)
DemoLocation.postUpdate(home)
end
----------------SITEMAP------------
Frame label=“Location” {
Mapview item=DemoLocation icon=movecontrol height=10
}
------------------ITEMS---------------------
Location DemoLocation “Nürnberg”
I use Windows 10, java Version 1.8.0_152 and Chrome
1 Like
FAPS_2018
(Smart Office)
June 21, 2018, 9:41am
4
I used your code and now it works! Thank you very much!