Chris Chiappone wrote:
> Marcel,
>
> Thanks for that seems to work as you described.  The only thing that
> doesn't seem right is the way the map draws the markers shadow.  Any
> idea on how to correct that.
>
> Thanks.
>
> On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 <[EMAIL PROTECTED]> wrote:
>   
>> Hi everyone,
>>
>> I finally got this thing working. Just set the bounds of the marker to
>> be drawn and that's it!
>>
>> Sample:
>> Drawable defaultMarker =
>> getResources().getDrawable(R.drawable.map_marker_red);
>> defaultMarker.setBounds(0, 0, defaultMarker.getIntrinsicWidth(),
>> defaultMarker.getIntrinsicHeight());
>> mMapView.getOverlays().add(new DemoOverlay(defaultMarker)); //
>> DemoOverlay is of course an ItemizedOverlay
>>
>> I made a small demo showing one OverlayItem and how to handle tap-
>> events. If someone is interested:
>> http://www.marcelp.info/2008/09/01/android-itemizedoverlay-demo/
>>
>> Regards, Marcel
>>
>>     
>
>
>
>   
try changing

private GeoPoint mRandomPoint = new GeoPoint(5309691, 8851933);
to some thing like this
currentPoint = new GeoPoint((int) (-43.2973 * 1000000), (int) (172.5929 
* 1000000));
the map is draw much faster

peter



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to