Shape of the Bubble on the Map

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Shape of the Bubble on the Map

Postby Shalni » Mon Jun 01, 2009 10:21 am

Hi :) ,

This is really very urgent. Somebody pleeeeeeeeaaaaaase help.

This is my draw function. By this i get a round recatangle but i want it to look like a callout like in google maps. As shown in the image "wanted" below.

private boolean drawInfoWindow(Canvas canvas, MapView mapView, boolean shadow) {
Point selDestinationOffset = new Point();
mapView.getProjection().toPixels(p, selDestinationOffset);
// Setup the info window with the right size & location
int INFO_WINDOW_WIDTH = 250;
int INFO_WINDOW_HEIGHT = 50;
RectF infoWindowRect = new RectF(selDestinationOffset.x + 2 + 5, selDestinationOffset.y - 3 * 5, selDestinationOffset.x + 65, selDestinationOffset.y + 5);
canvas.drawRoundRect(infoWindowRect, 5, 5, getInnerPaint());
canvas.drawRoundRect(infoWindowRect, 5, 5, getBorderPaint());
int TEXT_OFFSET_X = 10;
int TEXT_OFFSET_Y = 15;
canvas.drawText(text, selDestinationOffset.x + 2 * 5, selDestinationOffset.y, getTextPaint());
return false;
}
What I am getting is like image "unwanted". But what i want is like the image "wanted".
I also want to know how to place a link in the information box or the text box.

PLease help :oops: Very Urgent.
Shalni
Junior Developer
Junior Developer
 
Posts: 17
Joined: Wed Apr 29, 2009 6:31 am

Top

Shape of the Bubble on the Map

Postby Shalni » Mon Jun 01, 2009 10:28 am

Hi All,

The images were not attached with my previous post. Sorry. M attaching it now. Please help.
Attachments
Unwanted.JPG
Unwanted.JPG (62.25 KiB) Viewed 292 times
Wanted.JPG
Wanted.JPG (28.23 KiB) Viewed 292 times
Shalni
Junior Developer
Junior Developer
 
Posts: 17
Joined: Wed Apr 29, 2009 6:31 am

Postby Shalni » Mon Jun 29, 2009 11:48 am

Hi can somebody reply to this please.....
Shalni
Junior Developer
Junior Developer
 
Posts: 17
Joined: Wed Apr 29, 2009 6:31 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests