a is undefined
function wh(){y(fd).GQ();eval(arguments[1])}
main.js (line 305)
Also, reverting from v=2 to 2.147 seems to eliminate the problem
Doesn't work in:
2.173
2.178
2.169
2.167
2.159
2.151
Works:
2.147
2.148
2.149
On Mar 18, 11:19 pm, Paulo JF Silva <alfa...@gmail.com> wrote:
> I'm getting a very weird and hard problem to debug when I create about
> 3000~4000 polylines.
>
> I'm only parsing my data (that comes from an ajax post) and creating a
> new GPolyine, not showing them on the map.
>
> In Chrome the javascript error is:
> Uncaught TypeError: Cannot read property 'x' of undefined
>
> Basically I have 1 html with the map and 1 button that does an ajax
> post, gets javascript data, resets the polylines array, creates the
> 3000~4000 polylines and adds them to the array,
>
> The error doesn't appear always! Just sometimes when I click the
> button. It seems to never occur on the first click, only after the 3
> or 4th...
>
> This error causes my remainder javascript to not be executed which
> causes a lot of problems.
>
> The code to parse my jscript data and create the GPolylines:
>
> lines = new Array();
> for (var i = 0; i < circuitsDb.length; i++) {
> var circuit = circuitsDb[i];
>
> var newCircuit = new GPolyline([new
> GLatLng(parseFloat(circuit.startY), parseFloat(circuit.startX)),
> new GLatLng(parseFloat(circuit.endY),
> parseFloat(circuit.endX))], circuit.lineColor,
> parseFloat(circuit.lineWeight),
> parseFloat(circuit.lineOpacity));
>
> lines.push(newCircuit);
>
> }
>
> I also analysed my data and it seems everything is OK.
>
> Anyone has any idea how to solve this or how to do a better debugging?
--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
No comments:
Post a Comment