Reputation: 11782
Suppose I have made a diagram e.g a circle on android mapView
. Now I want to remove/blackout/hide
all other maps except that portion. I can zoom in out that portion too
Is this possible?
Best Regards
Upvotes: 0
Views: 97
Reputation: 25830
I have a similar problem of make map view inside certain area.not sure it will help you or not but you can try it.
What you should do is take image of circle(Background is Transparent) and put your image as background in Linear layout. and inside that LinearLayout you can put map view.
your xml will Look like below.
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/Circle_back" >
<com.google.android.maps.MapView
android:id="@+id/whereami_mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="YOUR API KEY"
android:clickable="true" />
</LinearLayout>
</LinearLayout>
i have to view it inside rectangle box. below is the similar screen shot you will get while running. you d'nt need to hide rest of the part of Map.
hope it will help some how what are you looking for.
Upvotes: 1
Reputation: 6102
Make a trick
Zoom will work in your case. Set zoom level and
Use android:clickable="false"
in your layout file.
;)
Upvotes: 0