Flex :: "preload" The Google Maps API In A TabNavigator Tab?

May 6, 2010

I have a Flex 3.5 Air Application; The main window has, besides the header, a TabNavigator. In a Tab, I've put a Google Maps object. It works fine, except that it "loads" very slow and the whole application freezes ( not responding problem ).

Now I would like to fix that but don't really now how to implement one of these solutions:

1) Load the API before the whole application loads.

2) Load the API somehow async, when the tab is clicked. I don't really need a fancy preloader, it's enough that my app doesn't freeze.

Please note that I'm "110%" sure that it's the GoogleMaps's fault since the tab canvas is empty, and no other code is there [double checked that]. Also please note that the map only loads, then I call the setCenter method, so no other operations that could freeze it.

EDIT: I managed to determine that not the Api Object creation is slow, but the actual display of it on the GUI. Here's the line of code. ResellersMapClass only extends the Google Maps API class since I intend to add there extra functionality. But right now is clean.

this.map = new ResellersMapClass();
//between here
this.mapContainer.addChild( this.map );
//and here

View 1 Replies


Similar Posts:


Flex :: How To Use Google Maps

Mar 1, 2012

Is there anyway not to use .swc from google maps for the flex application, as the application i want to develop will be accessible on mobile also.

View 2 Replies

Actionscript 3.0 :: Pulling Info From Google Maps Into Maps Api?

Sep 9, 2009

I have created a site for my relative's garden. They have already registered there location and info with google maps and I have already installed the api in the site. I also, already have the map located on their location with an pin over it, but I was trying to figure out how to make the map pull the information that pops up when you click that pin. Do I need to create that myself or is there a way I can pull that from google? Here is a link to the site: [URL]

View 1 Replies

Flex :: Google Maps For Flash Is Deprecated?

Sep 11, 2011

Since Google has announced that it is deprecating Google Maps for Flash, I am need of some alternatives.elaborate here in order to get the best pick of the maps, since the google maps for flash will be deprecated in next 3 years. Let's get here the best opinions of the peoples - which maps which is build on the Flash platform shall be used instead ?

View 1 Replies

Html :: Embed A Google Maps API Javascript In Flex?

Apr 11, 2012

How could I embed a Google Maps API Javascrip on my Flex Application?I found some examples, but none of them worked for me.

http://javey.net/bike/map/player5/map.html?gpx=http://javey.net/bike/gpx/24-nov-2007.gpx&title=Sheldon.Road.Trail http://note19.com/2007/11/22/how-to-embed-google-map-in-flex/

View 3 Replies

Flash :: Flex - Google Maps API Custom Content

Oct 31, 2010

I am creating a little map app where you are given information, video and images regarding different campuses in a university. I am using the customContent method to insert video player object into the infoWindow but when I do this it gets rid of my text content and becomes the only visible thing to the user. How Can I work around this and have both text and video in the infoWindow? Demo link

[Code]...

View 1 Replies

Flex :: Google Maps For Flash Throws RTE In New Polyline()

Dec 3, 2010

I'm getting the following error with Google Maps API: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.google.maps.overlays::Polyline() Specifying the second constructor parameter does not help.

View 1 Replies

Google Maps In Flex Withiout Mxml Component?

Aug 14, 2011

How do I add google maps as Class into main.mxml withiout <maps:Map key="" sensor="" />

[Code]...

View 1 Replies

Flex :: How Does One Implement The Google Maps 3D API (or Similar) For Flex With A Local Map Cache

Aug 17, 2010

I am writing a Flex application for use on a private intranet with no external Internet access. I want to use Google's 3D Maps Flex API, but it must be connected to the internet to download map tiles on demand.

Is there a way to locally cache the 3D map tiles and data so that I can run this app without an internet connection? And if not, is there a 3D GIS that supports Flex integration and allows for a local map cache?

View 1 Replies

Flex :: Create A Flat Marker In Google Maps 3d Flash Api?

Oct 5, 2009

