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

  • SEARCH
  • Home
  • 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 5981523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:57:21+00:00 2026-05-22T21:57:21+00:00

I have a position, which I need to display. The format is like: lat:

  • 0

I have a position, which I need to display. The format is like:

lat: 59.915494, lng: 30.409456

Also I need to display current position of the user. The following code:

    MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this, mapView);
    mapView.getOverlays().add(myLocationOverlay); 
    myLocationOverlay.enableMyLocation(); 

doesn’t center map on the current position.

  • 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-22T21:57:21+00:00Added an answer on May 22, 2026 at 9:57 pm

    In order to adjust where the map is centered on or zoomed into you need to get the MapController.

    MapController controller = mMapView.getController();
    controller.animateTo(geoPoint);
    // Or if you just want it to snap there
    controller.setCenter(geoPoint);
    
    controller.setZoom(5); 
    

    That point that you want to show you’re going to need to add an Overlay. Here is the documentation for that and a nice tutorial on how to do it.

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

Sidebar

Related Questions

I have an odd situation in which I need to modify the position of
I have a topbar with position:fixed which also contains anchor links ( <a href=#someid>jdjd</a>
I have an element, which has the following CSS: .elem { left: 0; position:
I have a <div id=outer> which has the following css: position:relative; width:300px; height:125px; float:left;
I need to have two TextViews displaying same number, first of which should display
i have a container div which is position:relative and the squares are position:absolute because
I have a small algorithm which replaces the position of characters in a String:
I have this method which lets me translate the position of an object, animating
I have a custom UITableViewCell which contains several UIButtons. Each button's frame position is
I have a menu item that which I've created using display:table-cell; to ensure that

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.