6 Replies Latest reply on May 3, 2011 8:59 PM by gayathri_

    Google Map3D object error

    BigZ2011 Level 1

      Hello there. I'm trying to build my first Google Map application for Android using Burrito. I've found some code examples but I'm getting an error I don't understand.  I've downloaded/installed the Google SDK for Flex and I've Imported the map_1_20.swc and the map_flex_1_20.swc libraries into the "libs" folder.

       

      The error shows up on the line where I'm declaring the maps:Map3D object.  The error is as follows:

      Map3D declaration must becontained withing the <Declarations> tag, since it is not assignable to the default property's type 'Array' or the element type 'mx.core.IVisualElement'.

       

      The advice in the error code goes against the code samples I've found where the Map3D object is always declared below the end of the Delarations tag. My code is below.  If anyone could help me out, that would be hugely appreciated.  Thank you very much!

       

      <?xml version="1.0" encoding="utf-8"?>
      <components:View xmlns:fx="http://ns.adobe.com/mxml/2009"
           xmlns:s="library://ns.adobe.com/flex/spark"
           xmlns:components="spark.components.*"
           title="Home"
           xmlns:maps="com.google.maps.*">
      <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <maps:Map3D xmlns="com.google.maps.*" <-- This line errors -->
          id="mymap"
          url="my url"
          sensor="false"
          key=""
          width="100%"
          height="100%"/>

      </components:View>