[android-developers] Re: MapView Draggable Objects

2009-06-05 Thread Patrick

You can use an ItemizedOverlay to add to the maps overlay collection.
Then handle the onTouchEvent and onTap which have MotionEvent. By
handling these events you can see which object in the overlay has
focus or has been tapped and implement your own moving of the overlay
objects (drawables with geopoints). Using the Projection object of the
map you can convert from xy touch coordinates into geopoints to set
your overlayitem. I don't know if this is the best way to handle it
but it worked for me.
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-05 Thread Wayne Wenthin
I haven't been able to drag but I have been able to use these methods to
pick the marker and then remove and re-insert into the ItemizedOverlay.   If
anyone does have code for dragging please post.  I would rather do it that
way then the dumb work around I have now.  Plus it looks much cooler!

On Fri, Jun 5, 2009 at 8:16 AM, Patrick patrick.ka...@gmail.com wrote:


 You can use an ItemizedOverlay to add to the maps overlay collection.
 Then handle the onTouchEvent and onTap which have MotionEvent. By
 handling these events you can see which object in the overlay has
 focus or has been tapped and implement your own moving of the overlay
 objects (drawables with geopoints). Using the Projection object of the
 map you can convert from xy touch coordinates into geopoints to set
 your overlayitem. I don't know if this is the best way to handle it
 but it worked for me.
 


--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Zoltán Kisgyörgy
yes, for more information look at the official mapview tutorial:
http://developer.android.com/guide/tutorials/views/hello-mapview.html

http://developer.android.com/guide/tutorials/views/hello-mapview.htmlat
the end there are also about markers

2009/6/4 Alexander Davis alexdavisspec...@gmail.com


 Hey
 Is it easy/possible to drag marker objects in a MapView?

 Alex
 



-- 
K. Zoltán

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Alexander Davis

Yup there is info about markers, but what about making the markers
draggable? I don't see anything...

On Jun 4, 11:28 am, Zoltán Kisgyörgy zoltan.kisgyo...@gmail.com
wrote:
 yes, for more information look at the official mapview 
 tutorial:http://developer.android.com/guide/tutorials/views/hello-mapview.html

 http://developer.android.com/guide/tutorials/views/hello-mapview.htmlat
 the end there are also about markers

 2009/6/4 Alexander Davis alexdavisspec...@gmail.com



  Hey
  Is it easy/possible to drag marker objects in a MapView?

  Alex

 --
 K. Zoltán
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Zoltán Kisgyörgy
Found something that might help you:
view-source:http://code.google.com/apis/maps/documentation/examples/marker-drag.html
view-source:http://code.google.com/apis/maps/documentation/examples/marker-drag.htmllook
at the source of the site, its javascript but maybe the one in Android is
also the same:
more can be found here, I think:)
http://code.google.com/apis/maps/documentation/reference.html

I am also in a search how to diplay a custom cloud box over the marker, and
how to implement a click listener

2009/6/4 Alexander Davis alexdavisspec...@gmail.com


 Yup there is info about markers, but what about making the markers
 draggable? I don't see anything...

 On Jun 4, 11:28 am, Zoltán Kisgyörgy zoltan.kisgyo...@gmail.com
 wrote:
  yes, for more information look at the official mapview tutorial:
 http://developer.android.com/guide/tutorials/views/hello-mapview.html
 
  http://developer.android.com/guide/tutorials/views/hello-mapview.html
 at
  the end there are also about markers
 
  2009/6/4 Alexander Davis alexdavisspec...@gmail.com
 
 
 
   Hey
   Is it easy/possible to drag marker objects in a MapView?
 
   Alex
 
  --
  K. Zoltán
 



-- 
K. Zoltán

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Brian Smith

It looks like it, yes.  It also looks like a custom overlay that the
developer wrote in order to make that work.  Looking at the docs for
the maps library, I don't see any overlay classes for doing that sort
of thing, but you can always extend the base Overlay class and roll
your own.  That class gives you methods that you can override for
drawing and handling touch events, and you can get a Projection object
from the map view in your version of draw() in order to translate lat/
lon to screen coords for the current view.

On Jun 4, 4:55 pm, Alexander Davis alexdavisspec...@gmail.com wrote:
 Yup, thats the maps API, not what im looking for. What i'm talking
 about is successfully implemented in Locale; I know its possible.
 Thats a mapview, right? Must be, right?

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Alexander Davis

Yeah, thats what I have gleaned from the other group posts. Thanks for
the info, I appreciate it. I'll look into it more and maybe make my
own package to make this easier.

Alex

On Jun 4, 2:54 pm, Brian Smith avalo...@caerleon.us wrote:
 It looks like it, yes.  It also looks like a custom overlay that the
 developer wrote in order to make that work.  Looking at the docs for
 the maps library, I don't see any overlay classes for doing that sort
 of thing, but you can always extend the base Overlay class and roll
 your own.  That class gives you methods that you can override for
 drawing and handling touch events, and you can get a Projection object
 from the map view in your version of draw() in order to translate lat/
 lon to screen coords for the current view.

 On Jun 4, 4:55 pm, Alexander Davis alexdavisspec...@gmail.com wrote:

  Yup, thats the maps API, not what im looking for. What i'm talking
  about is successfully implemented in Locale; I know its possible.
  Thats a mapview, right? Must be, right?
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Alexander Davis

I should add that this is in no way closed. If you have a workaround,
please poast!

On Jun 4, 3:22 pm, Alexander Davis alexdavisspec...@gmail.com wrote:
 Yeah, thats what I have gleaned from the other group posts. Thanks for
 the info, I appreciate it. I'll look into it more and maybe make my
 own package to make this easier.

 Alex

 On Jun 4, 2:54 pm, Brian Smith avalo...@caerleon.us wrote:

  It looks like it, yes.  It also looks like a custom overlay that the
  developer wrote in order to make that work.  Looking at the docs for
  the maps library, I don't see any overlay classes for doing that sort
  of thing, but you can always extend the base Overlay class and roll
  your own.  That class gives you methods that you can override for
  drawing and handling touch events, and you can get a Projection object
  from the map view in your version of draw() in order to translate lat/
  lon to screen coords for the current view.

  On Jun 4, 4:55 pm, Alexander Davis alexdavisspec...@gmail.com wrote:

   Yup, thats the maps API, not what im looking for. What i'm talking
   about is successfully implemented in Locale; I know its possible.
   Thats a mapview, right? Must be, right?
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---