When using map3d, the default marker creation is always perpendicular to the viewport. How can I create a marker that lays down flat against the map? I can't use GroundOverlay because it becomes overly tiny when the map is zoomed out. How can I create a matrix3d object that will rotate/scale/skew my Marker's foreground DisplayObject so it remains flat against the map when in perspective mode?

View 1 Replies

Actionscript 3 :: Create Custom Marker In Google Maps For Flex

Mar 2, 2011

I have to create a marker with 3 triangles at 120 degrees with each other. The fill colour of the three triangles will be different (to be decided depending upon the value of some other variable).

Google Maps can accept DisplayObjects as markers. How do I go about creating one manually?

View 1 Replies

Flex :: Adding Google Maps Markers By An Address Instead Of Coordinates?

Apr 12, 2011

In my Flex project, can I add markers by its address instead of this:var myGeographicCoordinates:LatLng = new LatLng(myLatitude, myLongitude);for example add marker by "Paris, France"

View 2 Replies

Flex :: Google Maps - Enable / Disable GoogleMaps In A 3 Application?

Oct 13, 2011

I'm developing an application using the Google Maps API with Adobe Flex Builder 3. Wrote the "HelloWorld" code provided by the GoogleMaps Reference...

[Code]...

everything goes well but the application consist on a cartesian plane that, optionally, could have the GoogleMap displayed on the background. The point is that I don't know how to hide the map once it is loaded. I would like to load it only if I click on a checkbox
I came here after searching over the GoogleMaps Reference for some "enable/disable map" function, but I had no luck.

View 1 Replies

Flex :: Google Maps & Flex: Clearing Markers

May 11, 2011

I'm using Google Maps with Flex 3. I'm having problems clearing markers. Users can select which data they want marked on the map by selecting an item in a comboBox. I also have a button that clears the markers:

[Code]...

View 1 Replies

Actionscript :: Google Maps - Flex Multiple Markers Not Matching Tooltip Or Lat Lng?

Dec 17, 2011

I had this same issue when I created an application using google's javascript API and the solution was to have closure on the callback function creating the multiple markers.I can not seem to find an example for making multiple custom markers, with anything other than using some random math function to create the multiple markers.

GlobalVars is a class that contains static public var types to keep up with however many addressess, lats, lngs, etc...I have tried using markermanager but it has some issues that I finally just gave up on. Starting with

