Google android maps v2 MetersToEquatorPixel

I am currently tasked with converting the Google Android v1 application to the Google Android Maps V2 application. This process is not pleasant (thanks google).

My problem is that in the previous application, they used a small small Google Android Maps v1 method called meterToEquatorPixels , which you could get from the map map.ie projection

int px =(int) (mapProjection.metersToEquatorPixels(radiusInMeters) * (1 / Math.cos(Math.toRadians(latitudeActual))));

However, in Google Android maps V2 there is no such method that I could find. Can someone tell me where it is, or what suitable replacement could be?

+4
source share
1 answer

,

mMap.addCircle(new CircleOptions()
     .center(latLng)
     .radius(radiusInMeters)
     .fillColor(Color.BLUE));
+2

Source: https://habr.com/ru/post/1543485/


All Articles