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.


3 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. 2 digitallyinsane 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. 3 Daniel 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.

Leave a Reply




Its Me

 

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

Categories

Blog Stats

  • 5,496 hits

My Links

Amazon Wish List

My Amazon.com Wish List