retrieveLatLngAddress.addEventListener(GeocodingEvent.GEOCODING_SUCCESS, function(event:GeocodingEvent):void{

This is where I begin geocoding by address, rather than using an httpservice, as I was doing before, but I ran into issues of one httpservice result would return faster than another, which would in turn place the wrong data with the wrong marker.

Obviously, I have not found a solution, because this way is doing the same thing.Question being, how can I retrieve multiple markers info and keep all the markeroptions in order with the information being returned.

Here's the code:

public function makeMultipleMarkers(destinationAllObj:Object):void {
removeRouteMarkers();
myMarkers = [];
GlobalVars.myIcon = [];

[code]....

View 1 Replies

Flex :: Do Google Maps Flash API Markers Fire Event When Added To Stage?

Apr 1, 2010

With the Google Maps Flash API, I want to add an event listener which fires when the Marker is added to the Map using
map.addOverlay();
Event.ADDED_TO_STAGE
is not fired, though it seems logical. What are the alternatives?

View 1 Replies

Flash :: Loading "maps" Rss From Google Maps?

Dec 16, 2009

I creating a flash app that loads a RSS of a plublic map with a custom route path and draws lines from the coordinates on a Away3D Sphere.It works preety well when I'm testing locally, but when I publish online, the app can't load the RSS. I think Google Maps disable access from other domains.Does anyone knows another way to access this map RSS directly from google? Now to fix this, I'm hosting the RSS.

View 2 Replies

AS 2 :: Use Google Maps In It?

Apr 12, 2010

Ive finished working on a A.S 2 flash website and now need to add google maps to it. Currently Google maps only seem to support A.S 3.

View 1 Replies

Add Google Maps To Contact Page?

Jan 25, 2011

I have a website completly done with flash How can I add google maps to my contact page using AS2?

View 6 Replies

Google Maps Embedded In Flash?

Aug 20, 2009

Does anyone know if it's at all possible to embedd a google maps image that's created using code generated by google? The Image is interactive, the main reason to embedd in flash as apposed to a flat image.
 
<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Swansea,+U K&sll=37.0625,-95.677068&sspn=49.357162,79.013672&ie=UTF8&split=0&t=k& ll=51.620361,-3.946495&spn=0.063948,0.102997&z=12&iwloc=A&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=Swansea, +UK&sll=37.0625,-95.677068&sspn=49.357162,79.013672&ie=UTF8&split=0&t= k&ll=51.620361,-3.946495&spn=0.063948,0.102997&z=12&iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>

View 1 Replies

ActionScript 3.0 :: Elevation In Google Maps

Apr 5, 2011

I've created the current code which takes an address and geocodes the location with a marker.I now need to find the elevation at that location and get an error during runtime in the output window of: "TypeError: Error #1009: Cannot access a property or method of a null object reference." It is on the line that says, "elevator.loadElevationForLocations(locationArray);".[code]

View 5 Replies

Flash :: Google Maps Api And Https?

Jul 14, 2010

I am using the google maps API with regular key (not premier).When connecting to my server with http, everything works fine, but when connecting with https i receive the following instead of map: initialization failed please check the API key swf location, version and network availability.Is that because it is not premier key? can I force the google maps API to use http instead of https so that I will receive the maps?

View 2 Replies

Google Maps (flash) - Using The MapTypeStyle?

Mar 21, 2011

I want to color or increase the the size of the inland border lines, is that possible?

View 1 Replies

Actionscript 3.0 :: Most Efficient Way To Use Google Maps?

Sep 30, 2009

I have a google map in my site, and have all the code in the main timeline. I'm pretty sure this is affecting my intro animation due to google maps importing. Is there an efficient way to do this, so that it won't affect the intro?[url]...

View 2 Replies

Actionscript 3.0 :: Preloading Google Maps API?

Jan 19, 2010

I have scoured the internet and I cannot find out how to preload my Google Maps API,

View 5 Replies

ActionScript 2.0 :: Google Maps In Flash

Sep 6, 2005

how close to a google maps like interface can be created in flash. Could this be a new opensource project?What the project needs:

-Be customizable via xml (load any map you want zooming options etc)
-Load maps dynamicaly acording to zoom level
-Easy to scale (this way it can be viewed in regular compters as well as mobile devices)
-Easy to plot points and save to db or xml file
-As you drag map to one side it would load map images to fill empty space created.

View 4 Replies

Actionscript :: Pan And Zoom Like Google Maps?

Aug 27, 2007

This website does an awesome job of controlling pan and zoom for the main movie:[URL].. What I want to do is something similar but also allow for the user to click and drag the larger picture.

View 4 Replies

IDE :: Displaying Google Maps In Flash

May 27, 2009

how do I get a location that I want in the API? Is this another piece of code I need to define in the API or actionscript.

View 2 Replies

IDE :: Google Maps In Offline AIR Application?

Jan 6, 2010

I am looking into building an AIR application that will show positions of locations and associated details in layers over maps. The positions will be entered into the application as GPS coordinates. The users of this application will only need to look at one country and will not always have internet access. Is it possible to do this with Google maps?Is Google maps the best solution for this?Do you know of other packages that would offer similar functionality to Google maps in Flex/Flash?

View 1 Replies

Test For Availability Of Google Maps Flash API?

Nov 19, 2009

I'm trying to write a test page which a customer can send us to identify whether they can use various parts of our site. Typical support stuff I guess.Anyway, the test for flash is straightforward enough, but can anyone suggest how I might test if they can access the Google Maps API on their browser?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved