Modify

Opened 9 years ago

Closed 9 years ago

#6035 closed enhancement (fixed)

[PATCH] Add extra polygon shapes to MapCSS painter

Reported by: jcollie Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

This is a small patch that adds several regular polygons to the MapCSS painter. Shapes include triangle, pentagon, hexagon, heptagon, octagon, nonagon, and decagon.

Attachments (4)

0001-Add-some-more-symbol-shapes-to-MapCSS-styles.patch (6.5 KB) - added by jcollie 9 years ago.
test.png (8.1 KB) - added by jcollie 9 years ago.
test.osm (2.5 KB) - added by jcollie 9 years ago.
test.mapcss (1.4 KB) - added by jcollie 9 years ago.

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by jcollie

Attachment: test.png added

Changed 9 years ago by jcollie

Attachment: test.osm added

Changed 9 years ago by jcollie

Attachment: test.mapcss added

comment:1 Changed 9 years ago by bastiK

If you have the ambition, try to avoid sin and cos for performance reasons (use cached values and/or rotation matrix). This optimization will only be noticeable when there are a lot of nonagons and decagons on screen, so take it as a suggestion and not as a demand.

Another idea:

symbol-shape: triangle;
symbol-shape-triangle-tip: west/north/east/south;

(Patch will probably not be applied before next release.)

comment:2 Changed 9 years ago by bastiK

Summary: Add extra polygon shapes to MapCSS painter[PATCH] Add extra polygon shapes to MapCSS painter

another one:

symbol-shaper: diamond;

(Square with tip at the top.)

comment:3 Changed 9 years ago by bastiK

Resolution: fixed
Status: newclosed

In [3968/josm]:

applied #6035 (patch by jcollie) - Add extra polygon shapes to MapCSS painter

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.