28
Mar
07

Multiple Instances of the Yahoo Map- Part II

Hi,

Few days back i was trying to achieve the task of having multiple instance of yahoo map in an application;

I got the dirty workaround to this 😦

What i have done is :

Create an actionscript class that extend the YahooMapService class.

Create an instance of the class in a base state of the Flex Application file

Create a view stack with different views in this application file and each of the component that you are using in side the view stack must have a load map method that accepts the map object.

This method will load this map object in the container using the addChild method of the container.

One strange thing that i have noticed is every time you load the component in the view stack you have to make the yahoo map object null.

I hope this helps!

Cheers,

Anupam

P.S: If somebody have the better solution to this plz provide the ideas here.

Advertisements

4 Responses to “Multiple Instances of the Yahoo Map- Part II”


  1. 1 Andy Ziegele
    July 3, 2007 at 8:33 pm

    I can’t quite get this to work. Can you please explain “One strange thing that i have noticed is every time you load the component in the view stack you have to make the yahoo map object null.”? Do you create a new instance of the yahoo map object each time you call the load map method in the component?

    Thanks!

    -Andy

  2. July 4, 2007 at 8:42 am

    Yes Andy thats wat i m doing its pretty strange behaviour and its quiet quick and dirty solution to the problem.

    Do let me know if there are any more issues?
    Cheers!
    Anupam

  3. August 13, 2007 at 10:33 pm

    I couldn’t understand some parts of this article o.us poetry, but I guess I just need to check some more resources regarding this, because it sounds interesting.

  4. May 3, 2013 at 8:57 pm

    Your write-up provides confirmed helpful to me. It’s extremely informative and you’re simply certainly extremely well-informed of this type. You get opened our face for you to different thoughts about this specific topic together with interesting and sound written content.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Its Me

March 2007
M T W T F S S
    Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories

Blog Stats

  • 10,458 hits

My Links

Amazon Wish List

My Amazon.com Wish List

%d bloggers like this: