On Oct 27, 2:45 am, "[email protected]" <[email protected]> wrote: > 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-... > > http://groups.google.com/group/google-maps-api/web/why-including-a-li... > > > > > > > > > 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?
Why did you start another thread? http://groups.google.com/group/google-maps-api/browse_frm/thread/59331112b18ebd5f# http://archeo-steppe.com/index.php%3Foption%3Dcom_google_maps%26category%3D21%26Itemid%3D159%26lat%3D47.482082%26lng%3D101.451123%26zoomLevel%3D17 You are hardcoding v=2.150. You need to watch for the deprecation announcements on the stable version, google is now periodically moving the earliest available version, that is what got you. http://groups.google.com/group/google-maps-api/browse_frm/thread/9ac3b59a281831df/8ccf89746cfc4e1c?lnk=gst&q=stable#8ccf89746cfc4e1c (v2.150 is no longer available) -- Larry > > -- 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.
