[Mapcss] icon-width, icon-height or icon-scale?
Komяpa
me at komzpa.net
Thu Jul 8 10:00:26 BST 2010
> 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?
> 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.
> (Alternatively, we could make it understand 70% too)
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.
> I haven't added anything to the wiki page yet, as I wanted to wait for the
> outcome of this discussion.
--
Komяpa aka Darafei Praliaskouski
xmpp:me at komzpa.net mailto:me at komzpa.net
More information about the Mapcss
mailing list