-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have two gmarkers in a gmaps. They indicate the beginning and the ending of an activity. Sometimes this activity is not ended and I have to hide the ending gmark. I tried using setVisible(false) but it gaves me a javascript exception that says
Fallo al procesar
setAttr
Cannot read property 'style' of undefined (TypeError)
Then I tried to detach the gmarker and when I have to use it again attach it to the gmaps. When I detach it it disappears but when I set its parent again to gmaps it never appears.
How can I hide a gmark and then make it visible again??
Any idea about it??? It is really important for me to solve this issue...
Thank you!
Using setVisible with a gmarker throws the javascript exception I wrote in the first post. Using detach when I want to hide the gmarker and then setParent when I want to show it works. I was adding the gmarker to another gmap in my application. That's why I thought setParent() didn't show the gmarker.
Asked: 2013-02-26 09:23:14 +0800
Seen: 29 times
Last updated: Mar 11 '13