Marker
Parse layout to original marker or you can create any view as marker. I added the layer for create any view as marker instead original marker.
#
Download#
Bitmap MarkerThis marker is original from Google Maps SDK. But, you can create bitmap marker from xml layout.
#
Create marker adapterExtend your adapter with MarkerBitmapAdapter()
and implement methods.
createView()
(suspend)maxWidth()
maxHeight()
CreateView()
is setting up your view, inflate the xml to view and return to it. This function is suspend, so support the asynchronus function like load image from url.
maxWidth()
is max width for your marker in pixel.
maxHeight()
is max height for your marker in pixel.
#
Implement marker adapterFrom the adapter, you can get bitmap icon with getIconView()
.
#
Any View MarkerThis feature is enabling posibility create any view (not bitmap) as a marker. But this marker is not original marker from Google Maps. If you create animate marker with gif file or Lottie file, use this feature.