Panoramio API with several tags

459 views
Skip to first unread message

Chamnap

unread,
Dec 8, 2012, 11:33:49 PM12/8/12
to panora...@googlegroups.com
Hi all,

I was wondering the Data or Widget API support multiple tags or not. For example, the widget API as follow:

     widget = new panoramio.PhotoListWidget(
      "div_list_ex",
      { 'tag': ['Cambodia', 'Bank', 'Beach'] },
      {
        'width': 400,
        'height': 100,
        'columns': 5,
        'croppedPhotos': true
      }
    )
    widget.setPosition(0)

When I tried the above code, no error appears. Looking to the documentation, tag is a string to pass in. I'm wondering it is possible or not?

QuentinUK

unread,
Apr 1, 2013, 1:27:00 PM4/1/13
to
If you want each photo to have all 3 tags.

You could use the data api
Use JSON to get all the photos for each tag and them look for those photos in all 3 sets.
It may be a bit slow if there are lots of photos with any of the tags.

Adding the tags is a lot easier if you want to make a map with different tags, just add a tags layer for each of the tags you want.

Reply all
Reply to author
Forward
0 new messages