Openhab 5.1, location card without map, how do I install map add-on?

I get an empty location card having the right coordinates, do I have to install a map add-on? How?

Thanks!

Georgo

1 Like

Your question is not very clear, some more details or actual example would help. However, if you are asking what I think you are asking then you have misunderstood the oh-location-card. That is not a component for displaying lat-long data on a map. That component is a specific part of the semantic model (it’s a generic version of the cards you see when you click on locations tab at the bottom of the home page if you have a semantic model configured).

Indeed there is not enough information to understand what you are trying to do. But there is no separate map add-on.

If you want to display a map with a point shown as a little flag, you need to use Map Pages | openHAB.

If you want to define a property to select a lat/lon coordinate from a map use

    - context: location
      description: Map location picker
      label: M-7 Location
      name: location
      required: false
      type: TEXT
      groupName: input

If you want to show a map with markers I think you need to define it as a page and then show that page in a card. See this post which shows the approach for a chart but should work for map pages too. [SOLVED] Main UI: Show/Call/Raise chart from Layout page - #2 by JustinG

1 Like

Thanks to both of you,

I get along having the map on a separate page.

Great and fast help!

Georg