Select to view content in your preferred language

Zoom Controls

2349
2
01-08-2012 08:53 PM
deleted-user-K_IRAXrpGKsG
Deactivated User
Is there a way to add zoom controls (like plus and minus magnifying glasses) much like Google?
0 Kudos
2 Replies
ArchanaAgarwal
Occasional Contributor
Please take a look at the Geomtry Editing sample.
0 Kudos
SebastianGreifeneder1
Occasional Contributor
At least you can put your MapView into a RelativeLayout and add two Buttons with "+" and "-" (you can also show images within the buttons if you want). Using a RelativeLayout it is possible to show the buttons on top of the MapView, so you have the same look-and-feel as for Google Maps zoom controls.
Set an OnClickListener for the buttons and perform a
mapView.zoomin()
respectively
mapView.zoomout()
.

@ESRI_DEV2011
I don't have any zoom controls in the Geometry Editing sample ... I think you mixed it up with the magnifying glass!


Best regards,

Sebastian
0 Kudos