Encircle the center of the map with red blinking cirlce on Android

You must Login before you can answer or comment on any questions.

Hi,I am using Android 4.0 and Titanium 2.1.0 SDK.I am working on mapviews.Just want to know if there is any way by which I can encircle the center region of the map on android with a blinking red circle. Thanks.

1 Answer

I don't think this is possible, however you can try and fake it.

What i can think of how to fake this is by creating a transparent view, with a red border. You have to set the border radius in such a way it will look like a circle.

Async a method that has an infinite loop as long as the window is open or set an time. In that loop have a

setTimeout(500, function() 
{
    if(label.borderColor === 'Red')
        label.borderColor === 'transparent';
    else
        label.borderColor = 'Red';
});
Something like this should give the effect you want.

There is one problem, when you scroll the map, the red circle wont scroll along with it, this is something you have to figure out yourself.

Goodluck!

— answered 10 months ago by Kami -
answer permalink
1 Comment
  • In the kitchen sink example of mapview, "userLocation:true" property shows exactly what I am searching for.If its possible in the Kitchen sink example then I think it should be possible here too.Anyway thanx a lot.

    — commented 10 months ago by Richard JOSEPH

Your Answer

Think you can help? Login to answer this question!