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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:08:49+00:00 2026-06-04T10:08:49+00:00

I have an Maps Overlay which contains multiple points, each with its own numbered

  • 0

I have an Maps Overlay which contains multiple points, each with its own numbered marker. The points are in the overlay in the order I would like them to be drawn (ie from Marker 0 to 10 – with 10 being the latest point). When the map is displayed it appears that points are drawn in the order of increasing Latitude. This means than in my case the marker for point 7 may be drawn on top of the marker for point 10. Is there any way of controlling the order in which the markers will be laid out on the map?

  • 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-06-04T10:08:51+00:00Added an answer on June 4, 2026 at 10:08 am

    I found it – I have added the following code and it seems to work. This forces the items to be drawn in the same order as they are in the Overlay and not in order of increasing Latitude.

    Interestingly, if you choose a different order (e.g. reversed) then the map will display as you ask it with earlier entries overlaying later ones. i.e. point 7 will be drawn on top of point 10 if they both have the same map coordinates. However when you tap on a what is displayed as point 7, the onTap method will give you the index for point 10 (presumably because it was drawn 10th in the sequence) which may cause you some confusion. It is then up to you to remember the sequence you asked points to be displayed and work out which entry is actually on top.

        @Override
    protected int getIndexToDraw(int drawingOrder) {
        // Log.d("getIndexToDraw", "drawing order: " + drawingOrder);  //just my debug
        return drawingOrder; // forces order to follow overlay item sequence
        // return super.getIndexToDraw(drawingOrder); // default code - ie Latitude order
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have two maps, each represented as a 2D array. Each map contains
I have a custom overlay class ( ImageOverlay ) which inherits from google.maps.OverlayView .
I have a dynamic map in Google Maps (API v2) I want to overlay
I have several GWT Maps API JavaScriptObjects (LatLng, Polyline) which I want to send
I have a google maps app which plots markers as it loads. One of
I have a map in which I apply a custom overlay using KMbox overlay
I have custom radar tiles that I am trying to overlay over Google Maps
I have written a mapping application which can either use Google Maps or Open
i have made an application in which i need to load the google maps.
I'm not sure if this is possible, but I would like to overlay the

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.