In this app http://tools.webmasterei.com/hhnordtour/ I drawed a polyline with ca. 2000 points via json. Here is the snippet: ===================== insertpolyline = function(doc) { var points = []; var json = eval('(' + doc + ')'); var i=0; for (var ndx in json.track) { var item = json.track[ndx]; points[ndx] = new GLatLng(item.lat, item.lng); } var polyline = new GPolyline(points,'#ff0000','1','0.8'); } ===================== The source code is here: http://tools.webmasterei.com/hhnordtour/this.js and here ist the json: http://tools.webmasterei.com/hhnordtour/xml/track.js
If I zoom into to map three steps, the line disappear and an the console: in english: "Unaspected value NaNpx while parsing of attribute height" and "Unaspected value -1125 NaN 18696 NaN while parsing of attribute viewBox." If I put only 100 points on the overlay, the error doesnt appear. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
