Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 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 Changed 5 years ago by Don-vip

Component: CoreCore mappaint
Keywords: mapcss offset added

comment:2 Changed 5 years ago by Don-vip

Type: defectenhancement

comment:3 Changed 5 years ago by Aun Johnsen <lists@…>

Cc: lists@… added

comment:4 Changed 5 years ago by bastiK

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 Changed 5 years ago by Klumbumbus

Great!

comment:6 Changed 5 years ago by Aun Johnsen <lists@…>

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

comment:7 Changed 5 years ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.