[josm-dev] Multipolygon stuff finished
Frederik Ramm
frederik at remote.org
Fri Jan 2 00:11:42 GMT 2009
Hi,
Ulf Lamping wrote:
> Would you be interested in having a look at how to display them? My idea
> would be to display the corresponding street signs somehow, but I'm not
> 100% sure how to do it. You can find the corresponding street signs at
> http://wiki.openstreetmap.org/wiki/Relation:restriction and I could
> easily add them to the icon collection in SVG and other icon formats if
> that is of any help ...
The challenge here will probably be two-fold: First, finding the right
place to display the sign. (Different for left and right traffic btw.)
Second, rotate the icon which is something we don't currently do.
For performance, I guess it will be required to create the rotated icons
once and store them somehow, instead of rotating the icon whenever you
want to draw it. A similar situation might occur in determining the spot
where the icon should be displayed; it is probably unfeasible to do that
calculation for every redraw.
(We might also have to support different signs for different countries,
e.g. the "no left turn" is a white-on-blue straight on/right curved
arrow in Germany, but a black-on-white left curved arrow with red
strike-through in other countries...)
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the josm-dev
mailing list