sohambannerjee8 / android-maps-extensions

Automatically exported from code.google.com/p/android-maps-extensions
0 stars 0 forks source link

NPE in calculateDistanceBetweenMarkers() #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
NPE occured in "Declusterification" Demo.

The problem occured when changing CameraView (principaly when map Tilted).

The following line seems to return a Null object.

LatLng nextPosition = projection.fromScreenLocation(point);

Regards

Original issue reported on code.google.com by stephane...@gmail.com on 20 Dec 2013 at 5:25

GoogleCodeExporter commented 9 years ago
According to google doc :

"The LatLng corresponding to the point on the screen, or null if the ray 
through the given screen point does not intersect the ground plane (this might 
be the case if the map is heavily tilted)."

So null is a possible value.

Original comment by stephane...@gmail.com on 20 Dec 2013 at 5:34

GoogleCodeExporter commented 9 years ago
Hey Stephane,

I have reproduced this issue and will look into it when I have some time.

Cheers,
Maciej

Original comment by maciek.g...@gmail.com on 20 Dec 2013 at 7:02