On Fri, Sep 16, 2011 at 11:35 AM, Michael <[email protected]> wrote:

> I just don't know why changing the inner html of div elements would
> affect how the marker is displayed on the map.
>

It would definitely affect performance. Updating the innerHTML is an
operation on the DOM, and would trigger a repaint of that element (if not a
reflow of the page). This can be slow in some browsers.

I'd suggest updating the DOM only every N milliseconds.

Chris

--
http://twitter.com/broady

-- 
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.

Reply via email to