Modify

Opened 14 years ago

Closed 14 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 14 years ago.
test.png (8.1 KB ) - added by jcollie 14 years ago.
test.osm (2.5 KB ) - added by jcollie 14 years ago.
test.mapcss (1.4 KB ) - added by jcollie 14 years ago.

Download all attachments as: .zip

Change History (7)

by jcollie, 14 years ago

Attachment: test.png added

by jcollie, 14 years ago

Attachment: test.osm added

by jcollie, 14 years ago

Attachment: test.mapcss added

comment:1 by bastiK, 14 years ago

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 by bastiK, 14 years ago

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 by bastiK, 14 years ago

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. 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.