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