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
pgpGf7TaDl5Ha.pgp
Description: PGP signature
_______________________________________________ Mapcss mailing list [email protected] http://lists.openstreetmap.org/listinfo/mapcss
