Custom Widget: Map

Tags: #<Tag:0x00007fe7336e6410> #<Tag:0x00007fe7336e62f8>

That’s great. Thanks for sharing.
I will keep this in mind for my next extension :slight_smile:

Great widget, that’s what I’m looking for. How could I change the pin label?

The one that opens when you click on a pin? It’s the item’s label, so by changing the label you change the pin label too.

I would like to have some help.

I have a panel with a map with 4 locations, tracking my family (4 iphones), zoom level 12, with centre coordinates. The widget displays them nicely.

On the same panel I want to display 4 extra maps for each of the 4 separate locations, all with zoom level 16, all without centre coordinates. But these 4 extramaps do not render well. The first 1 is showing only the world map iwth the marker on the correct place (zoomlevel 1?), the next 2 ones not showning any marker on the world map (zoomlevel 1?) the fourth one is showing the correct zoom level but the wrong location and no marker. (It looks like it is using the centre coordinates from the large map)

It works fine in the paperUI. Using OH 2.5.0 on Synology (package).

@ysc Does Anyone know what the problem is?

I installed 4 extra instances of the map-widget: map2, map3, map4, map5, (via export-import of widget-management section) in an effort to avoid that they influence each other. Now the only thing that is not working is the correct zoom-level for the first three extra maps. The last one is correct now. When I delete the fourth one, the third one will be correct.

Revisiting this code, probably the main problem might be that the external JavaScript, instead of a controller, should have been a directive with an isolated scope. It’s fairly easy to change, PRs accepted :wink:

Thx for your reply @ysc. Eventhough it would be fairly easy to change it, I had a look at it but I must confess I’m not able of coding this myself, hence “challenge not accepted” :cold_sweat:

Hi @ysc

I am using your map widget and really love it.

For my tablet, I would like to use the same code to embed a frame into my svg floorplan
See also here:

I made some progress, but just would like to use the html code from the widget in the separate iframe:

I guess, it’s pretty simple, but I am not experienced in html…
Any suggestion would be greatly appreciated.

Thanks for sharing.
I would like to hide specific location pins on request be updating the position to NULL.
Nothing of these works:

any suggestion?


I would like to use the option of displaying 6 different petrol stations on the map. However, I have difficulties with the configuration. I already have an API key.
Who can give me a complete example configuration so that it looks like the image.jpg from Yannick Schaus Maintainer?
I work with Visual Studio Code on Linux and openhab 2.57 is on ewinem Raspi 3+

Many thanks.