Hi Rafael,

thanks for your previous post.
What I have now is a correct onMapReady Event, no errors, no errors,
but no map displayed.

Here is a sample of a trace action
ON MAP READY
GET CENTER BEFORE: (0, 0)
TYPE: [object IMapTypeWrapper]
MAP GET SIZE (x=300, y=400)
MAP GET CENTER: (37.4419, -122.1419)

of

trace ("GET CENTER BEFORE: " + map.getCenter());
 map.setCenter(new LatLng(37.4419, -122.1419), 13,
MapType.NORMAL_MAP_TYPE);
                        map.openInfoWindow(map.getCenter(), new 
InfoWindowOptions({title:
"Hello", content: "World"}));

                map.setSize(new Point(300,400));

                map.x = 30;
                map.y = 30;

                trace ("TYPE: " + map.getCurrentMapType());
                trace ("MAP GET SIZE " + map.getSize());
                trace ("MAP GET CENTER: " + map.getCenter());

These are lines in a .AS class external to the MXML.

Any Idea why the MAP is nowhere?

Ciao

On Feb 27, 4:00 pm, Rafael Barrientos <[email protected]> wrote:
> Hi Emanuele you need put this in your code
>
> map = *new* Map3D;
>
> map.setInitOptions(*new* MapOptions({viewMode :
> View.VIEWMODE_ORTHOGONAL,attitude : *new* Attitude(0, 0, 0)}));
>
> map.url = 
> "*http://www.youapikeyDirectoryINYourWebServer<http://www.youapikeydirectoryinyourwebserver/>
> *"
>
> map.key = *"youAPIKEY"*; *//Sitio Publico
> *
>
> 2010/2/24 Emanuele <[email protected]>
>
>
>
> > Hi all,
> > we are trying to use API in FLEX/Air.
> > It works if:
> > - we use a mxml with all the tags the helloworld file says in FLEX/
> > Air:
> > - it works in pure AS3 with Flash CS4.
>
> > Our need is to CONDITIONAL call the map inside a FLEX application
> > (AIR) through AS3 without calling the MAPS:MAP tag inside the MXML
> > file of our project.
> > We could just HIDE the module and display at our needs, but it is not
> > what we need.
> > If we try to initiate the map inside pure as3 code in Flex, it gives
> > "Initialization failed: please specify an application URL.".
>
> > Thx a lot
> > Emanuele
>
> > --
> > 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]<google-maps-api-for- 
> > flash%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-api-for-flash?hl=en.

-- 
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.

Reply via email to