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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:45:03+00:00 2026-05-31T10:45:03+00:00

I have two bitmaps that differ only by color. The green one is used

  • 0

I have two bitmaps that differ only by color. The green one is used to plot points of interest on a map view and the blue one shows the device’s current location. I load the bitmaps from the resources directory and convert them to BitmapDrawable objects in an identical manner.

I set the green bitmap drawable to be the map view’s overlay’s default image; for the POI points I just add them to the layer so that they pick up the default (green) image.

For the current position item I explicitly set the blue bitmap drawable when adding the point to the same overlay layer.

The only difference between normal POIs and the current location is that the current location has the specific (blue) bitmap drawable, whereas the normal POIs pick up the overlay layer’s default (green) bitmap drawable. The bitmaps came from photoshop (saved for web) and only differ in their colors.

But when I display the map the current location point’s icon image is half the size of the default image. This is true at any zoom level. I have worked around this by resizing the current position (blue) bitmap to be twice the size of the green bitmap and now you can’t tell the difference. So it is definitely some type of scaling going on in the drawing of the images.

I cannot see any interface on the set of Google maps classes that woud indicate setting a scale factor.

While my work-around of doubling the specific (blue) icon works, I’d sorely like to understand what I am not doing correctly. What am I forgetting to do?

  • 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-31T10:45:05+00:00Added an answer on May 31, 2026 at 10:45 am

    First I would say use a separate overlay for your location pin, Adding them to the same ItemizedOverlay is not recommended.

    Make Sure you are boundToBottom() for anything you are setting custom. From memory the overlays don’t resize the drawables, so this sounds like when you are setting the separate custom blue pin your not setting the drawable properly. boundBottom or boundBottomCenter need to be set otherwise it will confuse the overlay.

    Also just check that your drawables are inside a dpi drawable folder. (most commonly drawable-hdpi).

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

Sidebar

Related Questions

I've got a custom view in which I need to draw two bitmaps, one
I have two bitmaps, produced by different variations of an algorithm. I'd like to
I have two applications written in Java that communicate with each other using XML
I have two classes, and want to include a static instance of one class
I have two threads, one needs to poll a bunch of separate static resources
I have two spreadsheets... when one gets modified in a certain way I want
I have two Bitmaps, named largeBmp and smallBmp. I want to draw smallBmp onto
i have two bitmap images ..and i need to merge the bitmaps with precise
i have two Activity in this i take pixels of image from one activity
I have a program (time lapse maker) which has two threads that updates 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.