B4A Library OSMDroid 3.52

androidvh

Member
Licensed User
Hallo to everybody,

I have a simple question:

I draw a circle with this code. The circle is drawn but if I scroll
outside the window the circle destroy.
perhaps there is a solution...

Sub ZeichneKreis(rechts As Double, hoch As Double, radius As Int)

Dim m As GeoPoint
Dim Kreispunkt As GeoPoint

m.Initialize(rechts, hoch)
Zeichnen.ClearPath
Zeichnen.Color=Colors.blue
Zeichnen.PathStyle=Zeichnen.FILL
Zeichnen.Alpha=32

For i = 0 To 359
Kreispunkt = m.GetDestinationPoint(radius,i)
Zeichnen.AddPoint3(Kreispunkt)
Next

merkzoom = MapView1.Zoom + 1
MapView1.FitMapToBoundingBox(Zeichnen.GetBoundingBox)


End Sub

kind regards

Volker
 

warwound

Expert
Licensed User
Can you upload a working project that shows the circle disappearing when you pan the map?

The code you posted 'looks' ok, but to properly debug the problem i'd need to see a working project.

Martin.
 

androidvh

Member
Licensed User
Circle

Hallo Martin,

thank you for your reply.
In the attachement circle.zip you can see the problem.
Scroll to left, right or buttom the circle is crashed.
To top it is ok.

My hardware is Samsung Galaxy SII. The problem
still exists on other phones.

kind regards Volker
 

Attachments

Top