waar19 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Make OpenStreetMapView extends ViewGroup #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I add a change in order to make OpenStreetMapView extends the ViewGroup  class 
rather than View class. It allows you to add a view positioned relative to a 
GeoPoint.

All redraw stuff and events are passed to the view so as the view is clickable 
as all its contents and can be redraw when state change.

As I don't have a multitouch android device I couldn't test some parts of the 
code. Mostly, the touch events managed by the dispatchTouchEvent method, and 
the dispatchDraw method especially the lines from 878 to 883 in the new class.

I attach my OpenStreetMapView class and a sample project that explains a little 
how to use it.

Hope this could help your project.

Original issue reported on code.google.com by julien.d...@gmail.com on 6 Sep 2010 at 10:19

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by neilboyd on 11 Oct 2010 at 5:37

GoogleCodeExporter commented 9 years ago

Original comment by neilboyd on 28 Jan 2011 at 6:06