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
Similar Posts:
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
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
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
Dec 15, 2010
I want to set the map's size to the container's size, automatically. I'm using:
[Code]...
When the Flash movie begins, I do map.setSize(new Point(stage.width, stage.height)); on the map initialization. I'm using version 1.20 of the SWC component on Flash CS5 and AS3. However, when I compile the SWF, the player crashes. I've seen that with v1.8 of the API you can resize the map to the stage size with no problem.
View 1 Replies
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
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
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
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
Jan 31, 2011
I am changing over one of my projects from google maps to yahoo maps and was wondering who out there has experience with the yahoo maps api. Below you will see the code i was using with the google maps api to create custom markers using a library item as that marker. The library asset has some variables that need to be defined as you will see in the first part of my for loop. and this function needs to clear all the previously created overlays, before the for loop is run.
[Code]...
View 0 Replies
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
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
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
Aug 14, 2011
How do I add google maps as Class into main.mxml withiout <maps:Map key="" sensor="" />
[Code]...
View 1 Replies
Oct 13, 2009
I am working on a map for my company and have been using some tutorials and sample code I've found. All has been going well until I try to use an original marker. When I add the line of code into the marker object the map draws a blank.
so, this code works fine and uses the default marker when using the line below.
var m:Marker = new Marker(new LatLng(33.38298626887102, -86.67185000000000)); map.addOverlay(m);
But when I add the suggested code pasted below from Layers Magazine for adding an original marker, which is a movie clip in my library names 'marker', the map no longer works.
[Code]...
View 1 Replies
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
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
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
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
May 4, 2010
How do I apply AS3 mouseevent to the Markers?
ActionScript Code:
GEvent.addListener(marker, "mouseover", function() {markerClick()});
function markerClick():void {
trace("You clicked the map.");
}
View 0 Replies
Nov 7, 2009
I'm having an issue to display markers into google map. I use XML to parse those markers.
**Flash gives me that error msg:TypeError: Error #1009: Cannot access a property or method of a null object reference.However I can see Latitude and Longitude display while traced them...
Code:
package
{
import flash.display.Sprite;[code]....
View 1 Replies
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
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
Mar 21, 2011
I want to color or increase the the size of the inland border lines, is that possible?
View 1 Replies
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
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
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
May 20, 2010
I have a simple Map and geocoding sample in Flash using CS4.The problem is simple - I can retrieve a short list from the google search api, but when I try to generate the icons on the map using a loop, only the last icon is displayed. (ignore the house icon, it is generated earlier)
I feel I am missing something or made a stupid AS3 mistake (like treating it as if it was c#) - or even a stupid wood-for-the-trees mistake. The problem is in the last line of the code
import com.google.maps.services.ClientGeocoder;
import com.google.maps.services.GeocodingEvent;
import com.google.maps.LatLng;[code].....
View 1 Replies
Mar 23, 2011
I'm working on a project, written in AS3. I'm using the Google Maps API to load different maps, add custom markers, ... All that works, but I'd like to create something different. Imagine it being an application to create an itinerary. There are 10 markers on my map, and the user could click all of them to create an itinerary between those markers. I've tried with Polyline, but that only creates lines from one point to the other without following the actual roads. Then I've found out about the existence of "Directions" and "Route" in the Google Maps API, but I can't wrap my head around that. Or I'm doing something really wrong. Also, that is for one point to the other - mine needs to have multiple waypoints. I've found dozens of examples on how to do it with JavaScript, but the project HAS to be made in AS3. (Yeah, ... I know) If there's anyone who could give me a push in the right direction,
View 1 Replies
May 9, 2011
I am creating a project in Flash using the Google Maps API and docs. I'm trying to add a marker to the map, which is draggable but I don't want it to look like the standard Google Maps bubble-style marker. Is it possible to have a custom polygon or image but still keep the draggability?
View 2 Replies