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();
}
}


