I want to ask about android app that I develop using google map in my apps. I already make multi marker on my map (1323 data so 1323 marker). So the question is:
I want to make search box to find specific marker on my map. I dont know how to find. Is it can find using title or snippet in marker
c=myDbHelper.query("Landslide", null, null, null, null,null, null);
if(c.moveToFirst())
{
do {
String loc= c.getString(3);
Double lat = c.getDouble(4);
Double lng = c.getDouble(5);
String date = c.getString(1);
//Integer death = c.getInt(6);
mMap.addMarker(new MarkerOptions()
.position(new LatLng(lat,lng))
.title(loc+"")
.snippet("Latitude:"+lat+" "+"Longitude:"+lng+" "+"Date:"+date+"")
.icon(BitmapDescriptorFactory.fromResource(R.drawable.red1)));
} while (c.moveToNext());
}
}
Thanks In advance who helping me, regards, Hafizul Reza
Aucun commentaire:
Enregistrer un commentaire