Can anybody help me please:(
16 Ocak 2012 17:20 tarihinde Duygu Kahraman <[email protected]>yazdı:
> I am working with Google Map. My problem is when i touch the screen
> mapview is not adding pin exactly right place.Adding nearly
> Ycoordinate-50.
>
> What is wrong with code?
>
> Can anybody help me?
>
> Code:
>
> public void AddPoint(Drawable drawable, MapView mapView, MotionEvent
> motionEvent) {
>
> p = mapView.getProjection().fromPixels((int) (motionEvent.getX()),
> (int) (motionEvent.getY()));
> final MapController mc = mapView.getController();
> mc.setZoom(16);
> CustomItemizedOverlay<CustomOverlayItem> itemizedOverlay = new
> CustomItemizedOverlay<CustomOverlayItem>(drawable, mapView);
>
> itemizedOverlay.addOverlay(new CustomOverlayItem(p,"","",""));
> mapView.getOverlays().add(itemizedOverlay);
> mc.animateTo(p);
> mapView.invalidate();
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
---
Duygu Kahraman
http://tr.linkedin.com/in/duygukahramann
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en