| I just uploaded a new tutorial that guides you through the basics of creating a Google Maps application in Flex. In addition the tutorial also covers the use of PHP to retrieve data from a MySQL database. The end result is a map of Afghanistan which shows custom image markers at certain locations that were important in the war. This is a great skill to have as I was asked frequently to do map stuff back when I did real work. |
Lee








“The end result is a map of Afghanistan which shows custom image markers at certain locations that were important in the war.”
Bad topic…what do you think about WAR ? Do you know anything about Afghanistan ? Do you support the U.S Policy ? Is Obama the savior of the (U.S) Nation ?
Anyway a good tutorial as always.
“This is a great skill to have as I was asked frequently to do map stuff back when I did real work.
I wish I didn’t do “real work…”
@Oliver This map simply contains factual data about the war. I can’t stand politically correct nonsense like your comment. I only discuss my own thoughts on such matters with friends and not on my blog. Lighten up.
@TK Well I mean real project work. Trust me I still have to work
Really great tutorial I love it, I’m glad that it considers flex
Great new tut, i actually saw it popping up when i just checked the site. Nice moment, i’ll never forget it
greetings
@oliver
what an idiotic comment
appreciate the effort lee…as always.
Great as always, thanks again!
Will we ever see these tutorials being moved over to the Adobe TV platform?
“… when I did real work”
Nice tutorial btw
Great tut lee! Love it! ^^ This will help me alot!
Please also note there’s an excelent API for Google-Maps in Flash (non-flex). It’s allmost exactly the same, except it doesn’t have data binding etc. Good stuff, nice documentation and quick-starts a plenty.
@jj,
if you’re stone blind,that’s ok.But use your brain before you comment.
I remember trying to integrate google maps when flex 2 was released, the support for AS3 was terrible, zooming and marker capabilities were bog standard, i had great ideas to create city tour applications but alas that time has now gone :/
“… when I did real work†… hahaha
Nice one Lee!
3 quick questions:
1) Is this API Flex only or could I do something in CS3 with it?
2) Can you capture CLICK events on your custom (or default) markers?
3) Does it have to fill the whole stage or could you integrate it in a smaller DisplayObject?
Thanks so much
Part 2 please? The one that saves the coordinates to database when you click on the map
Great tutorial. For those flashy ppl out there I made a small demo in CS3, I will try and get the code a bit cleaner later for download. Click the link above.
@michael nice work. Could you post a link to your source files? Thanks!
Lee Brimelow is on fire with the tutorials. Thank the heavens.
Hey Lee,
Is there a way to connect the dots on the map? Is there something in the API you can call to do this. I’d like to do a tour map and incorporate your plot points.
Greg
@Curran
Here is how you can make this work in Flash.
1. If your using Flash and not Flex, take th .swc file for flash and copy it into your components library. It should be located at \C:Program FilesAdobeAdobe Flash CS4CommonConfiguration\. You should have access to the API now that you copied that file.
2. Google Maps has its own built in Events. So look in the documentation for the \MapMouseEvent\.
3. It does not have to take up the full browser. This will be simple for you I’m sure when you get it working in Flash.
@Troy -> Thanks for the info!
I found some more great info at
http://code.google.com/apis/maps/documentation/flash/tutorial-flash.html
Lee, is that possible to do this with coldfusion, i just used coldfusion i just want to know if can be with cfm
Hey Everyone,
This GGLMP feature is great! I made a nice tour with moving maps and popping information about exact locations..
Was something like:
——————–
var marker:Marker = new Marker(latlng, new MarkerOptions({draggable: true}));
var options:InfoWindowOptions = new InfoWindowOptions({
customContent: new InfoWindowMapComponent(latlng),
customOffset: new Point(2, 3),
width: 640,
height: 440,
drawDefaultFrame: true
————————
Regards,
Rob
Great Job Lee !
I use your tutorial for design a solution with geocoding and I ask myself: how to add information from my database (“name” and “address” in my case) to all markers (dynamically with OpenWindowInfo)
Thanks !
Now is OK ! I check my address with a geocoder and I store my latitude and Longitude (LatLng) into my database. After I can place my marker dynamically on my map with “name” and “address” (I use AMFPHP in my case).
Thanks !
how do u do the same application as desktop application …
anyone ??
Hi, Looks like a cool tutorial. i don’t suppose you have it as a pdf do you?
Great tutorial! Thank you.
Great tutorial. nice addition to this would be to show how to get variables for use with the map “application”.
An example would be get the map api from the mysql database, map sizes and other stuff stored externally, pulled in by the app and used by the app.
How can I connect database mysql with ColdFusion