I need help with ideas for a KML problem. I have a moving marker on the map with up to 4000 tail objects following this marker. So when the marker moves I'd like the last marker in its tail to disappear in the same time as the new marker is constructed.
In my application the marker is first displayed and in every tenth second the marker can change location on the map. With a user trigger event the user shall be able to see where the marker has been located in it's previously locations (the marker has a location even when the map is not available). This previous locations can be retrieved and displayed on the map with a generated KML file from the database. Next I'd like to erase the last marker in the tail when the head marker makes its next movement so that after the update there will be the same fixed number of markers displayed on the map. Solutions that I have considered are: 1. If the KML file could be dynamic and react to changes in it the database should add the new location in the KML file and erase the last object. But I am not aware if Google Maps API could handle dynamic changes in the KML file? If the google maps sees the file as a completely new file and have to render the whole file again I believe this would be a waist of performance. 2. If I could import the KML layer and then erase the last objects one by one when I receive new updates of the marker that would have been a solution. But as I recall the KML layer is fixed when it has been rendered by the map and not possible to dynamically change if I don't parse the KML with my own parser. I'd be glad if the solution was close to number 1 since I could then make full use of the KML advantages. I'd be glad to read your ideas and input to my problem. All help is appreciated. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
