Search the web
Sign In
New User? Sign Up
tagmaps · TagMaps developer support
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Capturing which tag the mouse is over   Message List  
Reply | Forward Message #13 of 72 |
Re: Capturing which tag the mouse is over

Hi folks,
Good news on this -- yesterday we announced on the Yahoo! Developer Network blog that the embeddable version of TagMaps now makes a JavaScript callback to the page where you have it embedded. In the callback function, you can implement JS code to do whatever you want -- the TagMap will pass the tag selected by the user, along with the tag id (the guid field in the tag feed xml), the lat/long of where the tag is placed on the map, as well as a bounding box of the current map view (upper left and lower right corner lat/long). See the Badger Callback documention for more details.

I build a demo of this functionality, which I like to call the San Francisco Neighborhood Explorer, which shows the neighborhoods of San Francisco as tags on the map. Note that I created a custom tag feed using a static xml document  as my tag feed, as opposed to a dynamic feed that supplies tags according to the lat/long of the current map view, as the default tag feed does. A static tag document is limited, but it is a lot easier to create than a dynamic web service feed, and may be a good way to go if you just want to show tags for a single city or single zoom level. See the custom tag feed documentation  for more details on creating your own feed.

So with new callback feature, when the user selects a neighborhood tag, the TagMap calls my JS function, where I implemented code that looks up info about that neighborhood from Wikipedia, Craigslist, Flickr, Y! Video, and Y! Answers. I use JSON for the Web service calls, and then display all that info on the page. And by the way, I made heavy use of Yahoo! Pipes, an extreemly cool new service that lets you remix and rewire any Web service. If you are building mashups, you need to check this out.

We hope this feature gives you what you need to create  some cool new apps, we're looking forward to seeing what you come up with!

Shane Ahern
Research Engineer
Yahoo! Research Berkeley



--- In tagmaps@yahoogroups.com, "jeanniey" <jeanniey@...> wrote:
>
> Hi Patrick,
>
> Good points. We are working on that and have a solution that we are
> testing out. Please stay tuned.
>
> Thanks!
> Jeannie
>
> --- In tagmaps@yahoogroups.com, "metade111" metade@ wrote:
> >
> > Hi,
> >
> > I've been playing with the TagMaps API and I've started building a
> demo with it. I'd really like
> > to have images displayed when users highlight a tag, but I
> understand that this functionality
> > hasn't been released yet in the public version of the widget.
> >
> > Is it possible to somehow capture which tag is being higlighted,
> e.g. using Javascript, so that
> > I could then implement some other mechanism to display images for
> that tag?
> >
> > Thanks,
> >
> > Patrick
> >
>


Fri Feb 23, 2007 9:53 pm

shaneahern
Offline Offline
Send Email Send Email

Forward
Message #13 of 72 |
Expand Messages Author Sort by Date

Hi, I've been playing with the TagMaps API and I've started building a demo with it. I'd really like to have images displayed when users highlight a tag, but I...
metade111
Offline Send Email
Jan 22, 2007
2:46 pm

Hi Patrick, Good points. We are working on that and have a solution that we are testing out. Please stay tuned. Thanks! Jeannie ... demo with it. I'd really...
jeanniey
Offline Send Email
Jan 26, 2007
11:48 am

Hi folks, Good news on this -- yesterday we announced on the Yahoo! Developer Network blog ...
shaneahern
Offline Send Email
Feb 23, 2007
9:54 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help