Problem with map overlay

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

Problem with map overlay

Postby rsgiridaran » Wed Jul 07, 2010 2:53 pm

Hi All,

i want to create map oveylays with information window(when user tap overlay) which is clickable and stick with overlay when user panning the map. i am added the map in a tab view, created overlays using itamizedoverlays and information window using Popupwindow, when user panning the map i am updating the popup window positing using popup.update() method. The problem here is when the user panning with popup window on map towards up, the pop up window showing above the tab bar. i dont know how to fix this.

here i have given sample code for popup window display and on draw method.
Code: Select all
LayoutInflater inflater = LayoutInflater.from(mContext);
         View mView = inflater.inflate(R.layout.map_popup, null);
         mPopupWindow = new PopupWindow(mView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, false);
         mPopupWindow.showAsDropDown(mView, 20, 200);

On draw method
Code: Select all
mPopupWindow.update(center.x , center.y , -1, -1);

i want it to be like the same in directions popups in google maps application. please advise me.

Thanks in advance
Posts: 7
Joined: Wed May 06, 2009 2:42 pm


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests