Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rameshvoltella/8956dbbd4846e1e1385a to your computer and use it in GitHub Desktop.
Save rameshvoltella/8956dbbd4846e1e1385a to your computer and use it in GitHub Desktop.
Add dynamic Marker in google map from web using Lazyloading
//Use Lazyloading libarary by Fedor Vlasov from here https://github.com/thest1/LazyList
ImageLoader mImageLoader=new ImageLoader();//imagloader class from the libraray thest1/LazyList
SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
GoogleMap googleMap = supportMapFragment.getMap();
googleMap.setMyLocationEnabled(true);
Marker mLocationMarker= = googleMap.addMarker(new MarkerOptions().position(Locationvaluehere).title("name").icon(BitmapDescriptorFactory.fromBitmap(mImageLoader
.getBitmap("YourImageurl"))));
@rameshvoltella
Copy link
Author

Use Lazyloading libarary by Fedor Vlasov from here https://github.com/thest1/LazyList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment