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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:56:26+00:00 2026-05-28T04:56:26+00:00

I have an array list containing objects from the class EventOnMap . Every object

  • 0

I have an array list containing objects from the class EventOnMap. Every object has (amongs others) the member variables eventLatitude, eventLongitude and eventType. The list is updated regurlarly (e.g. objects are inserted and deleted) up to several times a second. The list is not too big, it contains at most 50 elements.

On my mapView I now would like to dynamically create and update overlays for all events depending on the list. The list represents the status of the overlays, that means I would like to update the overlay position when the coresponding longitude/latitude values change in the list.

Does anybody know a way to 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-28T04:56:27+00:00Added an answer on May 28, 2026 at 4:56 am

    Have a look at the ItemizedOverlay class which might be better for this case than creating an overlay for every item in you array.

    The bigger problem might be you update intervals as they are really small. I don’t know how the performance of an ItemizedOverlay when it gets updated so often. As you cannot edit the items on the overlay. To change the location of an item you have to remove and add it again to the ItemizedOverlay and call populate(). But this will handle all items again.

    So perhaps it is better to write one custom overlay which handles all items on you map.

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

Sidebar

Related Questions

I have an array list comprised of Objects. Each object is comprised of Strings.
I have an array containing a list of files. I want to sort it
I have an array list of objects in my application. private static ArrayList<Player> userList=new
Let's say I have an array of primitives or a list of objects, doesn't
I have a List which I create from a DataTabe which only has one
I have two arrays, each containing strings. The first array is a list of
I have an array of objects containing pairs of string labels and values, how
I have a un-ordered list containing links with the same class and a unique
I get object from hibernate query. Then i have list of fields, whose getters
I have an ArrayList containing Car objects and I want to get from 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.