ok, it seems i found a way to temporarily or (hopefully) permanatelly come around this. I simply added a map.addOverlay(pipa); in the createPolys() function before the pipa.enableEditing and seems to be working fine for now.
Thank you for trying the app. Regards, On May 5, 12:45 pm, Adonis <[email protected]> wrote: > I am using exactly the same functionality to display gpolylines or > gmarkers and the 'a isnull' error never occurs. Surely, when the > error happens, the code stops at the point of pipa.enableEditing() > method. If you want to check the gpolylines try, username:richard, > password:tipper this works just fine. Also, the functionality to > place the polys is almost the same as the one google uses in its > example codes for placing and editing gpolys. > > On May 5, 12:13 pm, Mike Williams <[email protected]> wrote: > > > You normally can't call pipa.enableEditing() on a poly that hasn't yet > > been addOverlay()ed. > > > You get away with it the first time, possibly because the > > enableEditing() code is in an external module which gets loaded > > asynchronously, so the enableEditing() call doesn't get implemented > > until after the addOverlay(). On subsequent calls, the module is already > > loaded, so the enableEditing() does get implemented before the > > addOverlay(). > > > --http://econym.org.uk/gmap > > The Blackpool Community Church Javascript Team > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
