Hi Dominique-
Do you call setSize on the Map somehow? Can you check the NET requests to
see if tiles are requested?

- pamela

On Tue, Oct 21, 2008 at 10:04 PM, dominique <[EMAIL PROTECTED]> wrote:

>
> Hi Pamela,
>
> Thanks for the reply.  When I use the non-Flex SWC the SWF returns to
> a more respectable file size but the end result is the same.  I just
> get a white box.  The map never loads.
>
> I tried this to see what happens:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute">
> <proj:Project xmlns:proj="com.example.project.*" key="12456"
> width="800" height="600"/>
> </mx:Application>
>
> The map still doesn't load but I see the default ocean-blue background
> color of the <mx:Application> container.
>
> Maybe I'm loading it wrong.  com.example.project.Project extends
> com.google.maps.Map, I set the MapEvent.MAP_READY listener, and I
> call
>   setCenter(new LatLng(39,-99), 4, MapType.PHYSICAL_MAP_TYPE);
> when fired.  Looking over the examples I don't see anything else that
> is now necessary.
>
> Dominique
>
>
> On Oct 20, 8:11 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
> > Hi Dominique-
> >
> > If you don't want to take advantage of the new Flex component, you
> > should use the non-Flex swc and the same code that you used before.
> > Does the non-Flex SWC work for you?
> >
> > - pamela
> >
> > On Tue, Oct 21, 2008 at 2:52 AM, dominique <[EMAIL PROTECTED]> wrote:
> >
> > > I had been working on a lightweight map using API v 1.5 and just
> > > upgraded to 1.7 and it stopped working.
> >
> > > With v1.4 and v1.5 I was able to have a Main.mxml file that simply had
> > > the following:
> >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <proj:Project xmlns:proj="com.example.project.*" key="12456"
> > > width="800" height="600"/>
> >
> > > This no longer seems sufficient.  With v1.7 nothing happens when I
> > > load the SWF.  Looking over the latest API examples I noticed that
> > > they now wrap the map in <mx:Application> like so:
> >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > > layout="absolute">
> > > <proj:Project xmlns:proj="com.example.project.*" key="12456"
> > > width="100%" height="100%"/>
> > > </mx:Application>
> >
> > > If I do this it works.  However, the file size of the resulting SWF
> > > balloons from 44KB to 219KB.  I understand this is because it now
> > > loads the Application container with the spiffy loading box.  I don't
> > > actually need this so is there any way to still load a map without
> > > wrapping it in an <mx:Application> container?
> >
> > > Thanks.
> >
> > > P.S. I'm using the Flex SDK.
> >
>

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