Sanjiv Jivan
2008-Mar-24 20:45 UTC
[Mapstraction] store toGoogle() etc calls as member variables
Currently Mapstraction creates a new native object whenever one of the to<MapProvider>() calls are made. For example Marker.toGoogle(). As a result if I construct a new Marker, call toGoogle() and add a listener to the native object, it gets blown away when I add the maker to the map as mapstraction calls marker.toGoogle() when adding the marker to the map which creates a new native object. It would be nice if a member variable is lazily instantiated the first time toGoogle() is called and subsequent calls simply return the constructed native object. Thanks, Sanjiv -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20080324/dbe6742f/attachment.htm