Thanks Pamela for answering, The latest code has Polygon.as class either and Eclipse confuses between this of com.google.maps.overlays.Polygon & com.google.maps.extras.xmlparsers.kml.Polygon. Putting a full class path solves the problem, but it's doesn't look good.
And if we're talking about kml parsers, can i use the kml22 parser for 2.0 kml files just by changing the namespace? If the answer is not, is there a conversion tool, that performs such a task? Thanks a lot for your help! Nava On Sep 13, 2009, at 4:42 PM, pamela (Google Employee) wrote: > > Hmm. Have you checked out the latest source code from the project? > http://gmaps-utility-library-flash.googlecode.com/svn/trunk/src/com/google/maps/extras/xmlparsers/kml/ > > I renamed Polygon in the KMLparser namespace to KmlPolygon, as it > seemed the best way to disambiguate the two. Otherwise, the code gets > fairly confusing to read, and long due to the namespace inclusion. > > - pamela > > On Thu, Sep 10, 2009 at 1:12 AM, navac <[email protected]> wrote: >> >> It worked, though as you've mentioned it's not the best way to do >> that :) >> btw, it was com.google.maps.overlays.Polygon >> >> On Sep 9, 5:24 pm, Joe <[email protected]> wrote: >>> i had a typo. should be: >>> var polygon:com.google.maps.extras.xmlparsers.kml.Polygon= new >>> com.google.maps.extras.xmlparsers.kml.Polygon(...) >>> >>> On Sep 9, 10:22 am, Joe <[email protected]> wrote: >>> >>> >>> >>>> hi, >>> >>>> You may try including the full path to avoid the conflict. Though >>>> it >>>> is a bit ugly. >>> >>>> For example: >>>> var polygon:com.google.maps.extras.xmlparsers.kml:Polygon= new >>>> com.google.maps.extras.xmlparsers.kml.Polygon(...) >>> >>>> On Sep 9, 7:57 am, Nava Carmon <[email protected]> wrote: >>> >>>>> Hi, >>> >>>>> I'm trying to integrate KMLParser from extra libraries and when i >>>>> build i have the following error on this piece of code: >>> >>>>> var polygon:Polygon = new >>>>> Polygon >>>>> (getCoordinatesLatLngs >>>>> (kmlPolygon.outerBoundaryIs.linearRing.coordinates)); >>> >>>>> Description Resource Path Location Type >>>>> Can not resolve a multiname reference unambiguously. >>>>> com.google.maps.extras.xmlparsers.kml:Polygon (from /Users/ >>>>> navacarmon/ >>>>> Pangeaflex/libs/3rd party/GoogleMapsAPIUtilityLibrary.swc(com/ >>>>> google/ >>>>> maps/extras/xmlparsers/kml/Polygon)) and >>>>> com.google.maps.overlays:Polygon (from /Users/navacarmon/ >>>>> Pangeaflex/ >>>>> libs/3rd party/map_flex_1_16.swc(com/google/maps/overlays/ >>>>> Polygon)) >>>>> are available. Unknown Flex Problem >>> >>>>> I import: >>> >>>>> import com.google.maps.overlays.Polygon; >>>>> import >>>>> com.google.maps.extras.xmlparsers.kml.*; >>> >>>>> the latter contains a Polygon class, so it's indeed ambiguous. >>>>> How do >>>>> i integrate it properly? >>> >>>>> Thanks a lot for your help, >>> >>>>> Nava >>> >> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
