I submitted a pull request to fix this in openlayers, but it hasn''t
been
applied yet:
https://github.com/mapstraction/mxn/pull/68
-dylan-
On Mon, Aug 29, 2011 at 1:43 PM, Leo germani <leogermani at gmail.com>
wrote:
> Hi all,
>
> When adding a marker to the map, I noticed a difference in the way you do
> it using Google Maps or Open Layers... I wanted to confirm with you if it
> isnt a bug.
>
> When we add the same marker using googlev3 api or openlayers, we can call
> the setIcon method to set a different icon for our marker.
>
> One of the parameters of this method is the anchor, which is an offset, in
> pixels, of the position that should be pointing to the place no the map.
>
> What I noticed is that, if I want to add exactly the same image as an
> marker in both providers, I have to multiply the anchor values with -1 in
> openlayers to have the same result as in googlev3.
>
> So, lets say we have an icon with dimensions: 24x24, and the anchor is
> exactly in the middle (12x12). In google it works fine, but in openlayers I
> have to pass -12x-12.
>
> Is that right? I think mapstraction should work with only one way of
> passing these values. If a openlayer need to receive it different,
> mapstraction should translate it...
>
> Is that right?
>
> Leo,,,
>
> --
> leogermani.com.br
>
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20110829/17abf861/attachment.htm>