Arunraj Jeyaraj
Arunraj Jeyaraj

Reputation: 639

How to add overlay items in v2 api key maps?

I am using google map v2 api. I want to show the overlay items when clicking icons in google map. And also if i am tapping that overlay i need to show another view. Is it possible to customize the overlay? If anybody knows kindly share your thoughts. Thanks.

Upvotes: 0

Views: 1549

Answers (2)

Mina Fawzy
Mina Fawzy

Reputation: 21452

overlay mean put image on map describing what ever you want

this video will describe how to overlay image on map

https://www.youtube.com/watch?v=6vowN3gHAlU

but If you need clear example in android

LatLng NEWARK = new LatLng(40.714086, -74.228697);

    GroundOverlayOptions newarkMap = new GroundOverlayOptions()
            .image(BitmapDescriptorFactory.fromResource(R.drawable.newark_nj_1922))
            .position(NEWARK, 8600f, 6500f);
    map.addGroundOverlay(newarkMap);

source https://developers.google.com/maps/documentation/android/groundoverlay

Upvotes: 0

Related Questions