Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5983835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:17:16+00:00 2026-05-22T22:17:16+00:00

I am a new android developer. I am creating a map view application Where

  • 0

I am a new android developer. I am creating a map view application Where I want to set up my map view according distance from my current location. I have three buttons such as 100m,500m and 1 Km . When application is started then mapview will appear and current location is the center of the map. When i tap on 1 km then the map view is set up 1 km according to current location. How can i do this.Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:17:17+00:00Added an answer on May 22, 2026 at 10:17 pm

    You have to compute 1km in latitude and longitude, set the center to your current position ( I guess you succed to do that) and set the span to your MapController:

    mController.zoomToSpan((int) spanLat,(int) spanLon);
    

    zoomToSpan
    public void zoomToSpan(int latSpanE6,int lonSpanE6)

    Attempts to adjust the zoom of the map
    so that the given span of latitude and
    longitude will be displayed. Because
    the zoom can only achieve discrete
    levels, and because the aspect ratio
    of the map may not match the ratio
    given, the quality of the fit may
    vary. The only thing we guarantee is
    that, after the zoom, at least one of
    the new latitude or the new longitude
    will be within a factor of 2 from the
    corresponding parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a new android developer and I am currently making an application to
As per the android developer docs for creating tab UI you need to have
I am absolutely new to the Android platform and have been building an application
New Android developer here. I'm following a tutorial at http://www.vogella.de/ . The first applications
I'm a newbie Android developer and I'm also in the market for a new
I am a beginner android developer and I am trying to have a button
New to Android before I port my application to this platform I wanted to
I'm pretty new to Android development, but I have some experience with Java and
The new extensions in .Net 3.5 allow functionality to be split out from interfaces.
I consider myself an Android developer, after having created four apps and learned a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.