Good that you narrowed it down. I'm not sure whether the control should be doing anything differently, however. Maybe we need to find out more about why Google Maps seems to be interfering with updating the display of the control. Would it be sufficient as a work around to draw the control the first time with a timeout?
On Fri, Mar 10, 2017 at 1:14 PM, 'perspektive42' via Google Visualization API <[email protected]> wrote: > Hi, > > I've narrowed it down. The control is created within a DIV that is used as > a custom Google Maps control. In that case the control is not drawn > correctly at first (both thumbs are at the minimum value). When I query the > state, however, the returned values are as expected. Also, when the control > is re-drawn later by an interval timer callback, it is drawn correctly. > > When I create the control outside the map, i.e. as child of a DIV that is > not used as a maps control, it is drawn correcly immediately. > > > Am Freitag, 10. März 2017 16:30:52 UTC+1 schrieb perspektive42: >> >> Hi, >> >> This code is not yet on a public server. >> >> I've extracted the relevant parts to jsfiddle, and it works there: >> https://jsfiddle.net/jp8065en/1/ >> >> I have to find where the difference is compared to my development >> machine. I also dynamically change the state (code not on jsfiddle), and >> calling draw() with the new state yields the expected result. It's only the >> first draw() that doesn't work. Strange. >> >> -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to google-visualization-api@ > googlegroups.com. > Visit this group at https://groups.google.com/ > group/google-visualization-api. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-visualization-api/94542ffd-017c-4318-a809- > c7809923a558%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/94542ffd-017c-4318-a809-c7809923a558%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOOqLjWT95OKTPvreOwqPeo7MqBe_vUmiuLBLrQBgcwNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
