Archive Page 2

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.

26
Mar
07

Multiple Instances of Yahoo Maps in a Single Page

Hi,

I am trying these thing for a quiet a long time but without any success, When I try to put more than one instance of yahoo map on a single page it is only showing one map instance and the other instance is not loading :(

I have discussed this with the author of the AS3 toolkit of yahoo maps

U can see it here

http://blog.scottgmorgan.com/php/default.php?topicID=170&contentID=739&rowID=155

If any one has any input on this please comment here.

Thanks,

Anupam

13
Mar
07

Yahoo Maps AS3 Communication tool kit

I am playing with the Yahoo Maps communication tool kit since it has released and I was pretty disappointed on seeing that it doesn’t had the CustomPoiMarkerClick event.

Then I started looking in the code which is relased by yahoo maps as a wrapper to the existing Flex 1.5 API

I have just modified the method in that source and i am posting it here so it might be useful to ppl working on Mashups.


function onPOIClicked(ev:Object) {
var rtnObj:Object = new Object();
var myMarker:Object = ev.marker;
for (var p in myMarker) {
rtnObj[p] = myMarker[p].toString();
}
for (var q in ev){
if (typeof(ev[q]) != 'movieclip') {
rtnObj[q] = ev[q];
}
}
EIBuffer.addCall({method:swfDomId + ".onPOIClicked" + id, data:rtnObj});
}

After changing the method in the as2map.fla file which is under source/as2 directory of yahoo library source.

I was able to get all the marker details like ‘title’, ‘description’,'index’ and the usual stuff like latlon information etc.

Hope that helps,

Anupam

13
Mar
07

Hello world!

Hi guys,

This is the first post that i m writing

I am very enthusiastic about the Web 2.0 and RIA so trying to write my adventures with it.

Watch out this space for more stuff!

Cheers!
Anupam




Its Me

 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories

Blog Stats

  • 8,028 hits

My Links

Amazon Wish List

My Amazon.com Wish List