[OpenLayers-Users] icons in Layer.Text

Erik Uzureau erik.uzureau at metacarta.com
Mon Oct 8 14:35:31 EDT 2007


Hi Tara,

What you want to do is to specyify iconOffset and iconSize columns in
your text file.

Erik


On 10/8/07, Tara Athan <tara_athan at alt2is.com> wrote:
> I am trying to add nondefault icons for markers using Layer.Text
> (because I plan to have a large, dynamic set of markers)
> I want the marker to be smaller than the default marker.
> Passing a rescaled version of a larger marker caused it to be enlarged
> and stretched and look really bad.
> I sort of got it working by placing a marker into a larger canvas, but
> the tip of the marker doesn't seem to be in quite the right place.
> Is there some documentation on this, or another way to handle it?
> Also, is there a way to specifiy the image file for all the markers in a
> text file without repeating the path in every line?
>
> Sample script at
> alt2is.com/pages_html/openlayers/marker.html
>
> Thanks, Tara
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list