Issue
I have a map, in that map i have placed a zoomcontrol like this
View zoomView = mapView.getZoomControls();
zoomLayout.addView(zoomView, new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
mapView.displayZoomControls(true);
In xml it is used like this
<LinearLayout
android:id="@+id/layout_zoom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"/>
</LinearLayout>
Now i need to rotate this zoom in vertical format... how to do it?
Solution
Best thing to do is create a vertical linear layout with 2 image button elements(one for zoom in and one for zoom out), you will have to create your own images if you want them to look like the android ones, then just call mapView.getController().zoomIn() or zoomOut().
Answered By - molleman
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.