Closed vermut closed 1 month ago
That has something to do with the used tile layer, which you can customize. Each tile layer has other limits.
Easiest is to use the carto map HA uses.
As you see I'm on the defaults for both. Or I should enable Carto somehow for ha-map?
For now maxZoom is 18 (as set by leaflet), unless you add a tilelayer with a higher maxZoom.
You can set the maxZoom of the tile layer using tile_layer_options
, however you are still constrained with the max zoom level of the particular tilelayer.
Is there a way to use default tilelayer from builtin HA map? Because it allows more zoom as you can see on a screenshot
This is how HA does it: https://github.com/home-assistant/frontend/blob/dev/src/common/dom/setup-leaflet-map.ts#L40
(as you can see, it uses maxZoom: 20 and a CARTOCDN map).
Is there a way to use default tilelayer from builtin HA map? Because it allows more zoom as you can see on a screenshot
Yes, it's possible, however using these require complying to the specific licenses, that's why using the standard openstreetmap option of leaflet is a safe default.
tile_layer_options:
maxZoom: 20
@vermut which lawnmower are you using?
OpenMower. Why? :)
Just curious :)
Even native HA map allows more zoom. Ideally I'd like to have even more, as I'm tracking lawn mower and what to know precisely where it is on my lawn.