Hey all,

i am struggling with the following problem:

i want to change the coordinates of an existing (allready created)
placemark.

i got an solution by creating a new placemark an replace it with this
function:

point = gEarthInstance.createPoint('');
var newPlacemark = gEarthInstance.createPlacemark('');
......
......
gEarthInstance.getFeatures().replaceChild(placemark, newPlacemark);

Regarding the performance it works but it is not that good :-(
If i set 500 placemarks in a loop it takes to much time to draw/set
them all.

How can i avoid to create an instance every time? Can i access just
the position element of the point in the placemark container?

I know all the placemarks are stored here:
EarthInstance.getFeatures().getChildNodes().item(x)

but there is no member function to change the position. I allready
read the API documentation, but there is nothing how i can access the
placemarks position.

Thanks in advance for your help.

iam looking forward for an solution.

best regards
Frey

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to