Actionscript 3 :: Google Maps API - Make An Interactive Overlay?
Jun 7, 2011
I have a Google Map in my Flash project with a polygon overlay. Is it possible to add to that overlay an EventListener so it triggers a function? All I can find in the API reference is something called "MapMouseEvent" but I can't figure out if that is what I need or how it works.
how to identify which marker overlay is being clicked.
I've looked up solutions online and the only thing that ever traces back for me is [object Marker] I need a way to identify the marker icon and manipulate the icon.
this is the marker code:
ActionScript Code: function createMarker(latlng:LatLng, number:Number, tip, myTitle, myContent):Marker { trace(this);
I am looking for a tutorial or a walk through to make an interactive Storyboard withinteractive maps, videos, audio files, play/pause button. And should be able to convert in multiple languages
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]
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.
I want to use semi transparent circles to show the intensity of the effect by altering the radius of the circle and animate it while placing them. for example it appears as a dot and then grows to the intended size in fraction of a sec.
I could see some functions in javascript API but not in Flex. Saw some examples that uses polygon. But i dont want to plot all 360 points for just one circle.
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.
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]
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?
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]...
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.
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.
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?
I have created a mobile application based on a theme park, a key feature of the assignment is an interactive map, i have the map working with no worries its a draggable map and you can move around it, the problem arises when i need to place buttons on the map itself. I need the buttons on the map to stay in place when the map is dragged about so they can be click on for certain areas on the map?
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?
I'm writing a ticket-shop-system atm for reserving tickets for various concerts.What I have is a php-backend and a webpage that shows a .swf with some actionsscript-3 code in it, to draw in flash some sort of map and make available seats clickable for the end-user.The problem with this solution is, that there are quite large halls and just making the seats smaller isn't the right solution.
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
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,
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?
I created a map with the Google Map API For Flash that shows directions. It creates a line between the 2 addresses and gives turnbyturn directions.
This is working perfectly in Flash test mode locally but once i put it online The map still works but the directions dont show and i get the Failure status 400.
Does anywone know whats the problem here? I'ts driving me crazy just because its working locally but not online.
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 ?
searched for this but dont exactly know how to name it. instead of geocoding this address '2880 broadway, New York, NY', i would like to geocode the name of a business (restaurant, cafe, etc..) like 'Seinfeld diner' anybody knows how to name that? or which functionality in the API i need to look for?
I have a site fully designed using as3 classes. My design is based on a liquid layout. All the assets and elements dinamically generated are inside a container. When the browser resizes, the container relocates itself in a determinate position. I put the google API inside a Sprite as a holder. This holder is generated dinamically. When the API is visible and the browser resizes, all the content moves away.
If the zoom value of the setCenter method is 1, the map center itself on the browser, avoiding any method. If the value is higher, the content goes away according to the zoom value. Exist any conflict between this api and the resize stage event? How is possible to avoid the api takes control over the movie?