Archive Page 2

26
Mar

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

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

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

 

August 2008
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

Blog Stats

  • 5,496 hits

My Links

Amazon Wish List

My Amazon.com Wish List