On Wed, Jun 06, 2007 at 11:35:17PM -0400, Stephen Woodbridge wrote: > I find the pointRadius to be a little counter intuitive for seting the > the image width, but I live with that.
I agree, but that's why I wanted confirmation :) > graphicWidth/graphicHeight or > imageWidth/imageHeight could be an option. I kind of liked 'image' until I realized it could actually be an svg file, at which point graphicWidth/graphicHeight seemed to make more sense. > If one is set then the other > is computed based on the apsect ratio, if both are set then the image is > stretched to fit. I'm not sure that this is possible, but it does seem like the best possibility. Andreas, can you comment on the technical feasability of this? I assume like an <img /> tag that the graphic will scale to fit if it's marked with a size in one direction. > Or you could add an additional attribute like > keepAspectRatio: true/false I don't like this is we can avoid it. > What paradigms have you used in the code that is similar to this? OpenLayers.Icon(String, OpenLayers.Size) In this case, we can't just let the image 'stretch to fit', so keeping the aspect ratio is the responsibility of the user. (This is a technical limitation.) so, the same usages don't really apply. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
