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 7413667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:56:32+00:00 2026-05-29T06:56:32+00:00

I placed succesfully many marker on the my Map Activity in my Android APP.

  • 0

I placed succesfully many marker on the my Map Activity in my Android APP.

The problem is that when zoom is low (i see an entire country on the screen) i see that the marker is not aligned at all to the set position. i mean that the marker, at low zoom level, seems to be placed 50-100km away from that point.

My marker is a simple drawable icon that have an upside TRIANGLE in the center, so the lower corner of the icon (that is placed in the real bottom-center of the icon) should be exactly placed on the GPS coords i set for the marker. Instead it seems that the aligned point is the bottom-left corner of the icon…

how to set marker-icon alignment?

  • 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-29T06:56:32+00:00Added an answer on May 29, 2026 at 6:56 am

    Found the solution myself.
    i was using standard Overlay inherited class.

    i modified the instruction in the overrided draw function:

    public boolean draw(Canvas canvas, MapView mapView, boolean shadow,
            long when) {
        Point screenPts = new Point();
        mapView.getProjection().toPixels(p, screenPts);
        Point finalDrawPosition= new Point();
        finalDrawPosition.set(screenPts.x - (bmp.getWidth()/2), screenPts.y- bmp.getHeight());
    
        canvas.drawBitmap(bmp, finalDrawPosition.x, finalDrawPosition.y, null); 
        [...] 
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When a marker is placed, I want to call a PHP function (in another
I have placed an image on the master page. I see the image at
I have successfully switched my project from odbc.datareader to mysql.datareader. The problem is that
I'm currently writing a lightweight program that consolidates many command line and other external
I have three CascadingDropDown s on a webpage that I use in many places
I have a parent class called Exam and that has many instances of a
I have an Expander placed on a window with a blue background and I
When I placed the the following SQL query, SELECT [ItemID], [Name], [RelDate], [Price], [Status]
Is there a cookie automatically placed on the user's machine? Or is it somehow
I'm working with an ActiveX control placed on a winform. I'd when the user

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.