#10216 closed enhancement (fixed)
Offsetting node icon in MapCSS
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | 15.02 |
Component: | Core mappaint | Version: | |
Keywords: | mapcss offset | Cc: | lists@… |
Description
It should be possible to offset a icon position on a node, using MapCSS
Suggested syntax:
node[amenity=restaurant] {
icon-image: "presets/restaurant.png"
icon-image-offset-x: 5;
icon-image-offset-y: 5;
}
This will offset the image 5 pixels on each axis, so that the node is in fact in lower left corner.
I need this in creating a MapCSS set where the same node can generate multiple icons, a rule set will determine how each of the symbols are offset.
Attachments (0)
Change History (7)
comment:1 by , 10 years ago
Component: | Core → Core mappaint |
---|---|
Keywords: | mapcss offset added |
comment:2 by , 10 years ago
Type: | defect → enhancement |
---|
comment:3 by , 10 years ago
Cc: | added |
---|
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 by , 10 years ago
Many thanks for this! Just waiting for this to be implemented in stable now :D
comment:7 by , 10 years ago
Milestone: | → 15.02 |
---|
In 8085/josm: