I have a problem with my application that use gmaps. This application draws red circle (alpha set to 30) on the maps. But sometimes the circles overlap each other and in the intersection point the color it's different like this<http://stackoverflow.com/questions/7196864/on-an-android-canvas-how-do-i-draw-overlapping-shapes-with-non-interacting-alph> .
I think that a possible solution (in theoretical way) is to remove part of overlay(circle) over map, in the position where must insert the new circle and then redraw a new red circle (with alpha set to 30), because i want to realize something like in this Image<http://img844.imageshack.us/img844/9144/cattura23.png> I've attached the class that I've used to draw overlay: public class ImpactOverlay extends Overlay { private static int CIRCLERADIUS = 0; private GeoPoint geopoint; private int myCircleRadius; public ImpactOverlay(GeoPoint point, int myRadius) { geopoint = point; CIRCLERADIUS = myRadius; // assegna raggio del cerchio } public void draw(Canvas canvas, MapView mapView, boolean shadow) { // Transfrom geoposition to Point on canvas Projection projection = mapView.getProjection(); Point point = new Point(); projection.toPixels(geopoint, point); // the circle to mark the spot Paint circle = new Paint(); circle.setColor(Color.RED); circle.setAlpha(30); // trasparenza myCircleRadius = metersToRadius(CIRCLERADIUS, mapView, (double) geopoint.getLatitudeE6() / 1000000); canvas.drawCircle(point.x, point.y, myCircleRadius, circle); } public static int metersToRadius(float meters, MapView map, double latitude) { return (int) (map.getProjection().metersToEquatorPixels(meters) * (1 / Math .cos(Math.toRadians(latitude)))); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

