• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The new marker of the new request is not being added to the google map.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a checkboxlist where the user can select some routes then a reponse is being getting from the server. I have method gotoLocation to upadte the location of the markers as well to add a new marker in the map when a new one is being inserted into the table on the serverside with the same route.

I am using HashMap with the table id as a key and the marker as value also in my case the key is unique.

The Updating part works fine but I am facing problem with the adding part. So after the user selectes the desired routes, they are being added to the map as marker and to the HashMap as elements but the problem occures when I insert a new one with the same route and different key (id is being incremented by one in the table) into the table then the adding part is being entered and the id of the new added one is being recognized but the new marker is not being added on the map but to the HashMap markerMap.

Additionally when the new Response reaches the method again I noticed that the last added marker with the new id is not in the HashMap and it just contains the elements of the first request also when the request is over and the new added element stays in the HashMap for the request Life! is there any explanation for this behaviour and how can I fix it?

I appreciate any help.



 
reply
    Bookmark Topic Watch Topic
  • New Topic