On Oct 27, 2:31 am, yan06100 <[email protected]> wrote: > Hi, > > I recently have trouble with markers. Everything was working > perfectly till about 2 weeks ago. > Than Ive noticed that there is an javascript error which causes > that markers dont show. I have not touched my code for last few > months and everything was working so I assume that Google have > changed something in their code and now I have to make changes > in mine.
Not enough information. Please follow the posting guidelines and post a link to your map, not code. http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines http://groups.google.com/group/google-maps-api/web/why-including-a-link-is-critical > > The code containing error is following: > // add multiple overlays at once > GMap2.prototype.addOverlays = function (a) { > var b = this; > var i = a.length; > while (i--) { > b.Ia.push(a[i]); > a[i].initialize(b); > a[i].redraw(true); > } > > }; > > The error in above code is here: > b.Ia.push(a[i]); > > Ia - with capital i and small a, You are not using the documented API, you are using google's internal variables. That is not documented, and the internal variables can change with each release. > > My IE says the 'Ia' is null or not an object. > > If I remove the line 'b.Ia.push(a[i]);' the markers load without > errors, but this time the problem is with zooming. When I zoom > out the markers dont follow, just stay where they were, which > means that as I zoomed out, the markers distances dont change, > so by continously zooming out I end up having markers on the sea > but not where they should be. > > Can anyone explain what happened? Everything was fine till 2 > weeks ago. You aren't using the documented API. That is almost guaranteed to break periodically. > In Firefox the markers wont load even if I remove that line with > 'b.Ia.push(a[i]);'. > > Thanks What version of the API are you using? -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
