[Mapcss] icon-width, icon-height or icon-scale?

Sebastian Spaeth Sebastian at SSpaeth.de
Fri Jul 9 05:43:44 BST 2010


On 2010-07-08, Komяpa wrote:
> > Currently 'icon-image' is under the 'Point/icon properties' which looks
> > like it can only apply to a node. My icon-image can also apply to ways
> > (areas) and is drawn at their center. Is that the intended behavior?
> OK for me. Maybe it should use the same algorythm that is used for
> finding text place?

Yep, that is what I had in mind (although it might be left to the
renderer to decide where to put an icon in an area)

> > Currently, there is no way to scale an icon. Looking at CSS, it would
> > use height and width and apply it to the image. As we use icon-image to
> > specify the icon, what about using:
> > icon-width 19;
> > icon-height: 19;
> Ok. Worth adding to wiki.

Done
 
> How about this behaviour:
>  - if only icon-width or icon-heght is given, resize the other one to
> have non-stretched icon;
>  - if both are specified, rescale the image non-proportionally;
>  - if none is specified, don't resize image;
>  - icon-width/height value could have % char in the end, that means
> that measured size of image should be multiplied by that number of
> percents.

This is exactly what I had in mind, so I added that to the wiki page
now.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20100709/4fdbbcb5/attachment.pgp>


More information about the Mapcss mailing list