Last active
August 29, 2015 14:04
-
-
Save rameshvoltella/8956dbbd4846e1e1385a to your computer and use it in GitHub Desktop.
Add dynamic Marker in google map from web using Lazyloading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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")))); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use Lazyloading libarary by Fedor Vlasov from here https://github.com/thest1/LazyList