Comments (4)
Implemented in v0.9.0
from ha-map-card.
@ildar170975 this will make you happy (fixes the alignment problems)
from ha-map-card.
Thanks a lot!!!
These days I am very far from a civilian PC, will check it later )))
from ha-map-card.
@nathan-gs
Just tested the new css
option.
It works fine - but only for attributes which are NOT overridden on lower levels.
Consider this code:
type: custom:map-card
entities:
- entity: person.samsung_p6800
css: 'border-radius: 0;'
The border-radius
property is customized on a map-card-entity-marker
level.
But on a lower .marker
level this property is hard-coded as 50%
.
So, the css
property is GREAT for some properties - and cannot work for some other properties.
Look at this:
For example, by using css
option we cannot apply a border: 1px solid red
- but can define a variable --ha-marker-color
and achieve the same goal. But border-radius
is defined as "50%" w/o any CSS variable - so we cannot customize this property.
Probably not a big deal, just for clarification...
Update: proposed a PR to add a CSS variable for border-radius.
from ha-map-card.
Related Issues (20)
- Bug: History not visible HOT 13
- [FR] Support new "--ha-marker-border-radius" variable
- Longer term history options HOT 2
- Allow map to default to showing all Markers if no focus_entity or x/y is set. HOT 2
- Automatically show the map with the full history in view HOT 1
- Error found in first run, check Console HOT 8
- geo_location_sources HOT 6
- Cannot zoom in like on a stock map card HOT 10
- [FR] Make height set automatically to get a square card
- Variable opacity based on time from history_end HOT 2
- “size” and “color” entity attributes do not affect icon display HOT 3
- Missing “recenter” button on map
- [FR] Show a circle around a marker
- TypeError: Cannot read properties of undefined (reading 'length') HOT 4
- Bug: long and unpredictable loading times HOT 5
- OpenWeather Weather Maps 2.0 HOT 7
- history_start sometimes interpreted as linked entity instead of as a date HOT 1
- [FR] Add an overriding "icon" option HOT 1
- AutoFit?
- History displays 2 paths
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-map-card.