[OpenLayers-Users] All marker offsets are wrong when using features

Zac Spitzer zac.spitzer at gmail.com
Mon Jan 12 06:37:18 EST 2009


i've hit this one as well, playing around with styles after reading through
some of the api code,

i did this which seem to help offset the bottom of the marker directly
on the point

var style = new OpenLayers.Style({
 externalGraphic: "images/openlayers/AQUA.png",
			pointRadius: 9,
			graphicYOffset : -15
});

z


On Mon, Jan 12, 2009 at 10:30 PM, Deluded <rich at deluded.co.uk> wrote:
>
>
>
>
>>You an't change the offset like this. (Or if you can, I don't know how.)
>>
>>Instead of using feature.createMarker, just create your icon and marker
>>manually.
>>
>>-- Chris
>
> Does anyone out there has a working example on how to do this? Ideally I
> want the ability to set the icon, icon offset, and html text that will go in
> a framed bubble popup with close box.
>
> I've been trying all weekend to get this working, and the closest I could
> get was by using features.
>
>
>
> --
> View this message in context: http://n2.nabble.com/All-marker-offsets-are-wrong-when-using-features-tp2143419p2145220.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168



More information about the Users mailing list