about mapview.zoomdialog() function

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

about mapview.zoomdialog() function

Postby wajdi » Wed Jul 02, 2008 8:52 pm

Hiiii,

i want to ask you about the mapview.displayZoomDialog(int x, int y)
i really didnt unterstand the two parameters’ role( x and y ), are they
for the ZoomDialog's position on the map? and if not how can i manipulate its position ??

thanks :wink:
wajdi
Freshman
Freshman
 
Posts: 4
Joined: Wed Jul 02, 2008 10:10 am

Top

Postby plusminus » Thu Jul 03, 2008 8:48 am

Hello waijdi,

the Android-API-Documentation provides insufficient information, but I can't imagine what else it would be except the x/y-position on the screen.
Android-API-Documentation wrote:public void displayZoomDialog(float x, float y)
Display a zoom dialog.



Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby wajdi » Fri Jul 04, 2008 2:16 pm

i changed the parameters of this function but nothing happen
here is my code
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  public boolean onMenuItemSelected(int featureId, Item item) {
  2.  
  3.         switch(item.getId()) {
  4.  
  5.         case zoom:
  6.  
  7.             map.displayZoomDialog(0,5);
  8.  
  9.             map.invalidate();
  10.  
  11.             return true;
  12.  
  13.         case option2:
  14.  
  15.                 return true;
  16.  
  17.             }        
  18.  
  19.         return super.onMenuItemSelected(featureId, item);
  20.  
  21.     }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


here is what i got
wajdi
Freshman
Freshman
 
Posts: 4
Joined: Wed Jul 02, 2008 10:10 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest