On Fri, Nov 2, 2012 at 12:29 PM, Goncalo Oliveira <gonc...@minkan.net> wrote:
> Hi all,
>
> I'm trying to create a custom OverlayItem with the ability to rotate the
> marker drawable by N degrees. The thing is, MfA implementation does not
> match Google API. There's no getter for the marker drawable - getMarker( int
> stateBitset ) - and the MMarker is always null. Maybe I'm missing something,
> or maybe there's a better way of achieving this... any help would be much
> appreciated.
>
> Cheers
> --
> Gonçalo Oliveira

I'm not entirely sure how the marker stuff works, but this is what
I've done so far.

                        Drawable icon = GetCorrectProjectColor 
(data.ProjectMarkerColor);
                        item.SetMarker(BoundCenterBottom(icon));
                        _items.Add(item);

If you are using CustomOverlay : ItemizedOverlay then you can set a
default marker in the constructor.  Using the code above you can
override the marker.

Cheers,
Stephen
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to