Actionscript 3 :: Load Marker Data To Google Flash Maps MXML Custom InfoWindow
May 12, 2011
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:
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?
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?
In Google Maps Flash API, When the user clicks, or hovers on a marker, is there a way to dispatch an event containing the ID or lat/lon so this info can be used by the application?
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?
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 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
I have made a custom icon for flash googlemaps; however, now the infowindow does not line up with the marker as it does with the default marker; my custom marker, mc_marker, is positioned with the 'point' at (0,0); I have been unable to find any rules for creating custom markers ... seems like a no-brainer;
I have a simple Google Maps API with external data loaded from XML file (location, lat, long, info etc.). I also have a custom marker as a MovieClip (marker_mc), which works fine, but I want to add a Dynamic Text Field (label_txt) to this MovieClip and load a simple data (<label>) to it from same XML file (distribubtion.xml), so as a result every location would have it's own label on the marker.I know how flash loads XML data, but what I don't know is how to include that in Google Maps API (if it's even possible).
I am working with google maps in flash, and i would like to know how to serve up my own image tile for the "we have no imagery at this zoom level..." error. I dont want to serve up an entire map of images - just for the times when google has no image does the tile layer base dispatch an event? (i couldnt find any in the api) is there a method that can be overridden by extending the tilelayerbase class
I'm using Google Maps with Flex 3. I'm using custom markers (custom icons) to mark places on the map. It works fine. The problem is that in some cases, I don't need a custom icon, I need the standard marker.
For example, how would I set condition C's icon to the standard marker:
public function iconSetter():void { if (condition A blah blah){myIcon=star; myPointsBuilder(); return;} if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}
[Code].....
I don't know how to revert to the default marker where I wrote "STANDARD MARKER".
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.
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 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?
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.
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 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 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 ?
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?
I want to make a *.SWF in which the user inserts an address in the first frame, then in the second frame Google Maps shows that place. The problem is that I don't know how to zoom on a point without LatLng parameter. Probably, Geocoding would be the solution, but as I said earlier, I don't understand how it works in Flash. Could someone please either post a few lines or direct me to an example of geocoding in Flash?
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.
I'm using the google maps API v3 with flash and it works fine on one of my websites.I transfered it to another website and changed the API key, but all I see is the defaultbackground color with no error message. Unfortunatly, I cannot access the flash source code.Is there a way to debug the application or see some error messages without the source code?