
Well, that took me longer to get around to than I expected
Please feel free to download the source for the pirate skin of the Yahoo! Maps API. The zip contains the map FLA/SWF, the relevant class files, and the FLA/SWF for a custom marker. This is a little more robust than the example I posted a few months ago. I refined the graphics a bit, but also included a search box that gets X to mark the spot.
A couple notes about the file:
Classes:
- Pirate Map: This is the main application class, and it is attached to the single movie clip on the stage when you open the main FLA. It manages the skin, and listens to the child elements to implement the search and zooming results.
- MapZoom: This manages the internal function of the spyglass and is pretty specific to the spy glass approach to zooming. The actual value to zoom to is broadcast out to listeners so that the application can decide what to do with it.
- YLocationSearch: This class manages a textfield, button and load indicator (along with the various success/error events) for searching for a location. search requests are broadcast out so the application can decide what to do.
Skin filters and Color Transformations:
Off to the right of the stage in the Pirate Map movie clip there is a broken apart vector image of a map. All of the filters that I want to apply to the dynamic map are actually applied to this colorTester movie and then programmaticly copied to the map by the PirateMap class in the applyFilters function.
By setting it up this way, I can see the filters and adjust them as a designer but take advantage of them as a developer. I always hate writing out code for doing setTransform and for filters. I almost never just write them anyways, I would apply them to a symbol, write down the values and then fill out the code. now I’m just saving a step and making the design step a lot easier too.
Digg this!
February 7th, 2006 at 3:42 am
[…]
Latest posts February 7, 2006: Radar Maps Source February 6, 2006: Pirate Maps Source January 31, 2006: Flash for the Gaming Industry […]
February 7th, 2006 at 10:01 am
[…] cheduled “Justin Everett-Church’s Blog” Update: Justin’s famous Flash pirate map skin for the Yahoo! Maps API has been […]
February 19th, 2006 at 8:13 pm
[…] #038; Design Pattern Library February 7, 2006: Radar Maps Source February 6, 2006: Pirate Maps Source January 31, 2006: Flash for the Gaming Industry […]
February 22nd, 2006 at 3:38 pm
At first i was under the impression that the mapping UI from zillow.com was created out of the google map API. But when i look at your creation of flash and yahoo map API it looks more like zillow.com used yahoo map API. Do you know whether zillow.com used the yahoo api?
And also, i want to use my own satellite images. I can do that with google map API. Can i also use my own satellite images with yahoo’s mapping API?
I appreciate any help.
Thanks,
Emile
August 21st, 2006 at 3:58 pm
cool stuff…does anybody know how to change the skins in google maps?
September 12th, 2006 at 11:39 pm
[…] egions. Sure it lacks some features, but who isn’t in Beta these days? Besides, the source code has been provided. Someone is bound to improve it further ; […]
October 9th, 2006 at 5:29 pm
In your PriateMap.as Class you are using an IMap package. Where did you find documentation on this?
import com.yahoo.maps.api.IMap;
October 27th, 2006 at 11:40 am
Any chance you could do a full tutorial on how you did this? Have just discovered the Yahoo Maps Flash API and would love to know more about how to manipulate it in similar ways to how you have. Its a fantastic idea.
February 9th, 2007 at 8:07 am
I am in awe…Great Work!!!
March 18th, 2007 at 3:21 pm
I think these blog is really useful for new comers and Excellent resource list.
It´s a very interesting Blog and simple answer of many questions.
Keep up the good work!
Thanks it helps me a lot…
March 30th, 2007 at 7:45 pm
On personal opinion, I find this very helpful.
Guys, I have also posted some more relevant info further on this, not sure if you find it useful: http://www.bidmaxhost.com/forum/
April 19th, 2007 at 6:59 am
I searched a long time for such an great article. Thank you
June 13th, 2007 at 6:20 am
Thanks for very interesting article. btw. I really enjoyed reading all of your posts. It’s interesting to read ideas, and observations from someone else’s point of view… makes you think more. So please keep up the great work. Greetings
June 25th, 2007 at 10:26 pm
I am using Skin filters and Color Transformations and it works very good. Thank you
August 1st, 2007 at 6:47 am
Hey Justin - wildly awesome! Very nice application! Any chance you’ve played around with the Google Maps API? I would love to see if this can be applied to Google. Any thoughts are greatly appreciated!
Thanks and keep the innovations coming!!
September 2nd, 2007 at 6:57 pm
Latest posts February 7, 2006: Radar Maps Source February 6, 2006: Pirate Maps Source January 31, 2006: Flash for the Gaming Industry
September 14th, 2007 at 12:42 am
Thanks for information.
September 18th, 2007 at 6:01 pm
Veryy Good Sitee Thanks You..
September 21st, 2007 at 6:20 pm
thank you for good article
September 23rd, 2007 at 8:39 am
Sounds like a good show, hope Sebastian found his crankyness again. He`s been slipping off the scale lately so Johns had to pick up the pace,and we all know he can do that very well. Great work!!!!.
September 26th, 2007 at 2:47 pm
That´s really great. I tried and it looks fantastic. Thanks for this helpful article !!
September 27th, 2007 at 2:12 am
thank you friendd
October 8th, 2007 at 10:46 am
I think these blog is really useful for new comers and Excellent resource list.
It´s a very interesting Blog and simple answer of many questions.
Keep up the good work!
Thanks it helps me a lot…
October 17th, 2007 at 9:40 am
Great exercise for your brain, I wonder if perception is a skill that someone can improve.
October 27th, 2007 at 9:28 am
I am in awe…Great Work Great exercise for your brain, I wonder if perception is a skill that someone can improve
October 30th, 2007 at 4:07 pm
like a google map yea
but we can easly zoom in ..
but there is no Skin filters
November 2nd, 2007 at 2:36 pm
thank you very much nice site
November 2nd, 2007 at 2:37 pm
great site. thanks
November 5th, 2007 at 12:36 pm
By the way, Jeremiah, double-clicking on a word is supposed to select that word. And if you don’t let go after the second click, you can drag to select the whole sentence or paragraph. It’s very handy when you copy and paste a lot.
November 7th, 2007 at 7:32 am
wow
super
November 7th, 2007 at 2:28 pm
mylesef.com
November 8th, 2007 at 11:37 am
Thank you for this blog, I spent my time effectivelly browsing it!
November 9th, 2007 at 2:56 pm
thanks for everythıng
November 12th, 2007 at 10:17 am
I think these blog is really useful for new comers and Excellent resource list.
It´s a very interesting Blog and simple answer of many questions.
Keep up the good work!
Thanks it helps me a lot…
November 26th, 2007 at 11:35 am
I read it and i think you right.
November 26th, 2007 at 12:12 pm
chat
November 28th, 2007 at 3:29 am
thanks
November 28th, 2007 at 2:09 pm
Hi.
Good design, who make it?