Cant Show Multiple Markers on Google Maps

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

Cant Show Multiple Markers on Google Maps

Postby raihan26 » Sat May 01, 2010 6:08 pm

I am trying to insert Multiple Marker on the google map but I am not able to do... Can anybody let me know what wrong i am doing...
this is my below code..
Please anyone shed some light on this...


Code: Select all
class InterestingLocations extends ItemizedOverlay { 
         private List<OverlayItem> locations = new ArrayList<OverlayItem>(); 
   
   
   
   
   
         private Drawable marker; 
         public InterestingLocations(Drawable marker) 
         { 
         super(marker); 
         this.marker=marker; 
         // create locations of interest 
           
           
           
           
           
         for(int y=0;y<value2;y++) 
         { 
         
       Log.i(TAG, "Sorted Distance_23: " + "|"+distance[y][2] +"|"+ distance[y][3] +"|"+s1[y] ); 
           
       double latitude = 0; 
       try 
       { 
            latitude = (double)(distance[y][2]); 
       } 
       catch(Exception e) 
       { 
       } 
       double longitude = 0; 
       try 
       { 
            longitude = (double)(distance[y][3]); 
       } 
       catch(Exception e) 
       { 
       } 
         
       GeoPoint a = new 
         GeoPoint((int)(latitude),(int)(longitude)); 
         //GeoPoint disneySevenLagoon = new 
         //GeoPoint((int)(28.410067*1000000),(int)(-81.583699*1000000)); 
       OverlayItem overlayitem = new OverlayItem(a, "", ""); 
         locations.add(new OverlayItem(a , 
         "Data", "Data")); 
         //locations.add(new OverlayItem(disneySevenLagoon , 
         //"Seven Lagoon", "Seven Lagoon")); 
         populate(); 
           
         } 
         }   
raihan26
Freshman
Freshman
 
Posts: 3
Joined: Sat Apr 17, 2010 11:56 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest