Do you know about how to set coordinates (X, Y position), height and width for MapView ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can control what the
MapViewis displaying by using theMapController. You get theMapControllerfrom theMapViewusinggetController():From there, you can check the documentation on how to control the center point or span. I’ve found
zoomToSpan()to be particularly useful.I’m not exactly sure what you mean by “height and width” of the MapView, but if you want to change the size of the MapView itself on the screen, you can just do it like you would do for any View (by setting the layoutHeight and layoutWidth, either in xml or dynamically in code).