<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/9.9.9" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Latest developments</title>
	<link>http://www.panoramio.com/blog/latest-developments/</link>
	<description>Development of Panoramio, a mash-up of Google Maps and geopositioned photos</description>
	<pubDate>Fri, 29 Aug 2008 22:52:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=9.9.9</generator>

	<item>
		<title>by: Joaquín Cuenca Abela</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-160</link>
		<pubDate>Wed, 25 Jan 2006 21:06:58 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-160</guid>
					<description>Hey, great little script Johan!

Oh, btw, I have been following your blog for a while. Great work with your &lt;a href="http://ecmanaut.blogspot.com/2006/01/svg-challenge-taken.html" rel="nofollow"&gt;SVG Challenge&lt;/a&gt;. Just in case you're interested, I think the font Scott used on its chart is Trebuchet MS bold.

The lack of subpixel positioning in firefox will make the rendering worse than the photoshop's one, but you will get closer than with your current font.</description>
		<content:encoded><![CDATA[<p>Hey, great little script Johan!</p>
<p>Oh, btw, I have been following your blog for a while. Great work with your <a href="http://ecmanaut.blogspot.com/2006/01/svg-challenge-taken.html" rel="nofollow">SVG Challenge</a>. Just in case you&#8217;re interested, I think the font Scott used on its chart is Trebuchet MS bold.</p>
<p>The lack of subpixel positioning in firefox will make the rendering worse than the photoshop&#8217;s one, but you will get closer than with your current font.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johan Sundström</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-159</link>
		<pubDate>Tue, 24 Jan 2006 16:38:00 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-159</guid>
					<description>By the way, I think you might like &lt;a href="http://ecmanaut.blogspot.com/2006/01/google-maps-to-panoramio-user-script.html" rel="nofollow"&gt;my latest Greasemonkey user script&lt;/a&gt;. :-)</description>
		<content:encoded><![CDATA[<p>By the way, I think you might like <a href="http://ecmanaut.blogspot.com/2006/01/google-maps-to-panoramio-user-script.html" rel="nofollow">my latest Greasemonkey user script</a>. <img src='http://www.panoramio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joaquín Cuenca Abela</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-158</link>
		<pubDate>Tue, 24 Jan 2006 14:55:32 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-158</guid>
					<description>Oh, btw, it should be noted that I didn't remembered until your post getLowestZoomLevel, that's why I searched in the google maps group, and it seems (judging by the solutions I found) I was looking at the wrong place :)</description>
		<content:encoded><![CDATA[<p>Oh, btw, it should be noted that I didn&#8217;t remembered until your post getLowestZoomLevel, that&#8217;s why I searched in the google maps group, and it seems (judging by the solutions I found) I was looking at the wrong place <img src='http://www.panoramio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joaquín Cuenca Abela</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-157</link>
		<pubDate>Tue, 24 Jan 2006 14:52:04 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-157</guid>
					<description>If you can do it in javascript, then yes, you can use getLowestZoomLevel.
I'm however reusing the main page for showing the user photos, and the only data that I can pass to the home is the center, the zoom, the user number, etc. I don't want to add many more arguments (maxLng, minLng, maxLat, minLat).

One could argue that you can call the above javascript if the user number is different from 0, but that will break somewhat backwards compatibility and complicate even more the startup of the home page. Currently it has to decide what coordinates to take: those passed in "get" like params for backwards compatibility with old links, those passed in the hash (for new links), those stored in the cookies, or a mix of these three? I was not feeling like adding another layer of possible coordinates.

On the backwards compatibily problem, right now a link to www.panoramio.com/#user=x directs the user to a map in the position and the zoom that he was using last time he visited Panoramio, showing only x's photos. Not to the center of x's photos. It's not a big deal, but together with the previous point, it convinced me that it was best to just put the coordinates directly in the link.</description>
		<content:encoded><![CDATA[<p>If you can do it in javascript, then yes, you can use getLowestZoomLevel.<br />
I&#8217;m however reusing the main page for showing the user photos, and the only data that I can pass to the home is the center, the zoom, the user number, etc. I don&#8217;t want to add many more arguments (maxLng, minLng, maxLat, minLat).</p>
<p>One could argue that you can call the above javascript if the user number is different from 0, but that will break somewhat backwards compatibility and complicate even more the startup of the home page. Currently it has to decide what coordinates to take: those passed in &#8220;get&#8221; like params for backwards compatibility with old links, those passed in the hash (for new links), those stored in the cookies, or a mix of these three? I was not feeling like adding another layer of possible coordinates.</p>
<p>On the backwards compatibily problem, right now a link to <a href="http://www.panoramio.com/#user=x" rel="nofollow">www.panoramio.com/#user=x</a> directs the user to a map in the position and the zoom that he was using last time he visited Panoramio, showing only x&#8217;s photos. Not to the center of x&#8217;s photos. It&#8217;s not a big deal, but together with the previous point, it convinced me that it was best to just put the coordinates directly in the link.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johan Sundström</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-156</link>
		<pubDate>Tue, 24 Jan 2006 14:32:40 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-156</guid>
					<description>Oh, I thought it was just a simple

var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 );
var delta = new GSize(maxLng - minLng, maxLat - minLat);
var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize);
map.centerAndZoom(center, minZoom);

or &lt;code&gt;map.getBoundsZoomLevel&lt;/code&gt; in forthcoming API version 2.31.</description>
		<content:encoded><![CDATA[<p>Oh, I thought it was just a simple</p>
<p>var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 );<br />
var delta = new GSize(maxLng - minLng, maxLat - minLat);<br />
var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize);<br />
map.centerAndZoom(center, minZoom);</p>
<p>or <code>map.getBoundsZoomLevel</code> in forthcoming API version 2.31.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joaquín Cuenca Abela</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-155</link>
		<pubDate>Sat, 21 Jan 2006 15:28:59 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-155</guid>
					<description>I implemented a zoomToBounds like feature, but in PHP.

The methods I found on the google maps discussion group were "start proving zooms untils you find one in which all the markers fit" (in javascript).

That's extremelly inefficient. If you know the size in pixels of your map you can do much better.

I derived the equation:

$zoom = ceil(25 + max(log($lt_delta / $map_height / 180, 2), log($ln_delta / $map_width / 360, 2)));

to find the zoom in function of the latitude / longitude delta you want to enclose.

I'm putting it here in case it helps somebody.

Cheers,</description>
		<content:encoded><![CDATA[<p>I implemented a zoomToBounds like feature, but in PHP.</p>
<p>The methods I found on the google maps discussion group were &#8220;start proving zooms untils you find one in which all the markers fit&#8221; (in javascript).</p>
<p>That&#8217;s extremelly inefficient. If you know the size in pixels of your map you can do much better.</p>
<p>I derived the equation:</p>
<p>$zoom = ceil(25 + max(log($lt_delta / $map_height / 180, 2), log($ln_delta / $map_width / 360, 2)));</p>
<p>to find the zoom in function of the latitude / longitude delta you want to enclose.</p>
<p>I&#8217;m putting it here in case it helps somebody.</p>
<p>Cheers,
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joaquín Cuenca Abela</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-154</link>
		<pubDate>Fri, 20 Jan 2006 22:25:33 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-154</guid>
					<description>Ops, my fault.

To add insult to injury, I even remember an old bug in mozilla about using alt text for tooltips if there was no title (afair it degenerated on a big flamefest).

I'll patch it with the next row of fixes.

Thank you Johan!</description>
		<content:encoded><![CDATA[<p>Ops, my fault.</p>
<p>To add insult to injury, I even remember an old bug in mozilla about using alt text for tooltips if there was no title (afair it degenerated on a big flamefest).</p>
<p>I&#8217;ll patch it with the next row of fixes.</p>
<p>Thank you Johan!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johan Sundström</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-153</link>
		<pubDate>Fri, 20 Jan 2006 21:22:13 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-153</guid>
					<description>Actually, you have an alt attribute saying that. The alt attribute is for an alternative representation of the image to non-image-rendering browsers, and will not be rendered by web standards compliant browsers under any other circumstances. Internet Explorer (and perhaps other browsers too), incorrectly renders these as captions on hovering the element. The attribute standardized to have that effect is "title", which will work in Mozilla and Opera too. While I am not nearly standards advocate enough myself to mind those alt attributes, I would suggest adding the title attribute too.</description>
		<content:encoded><![CDATA[<p>Actually, you have an alt attribute saying that. The alt attribute is for an alternative representation of the image to non-image-rendering browsers, and will not be rendered by web standards compliant browsers under any other circumstances. Internet Explorer (and perhaps other browsers too), incorrectly renders these as captions on hovering the element. The attribute standardized to have that effect is &#8220;title&#8221;, which will work in Mozilla and Opera too. While I am not nearly standards advocate enough myself to mind those alt attributes, I would suggest adding the title attribute too.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joaquín Cuenca Abela</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-152</link>
		<pubDate>Fri, 20 Jan 2006 18:43:27 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-152</guid>
					<description>Hi Johan!

I have title="Remove from favourites" on highlighted stars and title="Add to favourites" on non highlighted stars.

Am I missing a title somewhere?

As for the zoomToBounds, sure, I thought about it some days ago, but someway it got out of my head. I will put it in the "in a map" link asap (I have some unstable changes committed to my repository, and I want to stabilize these before).

Thank you for your comments Johan!

Cheers,</description>
		<content:encoded><![CDATA[<p>Hi Johan!</p>
<p>I have title=&#8221;Remove from favourites&#8221; on highlighted stars and title=&#8221;Add to favourites&#8221; on non highlighted stars.</p>
<p>Am I missing a title somewhere?</p>
<p>As for the zoomToBounds, sure, I thought about it some days ago, but someway it got out of my head. I will put it in the &#8220;in a map&#8221; link asap (I have some unstable changes committed to my repository, and I want to stabilize these before).</p>
<p>Thank you for your comments Johan!</p>
<p>Cheers,
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johan Sundström</title>
		<link>http://www.panoramio.com/blog/latest-developments/#comment-151</link>
		<pubDate>Fri, 20 Jan 2006 18:32:07 +0000</pubDate>
		<guid>http://www.panoramio.com/blog/latest-developments/#comment-151</guid>
					<description>The "in a map" link would be a very good candidate for defaulting to that zoom, if you decide on implementing it, if perhaps not exposing it elsewhere in the page interface. (Which might start building up featureitis mold on a very clean and easy to use interface.)</description>
		<content:encoded><![CDATA[<p>The &#8220;in a map&#8221; link would be a very good candidate for defaulting to that zoom, if you decide on implementing it, if perhaps not exposing it elsewhere in the page interface. (Which might start building up featureitis mold on a very clean and easy to use interface.)
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
