Modify

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#10216 closed enhancement (fixed)

Offsetting node icon in MapCSS

Reported by: lists@… 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 Don-vip, 10 years ago

Component: CoreCore mappaint
Keywords: mapcss offset added

comment:2 by Don-vip, 10 years ago

Type: defectenhancement

comment:3 by Aun Johnsen <lists@…>, 10 years ago

Cc: lists@… added

comment:4 by bastiK, 9 years ago

Resolution: fixed
Status: newclosed

In 8085/josm:

fixed #10216 Offsetting node icon in MapCSS

also: rework of rendering of disabled layers and objects

comment:5 by Klumbumbus, 9 years ago

Great!

comment:6 by Aun Johnsen <lists@…>, 9 years ago

Many thanks for this! Just waiting for this to be implemented in stable now :D

comment:7 by Don-vip, 9 years ago

Milestone: 15.02

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.