Google Maps In Flex Withiout Mxml Component?
Aug 14, 2011How do I add google maps as Class into main.mxml withiout <maps:Map key="" sensor="" />
[Code]...
How do I add google maps as Class into main.mxml withiout <maps:Map key="" sensor="" />
[Code]...
I tried to adopt this recipe by shane doolan see below(source: [URL]). I could pull data from mysql with php (like so [URL]) and overlay on the map however I couldn't get the data load too the mxml custom infowindow when clicking on markers. Here's the mxml application:
[Code]...
I've been trying to create a custom mxml component that extends another custom mxml component (i.e.MyMXMLComponent -> BaseMXMLComponent -> Group). I've been reading that trying to add visual children to MyMXMLComponent caused error with Flex 3 but that's no longer the case with Flex 4.
What I want to know is whether this is a supported/fixed/documented feature of Flex 4? or just some undefined behavior in Flex 4 that may get changed with future updates?
if this is supported and documented feature, does anyone have link pointing to adobe document stating it as such?
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 RepliesI 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 RepliesA Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only.
eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to pull the data and refresh the dataprovider of repeater )
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 RepliesHow 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/
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]...
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 RepliesI 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?
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 RepliesI 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?
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 RepliesI'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.
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]...
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]....
I am trying to override a Button class, i have a few properties which i wish directly initialise with the mxml description of the component, like :[code]which function is triggered ( in order to override it ) when all properties with mxml description is fully initialised with their values ?
View 1 RepliesWith 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?
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 RepliesI have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.
View 4 RepliesI 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
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 RepliesI have a website completly done with flash How can I add google maps to my contact page using AS2?
View 6 RepliesDoes 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>
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 RepliesI 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 RepliesI want to color or increase the the size of the inland border lines, is that possible?
View 1 RepliesI 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 RepliesI have scoured the internet and I cannot find out how to preload my Google Maps API,
View 5 Replies