<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivo Limmen &#187; Google</title>
	<atom:link href="http://blog.limmen.org/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.limmen.org</link>
	<description>Everything fun...</description>
	<lastBuildDate>Fri, 01 Apr 2011 11:51:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google maps and clustering markers</title>
		<link>http://blog.limmen.org/2011/04/google-maps-and-clustering-markers/</link>
		<comments>http://blog.limmen.org/2011/04/google-maps-and-clustering-markers/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 08:20:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[Markers]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=209</guid>
		<description><![CDATA[You can do really nice things with the Google Maps API. Even more when you use the gmaps-utility-library. Difficulty is that the documentation is not that great of the extra tools. In my case I wanted to do someting special with my markers (and my clustered markers). When there is an alert at the location [...]]]></description>
			<content:encoded><![CDATA[<p>You can do really nice things with the <a href="http://code.google.com/apis/maps/documentation/javascript/reference.html">Google Maps API</a>. Even more when you use the <a href="http://code.google.com/p/gmaps-utility-library-dev/">gmaps-utility-library</a>.<br />
Difficulty is that the documentation is not that great of the extra tools.<br />
<span id="more-209"></span><br />
In my case I wanted to do someting special with my markers (and my clustered markers). When there is an alert at the location my markers should turn red instead of the default green.<br />
The cluster markers does have the ability to set a different style set. Problem is that the logic in the cluster marker is that it changes the style based on the amount of markers in the cluster.</p>
<p>I incidentally found and used the correct version of the add-on. I found it at <a href="http://code.google.com/p/google-maps-utility-library-v3">Google code</a>. While writing this post I re-googled the add-on so that I could link to the site. Like <a href="http://code.google.com/p/gmaps-utility-library-dev">so</a>.<br />
I discovered that that version had exactly what I missed: a parameter for the calculator function. Thinking I had an outdated version I copied this version and rewrote the code.<br />
It broke. It seems it was voor Google Maps API v2, and I was using V3.<br />
Then I discovered that there are more versions of the add-on library! The new version for V3 did not have a parameter for specifying a function to calculate what style I wanted to use.</p>
<p>Eventually I just overridden the function as so:</p>
<pre>
MarkerClusterer.prototype.calculator_ = function(markers, numStyles) {
    var index = 1;
    var count = markers.length;

    for (var i = 0; i < markers.length; i++) {
        if (markers[i].alert != undefined &#038;&#038; markers[i].alert) {
            // show alert
            index = 2;
            break;
        }
    }

    return {
        text: count,
        index: index
    };
};
</pre>
<p>When I create a marker I add the
<pre>alert</pre>
<p> property before adding it to the array that I pass on to the MarkerClusterer. It works like a charm!</p>
<p>It would be nicer (and cleaner) to specify the function when initializing the MarkerClusterer, but I am just glad I got it working like I wanted to.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2011/04/google-maps-and-clustering-markers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache should vote NO on Java 7</title>
		<link>http://blog.limmen.org/2010/11/apache-should-vote-no/</link>
		<comments>http://blog.limmen.org/2010/11/apache-should-vote-no/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 20:03:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JCP]]></category>
		<category><![CDATA[JDK7]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=194</guid>
		<description><![CDATA[Apache just made a statement on the TCK situation. They just got a three years extension on the JCP Executive Committee. I am happy about that. In the same press release they state that Oracle is violating their contract by not endorsing the use of the TCK to validate the Harmony JVM of Apache. They [...]]]></description>
			<content:encoded><![CDATA[<p>Apache just made a statement on the <a href="https://blogs.apache.org/foundation/entry/statement_by_the_asf_board1">TCK situation</a>. They just got a three years extension on the JCP Executive Committee. I am happy about that.</p>
<p>In the same press release they state that Oracle is violating their contract by not endorsing the use of the TCK to validate the Harmony JVM of Apache. They threaten to vote against the Java SE 7 release.</p>
<p>I hope that they eventually do vote <strong>no</strong> on JDK 7. I would love to see Apache fork Java. I think that most Java developers trust Apache more to handle Java than they trust Oracle (and other commercial companies).</p>
<p>Personally I would please me to see Apache and Google fork and create a new Java. Give it a new name. Cut the deprecated API. Drop JSR-277 and use OSGi bundles. Start fresh&#8230;.. </p>
<p>O wait I&#8217;m dreaming&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2010/11/apache-should-vote-no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Latitude Stunt</title>
		<link>http://blog.limmen.org/2009/04/google-latitude-stunt/</link>
		<comments>http://blog.limmen.org/2009/04/google-latitude-stunt/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 05:14:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Latitude]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=57</guid>
		<description><![CDATA[I use latitude and today an extra link showed up on my Latitude Gadget that is on my iGoogle. This is the movie I saw: Geeky&#8230; but fun.]]></description>
			<content:encoded><![CDATA[<p>I use latitude and today an extra link showed up on my Latitude Gadget that is on my iGoogle. This is the movie I saw:<br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/h0GA73O_9O4"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/h0GA73O_9O4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><br />
Geeky&#8230; but fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2009/04/google-latitude-stunt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

