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.




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
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
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.