Hi Mindful- I'm unable to replicate the issue. I've tried reloading the "Hello World" code (which uses new LatLng) about 20 times in the browser, and it works each time.
Does this fail after the SWF is pushed to a live site as well, or just when debugging? Does it fail with particular coordinates? LatLng should work with coordinates that have no imagery, yes. - pamela On Wed, Feb 25, 2009 at 6:20 PM, Mindful <[email protected]> wrote: > > Hi, I'm using map_flex_1_9.swc on my Flex dev environment (if there is > a separate Flex Google Map group please let me know) and experiencing > inconsistent behavior on new LatLng() constructor. > > Mostly it works(about 80-90%), but sometimes the returned object > contains no data at all when 'Watch'ed from Flex debugger. The > created object reference itself is not null, but when you click the > object from the debugger to see its content, there is nothing. The > code is something like below: > > try { > // sometimes changing lat, lng > parameter make the constructor > work again > newLoc = new LatLng(37.391933, > -122.04375) > locateMap(newLoc, ""); > } catch (errObj:Error) { > trace("Cannot create LatLng :" + > errObj.message); > } > > The catch block never reaches, but subsequent call to > > setCenter(loc, 12, MapType.HYBRID_MAP_TYPE); fails reporting null > object reference. > > The behavior is random, and rebooting system or changing lat, lng > parameter and recompiling the project sometimes helps. > > Anybody seeing this problem? > Also, new LatLng() should accept any lat, lng parameter whether there > is actual map or not for the location. Correct? > > GV > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
