Showing only my geolocated photos on a map in Blogger

335 views
Skip to first unread message

HeKaFoto

unread,
Feb 4, 2012, 2:39:06 PM2/4/12
to panoramio-que...@googlegroups.com

I would like to use the Panoramio Widget Api in my Blogger blog to show a map with only my geo-located photos. I used following code:

<iframe src="http://www.panoramio.com/plugin/?user=12345&amp;lt=51.21570&amp;ln=4.47067&amp;z=2&amp;k=0" width="250px"  height="250px" ></iframe>

Apparently filtering by user_id did not work . neither did filtering by tag.

What am I doing wrong?

hvbemmel

unread,
Feb 4, 2012, 2:53:42 PM2/4/12
to panoramio-que...@googlegroups.com
moved to API forum

QuentinUK

unread,
Feb 5, 2012, 12:44:57 PM2/5/12
to panora...@googlegroups.com
Please see my previous response to a similar question: How can I show only my photos on a map.
Message has been deleted

QuentinUK

unread,
Feb 5, 2012, 1:34:36 PM2/5/12
to panora...@googlegroups.com
I have put the above code on Google Hosting and so the following iFrame should work ( ie It works when I test it)

<iframe style="margin: 10px"
src="http://square-shot-group.googlecode.com/files/singlemap.html?lat=51.2139&amp;lng=4.4718&amp;zoom=10&amp;user=6613512"
frameborder="0" width="400" height="400" marginwidth="0" marginheight="0"> </iframe>


ps Clicking the link brings up a map with your photo. 

HeKaFoto

unread,
Feb 7, 2012, 4:52:34 AM2/7/12
to panora...@googlegroups.com

Thanks Quentin for replying, unfortunately your suggestion does not bring a solution.
It seems to me I cannot access the Google Hosting site from my computer. Applying your suggested code produces a map with photos not filtered for my user-id, and changing the coordinates has no effect either. These modifications do not alter the displayed result, neither by accessing the website directly via the url, nor via an iframe from my blog.

I also tried to implement the approach suggested by  http://www.panoramio.com/api/data/api.html:  The code is: http://www.panoramio.com/map/get_panoramas.php?set=public&from=0&to=20&minx=-180&miny=-90&maxx=180&maxy=90&size=medium&mapfilter=true  (where public would be replaced by user id number)

When applying this code I got as reply a message that the php extension is unknown. I have a 2011 HP computer running under windows 7. Having to buy an additional program is no solution, my blog readers wouldn’t do this.

Hoping somebody can help me, thanks in advance

junk0128

unread,
Feb 7, 2012, 5:35:47 AM2/7/12
to panora...@googlegroups.com

QuentinUK

unread,
Feb 7, 2012, 5:56:45 AM2/7/12
to panora...@googlegroups.com
When I click on this link my computer receives a text file with the information about the photos as expected. There is no error message. So, I do not see what is wrong.

Message has been deleted

junk0128

unread,
Feb 7, 2012, 11:40:43 PM2/7/12
to panora...@googlegroups.com
I am checking that your code operates by Blogger.
Reference: My Blogger

QuentinUK

unread,
Feb 7, 2012, 11:45:53 PM2/7/12
to panora...@googlegroups.com
It may be due to the mime-type not being set correctly on Google Host, I think you have to use SVN to do this.


QuentinUK

unread,
Feb 7, 2012, 11:48:37 PM2/7/12
to panora...@googlegroups.com
I see that works OK. You are hosting the file on a different site. Do you know whether that site sets the mime-type for files?

junk0128

unread,
Feb 8, 2012, 2:20:47 AM2/8/12
to panora...@googlegroups.com
I do not know SVN.  And it is not required.  I only experimented.
I already have my homemade HTML template.

junk0128

unread,
Feb 8, 2012, 4:36:29 AM2/8/12
to panora...@googlegroups.com
Is it consulted here?
It is written about MIME of Googlecode.

If you see plain text instead of HTML, you probably screwed up the svn:mime-type. Go back and fix that.

QuentinUK

unread,
Feb 8, 2012, 4:11:33 PM2/8/12
to panora...@googlegroups.com
I've tried it with another similar site called GitHub, they have an option called Pages which does this.


The file is a bit different as it allows multiple users and/or tags, code on this Forum here.

With this code 
<iframe width="520" height="450" frameborder="0" style="margin-left: 20px; float: right" src="http://cloud.github.com/downloads/QuentinUK/quentinuk.github.com/userstagsmap.html?user=2419040,1597930&tag=Amiens,17mm&lat=52.052490&lng=0.494385&zoom=6"></iframe>

[ps If you view the map from a browser directly, you can move the map and zoom in and out till it you get the position OK, then enter javascript:alert(getPos()); into the browser address bar to display the lat, lng and zoom parameters.]

QuentinUK

unread,
Feb 8, 2012, 5:40:44 PM2/8/12
to panora...@googlegroups.com

junk0128

unread,
Feb 8, 2012, 9:16:08 PM2/8/12
to panora...@googlegroups.com
It used. Multiple users is good.
The version of you and me was put on the blog.
Two person's "photos on map"
Reply all
Reply to author
Forward
0 new messages