<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6259562913746865237</atom:id><lastBuildDate>Tue, 16 Jun 2026 11:11:07 +0000</lastBuildDate><category>Api</category><category>v3</category><category>StreetView</category><category>maps</category><category>Geo</category><category>Dynamic Views</category><category>blogger</category><category>label</category><category>marker</category><category>styles</category><category>template</category><title>Marc Ridey - Blog</title><description>Technical blog about Google technologies</description><link>http://blog.mridey.com/</link><managingEditor>noreply@blogger.com (Marc T.)</managingEditor><generator>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-8348668761973284396</guid><pubDate>Thu, 19 Nov 2015 06:13:00 +0000</pubDate><atom:updated>2015-11-19T17:13:16.686+11:00</atom:updated><title>Adding the AddThis share buttons to Blogger Dynamic Views template</title><description>Following my previous post on how to modify Blogger Dynamic Views templates, here&#39;s a more complex example where I replaced Blogger default share buttons with the &lt;a href=&quot;https://www.addthis.com/&quot; target=&quot;_blank&quot;&gt;AddThis&lt;/a&gt; share widget.

&lt;br /&gt;
&lt;br /&gt;
The example blog is&amp;nbsp;&lt;a href=&quot;http://a1b2c3d5.blogspot.com/&quot;&gt;http://a1b2c3d5.blogspot.com/&lt;/a&gt;&amp;nbsp;and viewing a post looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2MwcXnedSFIrZXmHiOhRNfsukxgQs0kLLZ0ZzdNGZeMrB-UwPxPdp75pVVAuMy8KJPxWv_bYEKtFq9kK-8w8ERz49LpylKRDei8r_gy5Yg6QjY12RbrRyg-hlVPhKy0QE6Kr9-N1oO-dX/s1600/ov5pJgyJ5J6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2MwcXnedSFIrZXmHiOhRNfsukxgQs0kLLZ0ZzdNGZeMrB-UwPxPdp75pVVAuMy8KJPxWv_bYEKtFq9kK-8w8ERz49LpylKRDei8r_gy5Yg6QjY12RbrRyg-hlVPhKy0QE6Kr9-N1oO-dX/s320/ov5pJgyJ5J6.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To replace the share buttons, I have this code added to the template:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;script language=&#39;javascript&#39; type=&#39;text/javascript&#39;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; window.onload = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; window.addthis_config = window.addthis_config || {};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; addthis_config.pubid = &#39;ra-55c8384bb08b3e27&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{template:ShareAddThisScript}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;lt;script async=&quot;async&quot; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;src=&quot;//s7.addthis.com/js/300/addthis_widget.js&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;type=&quot;text/javascript&quot;/&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{/template:ShareAddThisScript}&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; blogger.templates()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .template(&quot;Main&quot;).raw()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .replace(&quot;{/template:Main}&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;{ShareAddThisScript}{/template:Main}&quot;));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{template:ShareAddThis}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;lt;div class=&quot;addthis_sharing_toolbox&quot;/&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;window.addthis &amp;amp;&amp;amp; addthis.layers &amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;addthis.layers.refresh &amp;amp;&amp;amp; addthis.layers.refresh();&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;/&#39;+&#39;script&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{/template:ShareAddThis}&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{template:Sharing}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;lt;div class=&quot;share-controls&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; {block:defer}defer{/block:defer}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; {block:delay}delay{/block:delay}&quot;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; data-defer=&quot;{defer}&quot; data-delay=&quot;{delay}&quot;&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{ShareAddThis}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;lt;/div&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;{/template:Sharing}&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.ui().configure().view();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; };&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In the onload function, the first two lines define the AddThis account number. You will need to &lt;a href=&quot;https://www.addthis.com/register&quot; target=&quot;_blank&quot;&gt;create&lt;/a&gt; an AddThis account and replace the value with your own key.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Then there are four calls to blogger.templates().&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
The first call defines a token&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;ShareAddThisScript&lt;/span&gt;&amp;nbsp;to load the AddThis JavaScript library.&lt;/div&gt;
&lt;div&gt;
The second call add this new token at the end of the &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Main&lt;/span&gt; token, this ensures the library is loaded only once, instead of each time a post is rendered.&lt;/div&gt;
&lt;div&gt;
The third call defines a new token&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;ShareAddThis&lt;/span&gt;&amp;nbsp;that renders the AddThis widget.&lt;/div&gt;
&lt;div&gt;
The forth call replaces the content of&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Sharing&amp;nbsp;&lt;/span&gt;with the new&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;ShareAddThis&amp;nbsp;&lt;/span&gt;token.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://blog.mridey.com/2015/11/adding-addthis-share-buttons-to-blogger.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2MwcXnedSFIrZXmHiOhRNfsukxgQs0kLLZ0ZzdNGZeMrB-UwPxPdp75pVVAuMy8KJPxWv_bYEKtFq9kK-8w8ERz49LpylKRDei8r_gy5Yg6QjY12RbrRyg-hlVPhKy0QE6Kr9-N1oO-dX/s72-c/ov5pJgyJ5J6.png" height="72" width="72"/><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-7250696623466968421</guid><pubDate>Fri, 21 Aug 2015 10:20:00 +0000</pubDate><atom:updated>2015-08-24T11:27:02.792+10:00</atom:updated><title>How to remove the views menu from Blogger Dynamic Views</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As a follow up on my first article on Dynamic Views,&amp;nbsp;&lt;a href=&quot;http://blog.mridey.com/2015/08/how-to-customize-bloggers-dynamic-views.html,&quot;&gt;http://blog.mridey.com/2015/08/how-to-customize-bloggers-dynamic-views.html,&lt;/a&gt;&amp;nbsp;here&#39;s a quick trick to remove the &quot;views&quot; menu in the menu bar.&lt;br /&gt;
&lt;br /&gt;
Typically at the top of all Dynamic Views templates, you&#39;ll see a menu to select views other than the one you selected for your blog. It looks something like:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif96oOTlNSyMseSww4VWe95tB0ZImDxHl4iH3o8M3K3goJzGD3HwnAutmG5l7JDYJ-Y-wu_eY9Ycv6T-F1ABvwuCXiy74jvN9EaPhvWd7HikGN3_yBYpwSSzRXF9cINImUibGIGAmjFKVk/s1600/Screen+Shot+2015-08-21+at+8.16.11+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif96oOTlNSyMseSww4VWe95tB0ZImDxHl4iH3o8M3K3goJzGD3HwnAutmG5l7JDYJ-Y-wu_eY9Ycv6T-F1ABvwuCXiy74jvN9EaPhvWd7HikGN3_yBYpwSSzRXF9cINImUibGIGAmjFKVk/s320/Screen+Shot+2015-08-21+at+8.16.11+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
But what it you would prefer not to have this menu, then go to the template editor and change the view loading code from&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;script language=&#39;javascript&#39; type=&#39;text/javascript&#39;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; window.onload = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.ui().configure().view();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; };&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;script language=&#39;javascript&#39; type=&#39;text/javascript&#39;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; window.onload = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; blogger.templates().compile(&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blogger.templates().template(&quot;Header&quot;).raw()&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;.replace(/{block:HasViews[\s\S]*block:HasViews}/,&quot;&quot;));&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.ui().configure().view();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; };&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
This will remove the section of the Header conditioned on having views &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;{block:HasViews}...{/block:HasViews}&lt;/span&gt; that renders the menu for the views.&lt;br /&gt;
&lt;br /&gt;
The new view looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQrTsSAwxsPWYh_-eLeEbqn57N4rvr_UzrlKP556mBri7y4iBRijEOcwV9puKVseuyUAenXXnLr84YkDfPk0GbqRaGnbR4Q7DCYZMapTtycS_bDc7EK-jGsp5eMkiUyDW7trIs-AZhO1mg/s1600/Screen+Shot+2015-08-21+at+8.15.02+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQrTsSAwxsPWYh_-eLeEbqn57N4rvr_UzrlKP556mBri7y4iBRijEOcwV9puKVseuyUAenXXnLr84YkDfPk0GbqRaGnbR4Q7DCYZMapTtycS_bDc7EK-jGsp5eMkiUyDW7trIs-AZhO1mg/s320/Screen+Shot+2015-08-21+at+8.15.02+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://blog.mridey.com/2015/08/how-to-remove-views-menu-from-blogger.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif96oOTlNSyMseSww4VWe95tB0ZImDxHl4iH3o8M3K3goJzGD3HwnAutmG5l7JDYJ-Y-wu_eY9Ycv6T-F1ABvwuCXiy74jvN9EaPhvWd7HikGN3_yBYpwSSzRXF9cINImUibGIGAmjFKVk/s72-c/Screen+Shot+2015-08-21+at+8.16.11+PM.png" height="72" width="72"/><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-1687162377808399667</guid><pubDate>Mon, 10 Aug 2015 10:38:00 +0000</pubDate><atom:updated>2015-08-10T20:38:00.601+10:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">blogger</category><category domain="http://www.blogger.com/atom/ns#">Dynamic Views</category><category domain="http://www.blogger.com/atom/ns#">template</category><title>How to customize Blogger&#39;s Dynamic Views templates</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Dynamic Views uses a token based template format. There isn&#39;t much documentation about it but small changes to the existing templates are not too difficult.&lt;br /&gt;
&lt;br /&gt;
The base of the template is something like this:&lt;br /&gt;
If token A is defined as: &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;{template:A}&amp;lt;div&amp;gt;{B}&amp;lt;/div&amp;gt;{/template:A}&lt;/span&gt;&lt;br /&gt;
and token B is defined as: &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;{template:B}Hello{/template:B}&lt;/span&gt;&lt;br /&gt;
then {A} will render as &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;div&amp;gt;Hello&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
With this, let look at a few example of changes:&lt;br /&gt;
&lt;br /&gt;
I&#39;m using the &quot;Magazine&quot; template and when a post is displayed, the G+ share button is available at the top of the post while all three G+, Facebook and Twitter buttons are available at the bottom. I&#39;d like to have all three buttons at the top.&lt;br /&gt;
&lt;br /&gt;
When I look as the source code for my blog, I see the lines:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; window.onload = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; blogger.ui().configure().view();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; };&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
These three lines launch the rendering engine that displays the blog.&lt;br /&gt;
When you look at the &amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blogger&lt;/span&gt; object, you will find another function called &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;templates&lt;/span&gt;&lt;br /&gt;
So if you run in the debugger&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; blogger.templates()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You get back the complete definition of the template loaded:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjHvmWlrR5G7UwJjeio3ZguyrAVD0vVIxsxIRQnlU7hnLnumhSwiljQEOQUAct-SqnUHOcF69lSlV_svEw6-xLjdCCsnIzd9UTGgeIzZ6zsxbIK8kBqXO4jfug3Q0XfoX79yt2heR0QHP0/s1600/Screen+Shot+2015-08-10+at+7.08.34+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjHvmWlrR5G7UwJjeio3ZguyrAVD0vVIxsxIRQnlU7hnLnumhSwiljQEOQUAct-SqnUHOcF69lSlV_svEw6-xLjdCCsnIzd9UTGgeIzZ6zsxbIK8kBqXO4jfug3Q0XfoX79yt2heR0QHP0/s320/Screen+Shot+2015-08-10+at+7.08.34+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
I&#39;m particularly interested in the list shown above. It&#39;s the definition of all the tokens the template has loaded. By scrolling through the list, I found the element I was interested in, it&#39;s called &quot;Sharing&quot; and the Sharing object looks like&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicslwqVxQn1Y6MoDEuPCT9u8AK1KXGww2cNx8wAYR51qmfERbOx3aFszNeMsAMcXgygwqvqv9kTlB7joZgKAbFKmsMLTCnE-ikwYutMhzsx3NsxKOv8Q1fqALKIkhvucWGfcY7SAvoeBf9/s1600/Screen+Shot+2015-08-10+at+7.18.38+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicslwqVxQn1Y6MoDEuPCT9u8AK1KXGww2cNx8wAYR51qmfERbOx3aFszNeMsAMcXgygwqvqv9kTlB7joZgKAbFKmsMLTCnE-ikwYutMhzsx3NsxKOv8Q1fqALKIkhvucWGfcY7SAvoeBf9/s640/Screen+Shot+2015-08-10+at+7.18.38+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now I could try to update &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blogger.templates().o.Sharing.lg&lt;/span&gt; but it wouldn&#39;t work. First because the template is parsed by the engine but also because &quot;o&quot; and &quot;lg&quot; are obfuscated values that could change every time the Blogger templates are released.&lt;br /&gt;
Lucky for us, there is a function available to update the templates, it&#39;s called &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blogger.templates().compile()&lt;/span&gt;, so to update the &quot;Sharing&quot; token, I just have to compile a new value for it using&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;{template:Sharing}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;&amp;lt;div class=&quot;share-controls&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;nbsp;{block:defer}defer{/block:defer}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; {block:delay}delay{/block:delay}&quot;&#39;&amp;nbsp;+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;data-defer=&quot;{defer}&quot; data-delay=&quot;{delay}&quot;&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;{SharePlusOne}{ShareTwitter}{ShareFacebook}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;&amp;lt;/div&amp;gt;&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;{/template:Sharing}&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So if I place the call to compile() before the call to blogger.ui().configure().view(), I can update the template before it&#39;s used and all three buttons are displayed at the top of this post. Note that the &amp;lt; and &amp;gt; characters have to be encoded as &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;amp;lt;&lt;/span&gt; and &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;amp;gt;&lt;/span&gt; because Blogger uses XML templates.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsb_3dYBitJOCRK9YnQJfQ1Itzyso2xOkJdE7-58Drk9ZnUZHbjydGVmcR03NdJuVXIj4Hip_kD3qDsf6MKemg6VTOc08yJV8v4ppVySYWOubX0SpAnDQyb_S5n4JoL-T4c24K3uKpmgyH/s1600/Screen+Shot+2015-08-10+at+7.34.35+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsb_3dYBitJOCRK9YnQJfQ1Itzyso2xOkJdE7-58Drk9ZnUZHbjydGVmcR03NdJuVXIj4Hip_kD3qDsf6MKemg6VTOc08yJV8v4ppVySYWOubX0SpAnDQyb_S5n4JoL-T4c24K3uKpmgyH/s320/Screen+Shot+2015-08-10+at+7.34.35+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now the second change I would like is to add an RSS icon next to the search control in the top bar.&lt;br /&gt;
So first I&#39;m going to create a new token that displays the RSS icon and navigates to the RSS address:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &#39;{template:RSSIcon}&#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;&amp;lt;a id=&quot;rssIcon&quot; href=&quot;/feeds/posts/default&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot; target=&quot;_blank&quot;&amp;gt;&#39;&amp;nbsp;+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;&amp;lt;img width=&quot;28&quot; height=&quot;28&quot; &#39;&amp;nbsp;+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;src=&quot;data:image/png;base64,iVBORw0KGgoAAA...AAElFTkSuQmCC&quot; /&amp;gt;&#39;&amp;nbsp;+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;&amp;lt;/a&amp;gt;&#39;&amp;nbsp;+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &#39;{/template:RSSIcon}&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Note: I&#39;ve cut down the data URL, it&#39;s very long.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Now I need to insert this new token next to the search control. The search control is in a token called BlogHeader but BlogHeader is very big so I would prefer to modify it rather than copying it. To do this, I&#39;m calling the definition of BlogHeader using &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;.template(&quot;BlogHeader&quot;).raw()&lt;/span&gt;, inserting the RSS token and recompiling the new token:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blogger.templates().compile(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; blogger.templates().template(&quot;BlogHeader&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; .raw().replace(&quot;&amp;amp;lt;input&quot;, &quot;{RSSIcon}&amp;amp;lt;input&quot;));&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now the RSS icon appears but I need to add some CSS rules to position it. Lucky me, there is a special CustomCSS reserved just for this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blogger.templates().template(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &quot;CustomCSS&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &quot;#rssIcon {position:absolute;top:19px;right: 230px;}&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And I&#39;m done, the RSS icon is in place and styled&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW6WK1I3ZRsZocDbIGInG0kGclmplanZSIQLZDpVwWMzCVthwh3wP6hrve7TkoUgV_lyZ_h3EKSpMkt5wiHvsqnhm89123M469gQpWvcIPXZs2LLN5qYKgU90issi25x-QHLqZTtTGx1gu/s1600/Screen+Shot+2015-08-10+at+8.29.52+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW6WK1I3ZRsZocDbIGInG0kGclmplanZSIQLZDpVwWMzCVthwh3wP6hrve7TkoUgV_lyZ_h3EKSpMkt5wiHvsqnhm89123M469gQpWvcIPXZs2LLN5qYKgU90issi25x-QHLqZTtTGx1gu/s320/Screen+Shot+2015-08-10+at+8.29.52+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Have fun updating your templates. If you&#39;re adventurous, you could even create a complete custom template, I&#39;ll try to publish another blog post on how to do this another time. Meanwhile, leave comments and questions below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://blog.mridey.com/2015/08/how-to-customize-bloggers-dynamic-views.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjHvmWlrR5G7UwJjeio3ZguyrAVD0vVIxsxIRQnlU7hnLnumhSwiljQEOQUAct-SqnUHOcF69lSlV_svEw6-xLjdCCsnIzd9UTGgeIzZ6zsxbIK8kBqXO4jfug3Q0XfoX79yt2heR0QHP0/s72-c/Screen+Shot+2015-08-10+at+7.08.34+PM.png" height="72" width="72"/><thr:total>7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-7427428714735282611</guid><pubDate>Mon, 03 Aug 2015 07:13:00 +0000</pubDate><atom:updated>2015-08-04T10:20:58.887+10:00</atom:updated><title>How to style, change or disable the Blogger EU Cookie Notice</title><description>Recently Blogger &amp;nbsp;introduced support for the European Union Cookie Notice.&lt;br /&gt;
The notice looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzqKQOOf1BV5C-BBIb7HK2dwYWK6XLOEcgtrDvpMygKQ1gRFVPnn5t4ULfSlp8xpJ9Q7oU7la5qdGDIzAFJKsY_lYS2P92eWj1g3nVUboInhMlTXdaphyFrwcoEXpIYalZ6jAfC3BkHBvP/s1600/Screenshot+from+2015-07-30+17%253A26%253A44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzqKQOOf1BV5C-BBIb7HK2dwYWK6XLOEcgtrDvpMygKQ1gRFVPnn5t4ULfSlp8xpJ9Q7oU7la5qdGDIzAFJKsY_lYS2P92eWj1g3nVUboInhMlTXdaphyFrwcoEXpIYalZ6jAfC3BkHBvP/s400/Screenshot+from+2015-07-30+17%253A26%253A44.png&quot; width=&quot;284&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Here are some instructions on how to update the EU cookie notice.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Notice Style:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To change the style of the EU Cookie notice, add a &amp;lt;STYLE&amp;gt; tag in your template &amp;lt;HEAD&amp;gt; tag. For example, this code will position the Cookie notice at the bottom of the window, make it yellow with red text:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;style type=&#39;text/css&#39;&amp;nbsp;class=&#39;singleton-element&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; #cookieChoiceInfo {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bottom: 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; top: auto;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; #cookieChoiceInfo .cookie-choices-inner {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; background-color:yellow;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; #cookieChoiceInfo .cookie-choices-text {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; color:red;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The CSS style names to use are:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;#cookieChoiceInfo {...}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;#cookieChoiceInfo .cookie-choices-inner {...}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;#cookieChoiceInfo .cookie-choices-text {...}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;#cookieChoiceInfo .cookie-choices-buttons {...}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;#cookieChoiceInfo .cookie-choices-button {...}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Notice Text:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To change the text of the EU Cookie notice, add a SCRIPT tag in your template &amp;lt;HEAD&amp;gt; tag.&lt;br /&gt;
For example, this code will change the help button text:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; cookieOptions = {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; learn: &quot;See more here&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
There are four elements you can change:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; msg: The main message of the notice&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; learn: The text of the “help” button&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; close: The text of the “ok” button&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; link: The URL of the page opened when the “help” button is clicked.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disabling the Notice:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To tell the notice code not to insert the EU Notice, add this &amp;lt;SCRIPT&amp;gt; tag in your template &amp;lt;HEAD&amp;gt; tag:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; cookieChoices = {};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
More information can be found at &lt;a href=&quot;http://www.blogger.com/go/cookiechoices&quot;&gt;http://www.blogger.com/go/cookiechoices&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description><link>http://blog.mridey.com/2015/08/how-to-style-change-or-disable-blogger.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzqKQOOf1BV5C-BBIb7HK2dwYWK6XLOEcgtrDvpMygKQ1gRFVPnn5t4ULfSlp8xpJ9Q7oU7la5qdGDIzAFJKsY_lYS2P92eWj1g3nVUboInhMlTXdaphyFrwcoEXpIYalZ6jAfC3BkHBvP/s72-c/Screenshot+from+2015-07-30+17%253A26%253A44.png" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-1045575168567474533</guid><pubDate>Tue, 25 Jun 2013 02:32:00 +0000</pubDate><atom:updated>2013-06-25T12:32:34.381+10:00</atom:updated><title>How to setup your Blogger blog with GoDaddy</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We&#39;ve recently launched a new feature in custom domains that lets you download a DNS file that contains all the DNS settings you need to configure your blog on a custom domain.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;GoDaddy DNS service supports this feature so Let&#39;s show you how it&#39;s done:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For this demo, I assume you have an existing blog and you have already purchased a domain on &lt;a href=&quot;http://www.godaddy.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;GoDaddy&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt; Go to the Settings Tab of your blog in the Blogger UI and click on the &quot;Add a custom domain&quot; link.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNGwsgJsaHqLOMx2aA92S19hjPdDMwAKRTP0EE23sM_b3dKiOlMXb-fXROmDMukmQsnWdEs1Qhu4Qes1_CeEQ-HoiSNoEQHtG7kCvM619yKc6RneJ2fyYyE1Ez9D-XHkfQ__3xEu9lw6qb/s1600/step1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNGwsgJsaHqLOMx2aA92S19hjPdDMwAKRTP0EE23sM_b3dKiOlMXb-fXROmDMukmQsnWdEs1Qhu4Qes1_CeEQ-HoiSNoEQHtG7kCvM619yKc6RneJ2fyYyE1Ez9D-XHkfQ__3xEu9lw6qb/s400/step1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 2:&lt;/b&gt; Enter the URL you would like to use for your blog and press Save. I&#39;m using &quot;www.thisdemoblog.com&quot; but the URL doesn&#39;t need to start with www such as &quot;&lt;a href=&quot;http://blog.mridey.com/&quot; target=&quot;_blank&quot;&gt;blog.mridey.com&lt;/a&gt;&quot; where I published this article.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS5nfLJE59onwF5uT6pyLPbHJuwxi68H16nFkAqyLcRvmUYRqualCQSc_Ajgdqmqc8ktxmFvjQFCbYb_GSQR-TG260ATAYHU14X_a8uxHfI9zQcPlozV6oaVhhhV5GJ8TafgopGOdFlcn3/s1600/step2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS5nfLJE59onwF5uT6pyLPbHJuwxi68H16nFkAqyLcRvmUYRqualCQSc_Ajgdqmqc8ktxmFvjQFCbYb_GSQR-TG260ATAYHU14X_a8uxHfI9zQcPlozV6oaVhhhV5GJ8TafgopGOdFlcn3/s400/step2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 3:&lt;/b&gt; You will get an error. It&#39;s expected as you have not configured GoDaddy with the DNS settings required. Now click on the &quot;DNS settings file&quot; link and save the file. Keep this window open, you&#39;ll need it later.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtH9eg1-N-Vb6Hn7tY0680GwkG5y9wsDMfvr_uza0pY1LsjWjwFBnp-a4-UI0WIMTP_hFpXaaomdDIX978z-a44tBZx2aXYhmTCYlv1CLKtjAacJ7umwYB63mwNeZOcNfQHj-zSzk-Hu0C/s1600/step3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;309&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtH9eg1-N-Vb6Hn7tY0680GwkG5y9wsDMfvr_uza0pY1LsjWjwFBnp-a4-UI0WIMTP_hFpXaaomdDIX978z-a44tBZx2aXYhmTCYlv1CLKtjAacJ7umwYB63mwNeZOcNfQHj-zSzk-Hu0C/s400/step3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 4:&lt;/b&gt; In a new window, go to GoDaddy, login, go to the Domain Control Panel and click on your domain name.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0ZDG9i1_rQcwCG6eCXO3hDZxjowtwd43jh6rIIVtFDWSb8gteWPuGAtKrLrupcQsmA-pI_kN4zlIjuav5eMs3Jq4kZ3q2J3pPYa33cSC7HrQLxNdpdseobfKFMJsrzIvH0xHmDVn8aWHm/s1600/step4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0ZDG9i1_rQcwCG6eCXO3hDZxjowtwd43jh6rIIVtFDWSb8gteWPuGAtKrLrupcQsmA-pI_kN4zlIjuav5eMs3Jq4kZ3q2J3pPYa33cSC7HrQLxNdpdseobfKFMJsrzIvH0xHmDVn8aWHm/s400/step4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 5:&lt;/b&gt; Click on the &quot;DNS Zone File&quot; tab.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvmVBpQaG_KsSc2vt30VWkKnvv1EAFX17jI1TBe49WiaJu0MM0F4D7sIu3c61iY_ewt79AM3WPuV8oV2lzjsvbfs56Zkbcogtn0QPmzIRIPgbX830BABV8mil6szOJ1Pn8rWE0jT4m_ysD/s1600/step5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvmVBpQaG_KsSc2vt30VWkKnvv1EAFX17jI1TBe49WiaJu0MM0F4D7sIu3c61iY_ewt79AM3WPuV8oV2lzjsvbfs56Zkbcogtn0QPmzIRIPgbX830BABV8mil6szOJ1Pn8rWE0jT4m_ysD/s400/step5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 6:&lt;/b&gt; Click on the Edit button.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeTgyZEGrFqIE3CcGA36Lw9buLGcYaEEYoJT6yX5qS63Ww8_y0pj3onh29rBJ_0hGun7oQIiACAQzeXjqruSQf-2Rbb2a8VNchaTCFM3lnpDSuBpWkfvaoJjZh8jEMO3zgOyVV9Z9GZGmx/s1600/step6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeTgyZEGrFqIE3CcGA36Lw9buLGcYaEEYoJT6yX5qS63Ww8_y0pj3onh29rBJ_0hGun7oQIiACAQzeXjqruSQf-2Rbb2a8VNchaTCFM3lnpDSuBpWkfvaoJjZh8jEMO3zgOyVV9Z9GZGmx/s400/step6.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 7:&lt;/b&gt; We need to delete some of the existing records that GoDaddy adds by default. Select all the &quot;A&quot; records with &quot;@&quot; as host as well as the CNAME record &quot;www&quot; (if the URL you want to use starts with www) and press the Delete button.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8MBWjBer3c1CbkhithxGplQ6LG4gCA7X6-4RAJ78rnj0grutst1E9rwsM-h79Wn0eakfCkYYNZNPqV3GKb95B9bU-xR8uWeVUR41oz6-Q_eTgbkHxaYgtlQfls2f6jldr36EZ9P1HW6F0/s1600/step7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8MBWjBer3c1CbkhithxGplQ6LG4gCA7X6-4RAJ78rnj0grutst1E9rwsM-h79Wn0eakfCkYYNZNPqV3GKb95B9bU-xR8uWeVUR41oz6-Q_eTgbkHxaYgtlQfls2f6jldr36EZ9P1HW6F0/s400/step7.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 8:&lt;/b&gt; Press the &quot;Save Zone File&quot; button.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnNbPGhqU-L6yZcNCfFYOj_WdPCXgcFusGtoJMSv1WiA1UCKP1jYGRyLCW1oYzgRdxv-CQPWzkiApA88VeVcfqwFQY0gUR9_J0xXhKjoZ2MaT6fQRGyawJRS_wHq7YfbpkBico_0gUPxD_/s1600/step8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnNbPGhqU-L6yZcNCfFYOj_WdPCXgcFusGtoJMSv1WiA1UCKP1jYGRyLCW1oYzgRdxv-CQPWzkiApA88VeVcfqwFQY0gUR9_J0xXhKjoZ2MaT6fQRGyawJRS_wHq7YfbpkBico_0gUPxD_/s400/step8.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 9:&lt;/b&gt; Press Ok to confirm.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWNhIPxtmnvaLuDV-zoHMYyjWlsFi-uv5Dhdttsx2pU7YefcWIEcWSJo7PeHHuWkEbkSME9tUwviN2KXzRqoUKl9tdc_yDEqYfctN6fUW2OKN6eeRVNSWXLd-qDO0tpehusBKEd5tj-MdY/s1600/step9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWNhIPxtmnvaLuDV-zoHMYyjWlsFi-uv5Dhdttsx2pU7YefcWIEcWSJo7PeHHuWkEbkSME9tUwviN2KXzRqoUKl9tdc_yDEqYfctN6fUW2OKN6eeRVNSWXLd-qDO0tpehusBKEd5tj-MdY/s320/step9.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 10:&lt;/b&gt; Press Ok to confirm again. :)&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTsykGDy3UzJscWEaqZvG3IwMvZ7j7uT_3RgcSj4dxQ2TYCxeVpAnh6peb83t3qhtj5sjK7cFjDPqhjxBTLPWIwkIGVjL8U72nkB-GrQzzj7hbcBUZbeaqUIFWzojaxPCKOseZlgpaV2wQ/s1600/step10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTsykGDy3UzJscWEaqZvG3IwMvZ7j7uT_3RgcSj4dxQ2TYCxeVpAnh6peb83t3qhtj5sjK7cFjDPqhjxBTLPWIwkIGVjL8U72nkB-GrQzzj7hbcBUZbeaqUIFWzojaxPCKOseZlgpaV2wQ/s320/step10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 11:&lt;/b&gt; Now let&#39;s load the new records. Click the Import/Export button and select &quot;Import&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicJyApjslPYkSqxWKcRb3iirgg03R4mlPsQkWvbLi1Y6iYVf-xjjvNASzbErDngR3_mEvUp1YP_rhIWcizUybQl_6jfk0e5EeZ8fW2HbzqtzZ9vDbr12RcogRLfjMoiKWnp7-4GOuL8reR/s1600/step11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicJyApjslPYkSqxWKcRb3iirgg03R4mlPsQkWvbLi1Y6iYVf-xjjvNASzbErDngR3_mEvUp1YP_rhIWcizUybQl_6jfk0e5EeZ8fW2HbzqtzZ9vDbr12RcogRLfjMoiKWnp7-4GOuL8reR/s400/step11.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 12:&lt;/b&gt; Click &quot;Select File&quot; and find the file you have saved in step 3, then click the &quot;I understand ...&quot; checkbox and press the Ok button.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2llSU2G1mdictxFTe-0vEWzu6wosuDcwIxnSD8_ySWayhxbue1K5vSjitvcm1LTQqcv6bAXnGadEvgQpeqDgAIrk_ejTyGfG564Z7M0jROZ7XhuOSVUZtPF5FEvYWYlg84GCYgU7b7HM3/s1600/step12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2llSU2G1mdictxFTe-0vEWzu6wosuDcwIxnSD8_ySWayhxbue1K5vSjitvcm1LTQqcv6bAXnGadEvgQpeqDgAIrk_ejTyGfG564Z7M0jROZ7XhuOSVUZtPF5FEvYWYlg84GCYgU7b7HM3/s320/step12.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 13:&lt;/b&gt; Press Ok to confirm.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8Bm4BhyQuqbUnjgPHOzZmsnNVG4K28YenBpA-GfrPMl8M-1GDIQVCSnI6TeY83zxanakv82Oi70l3XRicFNk5t7HTabSvSC7dhE50YCP32JSxVW6UVud5rKKk3jE7BdM9UVD0KKNWPEc/s1600/step13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8Bm4BhyQuqbUnjgPHOzZmsnNVG4K28YenBpA-GfrPMl8M-1GDIQVCSnI6TeY83zxanakv82Oi70l3XRicFNk5t7HTabSvSC7dhE50YCP32JSxVW6UVud5rKKk3jE7BdM9UVD0KKNWPEc/s320/step13.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 14:&lt;/b&gt; You should be able to see your new records loaded in GoDaddy. Four &quot;A&quot; records as well as two CNAME records. All good.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn2wWmax3jXGLkNnoG1d2lLZnODERYLWgReSn80teoN23ddUIu86S1tKlx6BpowvvRqoxJUxhs7OwZlwCW8MZsFHZP6wSgGrFHgRP4WLlFITvdwajKzEQmoxrg1XO5oLUrpGDFxMKDCIRI/s1600/step14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;367&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn2wWmax3jXGLkNnoG1d2lLZnODERYLWgReSn80teoN23ddUIu86S1tKlx6BpowvvRqoxJUxhs7OwZlwCW8MZsFHZP6wSgGrFHgRP4WLlFITvdwajKzEQmoxrg1XO5oLUrpGDFxMKDCIRI/s400/step14.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 15:&lt;/b&gt; Go back to the Blogger settings window we kept open in Step 3 and click &quot;Save&quot; again.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGQOpDVn0Mmv5_m5SyHHhFTuhFkSBAuGSk77ERMm71pOPXYR1sEodLtfMQeBIU6PQ4atzqgaBkapwSfvRDxxXQ0ylzHM8P_n6orK35YZTVTYuSd5H0dcU09VxUa5pYp0nUAKiM42UiGBpE/s1600/step15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGQOpDVn0Mmv5_m5SyHHhFTuhFkSBAuGSk77ERMm71pOPXYR1sEodLtfMQeBIU6PQ4atzqgaBkapwSfvRDxxXQ0ylzHM8P_n6orK35YZTVTYuSd5H0dcU09VxUa5pYp0nUAKiM42UiGBpE/s400/step15.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 16:&lt;/b&gt; If like me the GoDaddy DNS server processed the changes really quickly, it should all work fine and the settings should be accepted. You should be back to the main settings with your new custom domain accepted as the blog Address. So click on &quot;Edit&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlMXhdNLjynYqAfhzJMlw-RElQPcu1S6aTCXkRMLxpbO0wQ_ZnnL41EbfsfCyYD7uzJKVtn777pUSYO2qhAgXTgV3tkQCpAJ4bMW2BGBcAv_KjeazZqAoQRWX6aPqeY_M5vKoYoS6kDcBo/s1600/step16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;72&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlMXhdNLjynYqAfhzJMlw-RElQPcu1S6aTCXkRMLxpbO0wQ_ZnnL41EbfsfCyYD7uzJKVtn777pUSYO2qhAgXTgV3tkQCpAJ4bMW2BGBcAv_KjeazZqAoQRWX6aPqeY_M5vKoYoS6kDcBo/s400/step16.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If Step 16 fails, be patient and retry later. It can take up to 48h for DNS settings to propagate.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 17:&lt;/b&gt; Enable the &quot;Redirect ...&quot; checkbox and press Save. This is to allow &quot;naked domain&quot; redirect i.e. when users type your domain name without the www at the beginning.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcGIqkSVqsO0xeAxrP_HSu0jdOGbicq8NtHpeziWWMG3WEC78rBNvvw1tQEhF6-F9YTfyaSSUXl9q7kk9N_VbF2BYvO7lIJRSGXE9NB7R-ueqq7KX1dc13Z9x_UUIDMWPG41AETsW09Z_D/s1600/step17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcGIqkSVqsO0xeAxrP_HSu0jdOGbicq8NtHpeziWWMG3WEC78rBNvvw1tQEhF6-F9YTfyaSSUXl9q7kk9N_VbF2BYvO7lIJRSGXE9NB7R-ueqq7KX1dc13Z9x_UUIDMWPG41AETsW09Z_D/s400/step17.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Step 18:&lt;/b&gt; Finally click the &quot;View blog&quot; button at the top of Blogger UI, it should all work fine and your blog should now be enabled with a custom domain.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJdpe4FNQV0WnvaqVHKJp0FdFsNHv4gjKcBjWydGQvw3NQYfoSKxrqWIYkyTTdrWRQen6UWdSagDT5hD_om8YPKNzrtlm60qIvL3QOgYByHQyBugVdIABX69Z_81yv3wvCafIno_-s9h74/s1600/step18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;85&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJdpe4FNQV0WnvaqVHKJp0FdFsNHv4gjKcBjWydGQvw3NQYfoSKxrqWIYkyTTdrWRQen6UWdSagDT5hD_om8YPKNzrtlm60qIvL3QOgYByHQyBugVdIABX69Z_81yv3wvCafIno_-s9h74/s400/step18.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://blog.mridey.com/2013/06/how-to-setup-your-blogger-blog-with.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNGwsgJsaHqLOMx2aA92S19hjPdDMwAKRTP0EE23sM_b3dKiOlMXb-fXROmDMukmQsnWdEs1Qhu4Qes1_CeEQ-HoiSNoEQHtG7kCvM619yKc6RneJ2fyYyE1Ez9D-XHkfQ__3xEu9lw6qb/s72-c/step1.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-6757068018427180441</guid><pubDate>Sat, 23 Mar 2013 08:37:00 +0000</pubDate><atom:updated>2013-06-25T12:44:07.012+10:00</atom:updated><title>How to setup your Blogger blog with a custom domain from 1and1.com - Simplified</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Good news, the domain ownership verification system has been modified to use shorter string, allowing it to work with the limited 1and1.com DNS system.&lt;br /&gt;
&lt;br /&gt;
Update: If you have a domain with GoDaddy, follow these instructions:&amp;nbsp;&lt;a href=&quot;http://blog.mridey.com/2013/06/how-to-setup-your-blogger-blog-with.html&quot;&gt;http://blog.mridey.com/2013/06/how-to-setup-your-blogger-blog-with.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here&#39;s how to setup your 1and1.com domain for Blogger.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1: Get the Blogger settings&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
- Go to the basic settings of your blog in the Blogger UI.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkgeNW66LrbiiUYQSkERGb9CO1zDhFBXePt_umIoThyphenhyphenp14B5_RrOE1zFijzgQqABoSOscz_FOvaKm0UqCptYugkutw76bR8Uwz_DNlzEKRRm6LfxZflXnhaMKf9tCYrPfYt2y9nsvKSjqW/s1600/Screen+Shot+2013-03-23+at+6.40.11+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;113&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkgeNW66LrbiiUYQSkERGb9CO1zDhFBXePt_umIoThyphenhyphenp14B5_RrOE1zFijzgQqABoSOscz_FOvaKm0UqCptYugkutw76bR8Uwz_DNlzEKRRm6LfxZflXnhaMKf9tCYrPfYt2y9nsvKSjqW/s640/Screen+Shot+2013-03-23+at+6.40.11+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Click the &quot;Add a custom domain&quot; link&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9QFDIMoKSQiRM63fK-UmZkVvip0qltHuTM_kdCuebVCebpIpcu30QEkFPcpH5dEO3JVblmRjjuOi2yjhYVMmzUAu5CR-WoY9HZ6ihtJn54tBE_itFiL42BbbZnLV84tsvxszV3DWuR_Ca/s1600/Screen+Shot+2013-03-23+at+6.41.37+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9QFDIMoKSQiRM63fK-UmZkVvip0qltHuTM_kdCuebVCebpIpcu30QEkFPcpH5dEO3JVblmRjjuOi2yjhYVMmzUAu5CR-WoY9HZ6ihtJn54tBE_itFiL42BbbZnLV84tsvxszV3DWuR_Ca/s640/Screen+Shot+2013-03-23+at+6.41.37+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
- Click the &quot;Switch to advanced settings&quot; link&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTEaUC-v1imWdkpE4i9ibk9OhaI1gMUh1Imxoa1VqzkUzSbAaOfzTwqhytvGahaQImtkEMRgINsWY6NJo-Ci0-am4XWr1NW0E9XoNXygSRL3X9ssHFr-YdI7cK7sta5TF1TAHSrQPkJk9f/s1600/Screen+Shot+2013-03-23+at+6.41.47+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTEaUC-v1imWdkpE4i9ibk9OhaI1gMUh1Imxoa1VqzkUzSbAaOfzTwqhytvGahaQImtkEMRgINsWY6NJo-Ci0-am4XWr1NW0E9XoNXygSRL3X9ssHFr-YdI7cK7sta5TF1TAHSrQPkJk9f/s640/Screen+Shot+2013-03-23+at+6.41.47+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
- Enter the subdomain and domain you would like your blog to use. In my case, I purchased domain &quot;bloggeronline.info&quot; and choose to have my blog use &quot;blog.bloggeronline.info&quot;. Note that you need to specify a subdomain like &quot;blog&quot; or &quot;www&quot; with your domain name. Then press &quot;Save&quot;. It will fail with &quot;Error 12&quot;. This is expected.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj0ydLIfq3qbSbGLQVGBOI5Mvg62_awALvpEXYkUg-UqG4eTiNqh9LXqLiY6ZC7rqf_dhBadBTQZDdnM8QfyFA5PPc8wIaLHv7j8UbRm8bngjQRVGG11dGkdYTwk1bMRUMj9I0NQ6Twezu/s1600/Screen+Shot+2013-03-23+at+6.42.14+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj0ydLIfq3qbSbGLQVGBOI5Mvg62_awALvpEXYkUg-UqG4eTiNqh9LXqLiY6ZC7rqf_dhBadBTQZDdnM8QfyFA5PPc8wIaLHv7j8UbRm8bngjQRVGG11dGkdYTwk1bMRUMj9I0NQ6Twezu/s640/Screen+Shot+2013-03-23+at+6.42.14+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
You will now see two lines displayed that need to be configured on the 1and1 website.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
In my case the two lines are:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
blog, ghs.goog.com&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
mf3relchxuxx,&amp;nbsp;gv-kgyql46c766bxw.dv.googlehosted.com&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
The first line is always the same for everyone, the second line is specific to your own blog and your own account so don&#39;t copy my example, it won&#39;t work.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Step 2: Go to 1and1.com dashboard&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
- Go to the 1and1.com website, login, go to domain management&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
- Click the checkbox on your domain and select DNS -&amp;gt; Edit DNS Settings&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Select DNS, Other IP address and enter 216.239.32.21 and press OK and go back to the 1and1 Overview dashboard.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhec4x1KKY2NjpQ3HDrz6Ckoj92E0PXt2IvUoGYHpBfMYkPVvua6rFAU-grU6AelHuMEF6ocAT52iynxMYOyk-J1HONwTNs9DZ7L-0TnMclkYYMHLVdh8YlezfHIzzeANFP1-h1_LF_850C/s1600/Screen+Shot+2013-03-23+at+6.45.41+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhec4x1KKY2NjpQ3HDrz6Ckoj92E0PXt2IvUoGYHpBfMYkPVvua6rFAU-grU6AelHuMEF6ocAT52iynxMYOyk-J1HONwTNs9DZ7L-0TnMclkYYMHLVdh8YlezfHIzzeANFP1-h1_LF_850C/s640/Screen+Shot+2013-03-23+at+6.45.41+PM.png&quot; width=&quot;538&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
- Back on the dashboard, click New-&amp;gt;Create subdomain&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Enter &quot;blog&quot; (or www, or any other string you want for your blog, press OK and go back to the 1and1 Overview dashboard.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVUbtlPG0R3hFgiEZi6MLx-FbzzS3pLTEBmBIfqM5NCD3iPTCGVH12GxvUD28RBBb81NPFM6JC9OCVnpxBw4zPARRnDY3uLqI5Flffnkj206rbEaI-T7MkoUwkC7EhFtVlRpANLjEe8RME/s1600/Screen+Shot+2013-03-23+at+6.46.29+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVUbtlPG0R3hFgiEZi6MLx-FbzzS3pLTEBmBIfqM5NCD3iPTCGVH12GxvUD28RBBb81NPFM6JC9OCVnpxBw4zPARRnDY3uLqI5Flffnkj206rbEaI-T7MkoUwkC7EhFtVlRpANLjEe8RME/s640/Screen+Shot+2013-03-23+at+6.46.29+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
- Click the checkbox on that new subdomain, select DNS-&amp;gt;Edit DNS settings&lt;br /&gt;
&lt;br /&gt;
Select CNAME, enter &quot;ghs.google.com&quot;, press OK&amp;nbsp;and go back to the 1and1 Overview dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk3b05CkHwxB5_gzrjuU4Pzs8AzmHudWkKYaDxae9SMCfUZWC_-9iykcjSVRtDIgst0GUpYwEdQJrJvq1a_Pty63Wbu3FS093FkkX7RfoKXJYmyElfS_195GQAs1PKkfoP54X2GaRIITBp/s1600/Screen+Shot+2013-03-23+at+6.47.39+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;456&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk3b05CkHwxB5_gzrjuU4Pzs8AzmHudWkKYaDxae9SMCfUZWC_-9iykcjSVRtDIgst0GUpYwEdQJrJvq1a_Pty63Wbu3FS093FkkX7RfoKXJYmyElfS_195GQAs1PKkfoP54X2GaRIITBp/s640/Screen+Shot+2013-03-23+at+6.47.39+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
- Back on the dashboard, click New -&amp;gt; Create subdomain again&lt;br /&gt;
&lt;br /&gt;
Enter the first element of the second line we saved in the Blogger settings, mine was &quot;&lt;span style=&quot;text-align: center;&quot;&gt;mf3relchxuxx&lt;/span&gt;&quot;, yours will be different. Press OK&amp;nbsp;and go back to the 1and1 Overview dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj1jvQSRvRq3RkmYBoGjtD-LjnLtbql6fsJpRPpI7OrSDtoOelKX3LqYleh7vB5Cu0b3fvAVnQQ-UvDLegMuWomWVkdO0mtgztT2nGvRsKMZ-Q2g_NkEchRCnBUin5bike_JkU2fClweVU/s1600/Screen+Shot+2013-03-23+at+6.48.15+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj1jvQSRvRq3RkmYBoGjtD-LjnLtbql6fsJpRPpI7OrSDtoOelKX3LqYleh7vB5Cu0b3fvAVnQQ-UvDLegMuWomWVkdO0mtgztT2nGvRsKMZ-Q2g_NkEchRCnBUin5bike_JkU2fClweVU/s640/Screen+Shot+2013-03-23+at+6.48.15+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Click the checkbox on that second new subdomain, select DNS-&amp;gt;Edit DNS settings&lt;br /&gt;
&lt;br /&gt;
Select CNAME, enter the second section of the second line. Mine is &quot;&lt;span style=&quot;text-align: center;&quot;&gt;gv-kgyql46c766bxw.dv.googlehosted.com&lt;/span&gt;&quot;, yours will be different. Press OK&amp;nbsp;and go back to the 1and1 Overview dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQyWQ2OpRtIbGw4O_wkMzIeUN5gdSs79ZxICE7aiytlDmmNtf9XNlfaO0lL8AdIW5bCb7rWIY2P6iFCIdezh5EGZNX2qg37SVvmjlqQd6k-rnukmXHsya0E4aDufrC7RHEBEJ5AwBWL_jD/s1600/Screen+Shot+2013-03-23+at+6.48.53+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;414&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQyWQ2OpRtIbGw4O_wkMzIeUN5gdSs79ZxICE7aiytlDmmNtf9XNlfaO0lL8AdIW5bCb7rWIY2P6iFCIdezh5EGZNX2qg37SVvmjlqQd6k-rnukmXHsya0E4aDufrC7RHEBEJ5AwBWL_jD/s640/Screen+Shot+2013-03-23+at+6.48.53+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
- Now you should have two subdomains and one domain listed in your dashboard, something like:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRv6PwEIRF4h1tzh1U5Dp-4r3FcJkaIT7tc7t7M7dtgwJTT0su3VxkIuHCTubO6xYe4j9B9sGbDneD9tK1oclSKWb6gvzrICAC8CVNnyi2v2I45dRWDwMsVqB0z1pm70-lexY0QK295nFE/s1600/Screen+Shot+2013-03-23+at+6.52.44+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRv6PwEIRF4h1tzh1U5Dp-4r3FcJkaIT7tc7t7M7dtgwJTT0su3VxkIuHCTubO6xYe4j9B9sGbDneD9tK1oclSKWb6gvzrICAC8CVNnyi2v2I45dRWDwMsVqB0z1pm70-lexY0QK295nFE/s640/Screen+Shot+2013-03-23+at+6.52.44+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 3: Wait and wait ...&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
We need the new settings entered in 1and1.com to be public and visible to Google. This can take up to 48h although usually it&#39;s more like 3h.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 4: Return to Blogger and apply the custom domain again.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
- Go through the steps listed in Step 1. If the domain has been registered correctly, you should no longer get an &quot;Error 12&quot; but instead your domain should be accepted and this screen appear:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF0mmTb3QsL25zkbfDtCRkkNsSDfgS0QIjwsikZZSHbDusIQ0a_a7q0OECQ9_vTnTH35zSHOIGl_CQUKLjuDx6JZnP0aV2fM16bW0eOC1BgBne0TK4gzBarbeDojcbcfqp_l05AZLpmrV9/s1600/Screen+Shot+2013-03-23+at+7.32.51+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;116&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF0mmTb3QsL25zkbfDtCRkkNsSDfgS0QIjwsikZZSHbDusIQ0a_a7q0OECQ9_vTnTH35zSHOIGl_CQUKLjuDx6JZnP0aV2fM16bW0eOC1BgBne0TK4gzBarbeDojcbcfqp_l05AZLpmrV9/s640/Screen+Shot+2013-03-23+at+7.32.51+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
- Click the edit link&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_DfQ1TF0kE_GssSUJFsCwfu80-0sNTejW6DmnVa5TMjSWnyubDSoDMLsvfWnHSCMmRGcyzurouITcoixVmXPQEgwKxPJ0wBolrOgL7xB1KlpM2ktZZwO6Mo9SyYe4yYSyCbnYswAXBWYf/s1600/Screen+Shot+2013-03-23+at+7.33.15+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_DfQ1TF0kE_GssSUJFsCwfu80-0sNTejW6DmnVa5TMjSWnyubDSoDMLsvfWnHSCMmRGcyzurouITcoixVmXPQEgwKxPJ0wBolrOgL7xB1KlpM2ktZZwO6Mo9SyYe4yYSyCbnYswAXBWYf/s640/Screen+Shot+2013-03-23+at+7.33.15+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Make sure you click the &quot;Redirect&quot; checkbox and press Save again. This will make your naked domain (bloggeronline.info in my case) also work for your blog.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
This is brand new so if you have problems, please let me know.&lt;/div&gt;
&lt;div&gt;
Please remember to&amp;nbsp;+1 my post, and reshare it on Google+, Facebook or Twitter, Thanks :)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://blog.mridey.com/2013/03/how-to-setup-your-blogger-blog-with.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkgeNW66LrbiiUYQSkERGb9CO1zDhFBXePt_umIoThyphenhyphenp14B5_RrOE1zFijzgQqABoSOscz_FOvaKm0UqCptYugkutw76bR8Uwz_DNlzEKRRm6LfxZflXnhaMKf9tCYrPfYt2y9nsvKSjqW/s72-c/Screen+Shot+2013-03-23+at+6.40.11+PM.png" height="72" width="72"/><thr:total>8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-2743930001294588293</guid><pubDate>Thu, 07 Feb 2013 04:20:00 +0000</pubDate><atom:updated>2013-02-07T15:20:01.899+11:00</atom:updated><title>Building a blog with Google+</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Building a successful blog requires a simple element: Good content.&lt;br /&gt;
Write good content and readers will come.&lt;br /&gt;
&lt;br /&gt;
I can’t help you with good content, but I can provide some ideas on how to get readers coming sooner rather than later.&lt;br /&gt;
&lt;br /&gt;
Let’s first ignore technology and look at how a blog grows from zero readers to millions of readers. To build readership, you need to complete three steps:&lt;br /&gt;
&lt;br /&gt;
First, your content must be&amp;nbsp;discoverable&amp;nbsp; So people that have never seen your blog can be directed to it. People discover content from search results, from reference in other content, from recommendations from friends.&lt;br /&gt;
Then once you have the attention of the reader, you need to ensure you retain them, you need to ensure that next time you publish more content on your blog, those readers are notified of the new content and come back to read it. You want them to subscribe to your blog.&lt;br /&gt;
But those two step alone will just provide slow organic growth. To achieve strong growth, you need referrals. You need your existing readers to mention your blog to their friends, to recommend your blog to others.&lt;br /&gt;
&lt;br /&gt;
All social networks will help you achieve this and to be successful, you probably want to cover as many of them as possible. This post discuss how to configure your blog with Google+ to maximize readership but the same logic can be applied to Twitter or Facebook.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Make your posts discoverable&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
When you publish a post in Blogger, it will appear automatically in Google Search. That’s great but there are extra steps you can take to make your posts more visible:&lt;br /&gt;
&lt;br /&gt;
- Select a good descriptive title for the post. This is critical for good search results.&lt;br /&gt;
- Set a search description on the post. This should be a small snippet of text that reflects the content of the post. It will be used by Google Search to better index your post and may appear in the search result instead of the first few lines of the post.&lt;br /&gt;
&lt;br /&gt;
Note: Read &lt;a href=&quot;http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf&quot; target=&quot;_blank&quot;&gt;Google SEO Starter Guide&lt;/a&gt; for more great ideas on effective SEO&lt;br /&gt;
&lt;br /&gt;
- Link your blog to a Google+ Page and share your post to the G+ Stream. As well as providing a second entry in Google search, it will make your blog visible in Google+. When you share, make sure your share the post publicly, not just to your circles. A public share will be visible to anyone, not just people that are already subscribe to your blog.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCKfYbjey0CzRfWNg6Jp0ZPPUBF1t6XwhfVzfkyUyQDVHdoMKSNqdgqDhEZj4i2mD1ZzJ34pU3AHshb3RYrjh6e2QKGmHz_YxlKPcyHboB-JVIsWHRHs_B2VRega20qEo6N4xv_LanF_SF/s1600/Screenshot+from+2013-02-07+15:06:02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;289&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCKfYbjey0CzRfWNg6Jp0ZPPUBF1t6XwhfVzfkyUyQDVHdoMKSNqdgqDhEZj4i2mD1ZzJ34pU3AHshb3RYrjh6e2QKGmHz_YxlKPcyHboB-JVIsWHRHs_B2VRega20qEo6N4xv_LanF_SF/s640/Screenshot+from+2013-02-07+15:06:02.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To create a Google+ page and link it to your blog, just open the Google+ tab in the Blogger UI. Enable the &quot;Prompt to share after posting&quot;&amp;nbsp;check box&amp;nbsp;and&amp;nbsp;every time&amp;nbsp;you share, remember to share with the public Circle.&amp;nbsp;See &lt;a href=&quot;http://buzz.blogger.com/2012/07/socialize-with-googleplus.html&quot; target=&quot;_blank&quot;&gt;Socialize and grow your blog with Google+&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIy04MiBD4ilo-16UWH08q5jkZlgjaVVC-alXBoK7MhBciD2-h9qMv31Y5X6V8RFzSl-jxJeDkfrN-aS3HNPI1G61tV3DlidG1Odx5ZwWiOKDVrIKecuZZs2sDR58CvaUzoknlmcBU0UNo/s1600/Screenshot+from+2013-02-07+14:58:37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIy04MiBD4ilo-16UWH08q5jkZlgjaVVC-alXBoK7MhBciD2-h9qMv31Y5X6V8RFzSl-jxJeDkfrN-aS3HNPI1G61tV3DlidG1Odx5ZwWiOKDVrIKecuZZs2sDR58CvaUzoknlmcBU0UNo/s320/Screenshot+from+2013-02-07+14:58:37.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;2. Retain your readers&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Now that you have your blog linked to Google+, add the Google+ Follow widget to your blog and encourage your readers to follow your blog, i.e. to add your Google+ page to their circles. Once they add your Google+ Page to their circles, they will receive notification when you share your post and see a snippet of your post in their stream.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm7e7nkXRxyVrA9TVvJWTxi-4UStNRuz_J9OZpkxbOb9Fk5GgEUBfRgVRloQnFcyr1PzXq9tCH1Q0W2kIUpDoGrHS9DaH-00_h_YJwYcyRIzZdFSVEUaYEf-V-RXEKsndBXyHNl4t-ycsb/s1600/Screenshot+from+2013-02-07+15%253A09%253A48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm7e7nkXRxyVrA9TVvJWTxi-4UStNRuz_J9OZpkxbOb9Fk5GgEUBfRgVRloQnFcyr1PzXq9tCH1Q0W2kIUpDoGrHS9DaH-00_h_YJwYcyRIzZdFSVEUaYEf-V-RXEKsndBXyHNl4t-ycsb/s320/Screenshot+from+2013-02-07+15%253A09%253A48.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
See &lt;a href=&quot;http://buzz.blogger.com/2012/11/grow-your-audience-with-google.html&quot; target=&quot;_blank&quot;&gt;Grow your audience with the Google+ Followers gadget&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Grow your readership&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Add the +1 and +Share widgets to your template and encourage your readers to +1 and +Share your content. Each +1 will increase the quality rating of your posts, making them more likely to appear more frequently in Google+ trends and search results. Each +Share from a reader to their circles forwards your post to their friends. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZB7bffadh_rcEjK61G0lL6q3Tv3r5i6xIiUW-rB_vDU_b8ijAq1OSJxNb2mdyMY1koDiKV7e8JpVHq0j6EKvXoEQEY2EgWn_CoI-tl5h_k2jJz5PbvbtDp7gj6HorsuvmBbvlvo_EIK88/s1600/Screenshot+from+2013-02-07+15:17:40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;35&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZB7bffadh_rcEjK61G0lL6q3Tv3r5i6xIiUW-rB_vDU_b8ijAq1OSJxNb2mdyMY1koDiKV7e8JpVHq0j6EKvXoEQEY2EgWn_CoI-tl5h_k2jJz5PbvbtDp7gj6HorsuvmBbvlvo_EIK88/s320/Screenshot+from+2013-02-07+15:17:40.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
See &lt;a href=&quot;http://buzz.blogger.com/2012/04/two-new-gadgets-to-make-your-blog.html&quot; target=&quot;_blank&quot;&gt;Two new gadgets to make your blog better with Google+&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Four simple steps:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
- Link your blog to a Google+ Page.&lt;br /&gt;
- Add the +1, +Share and +Follow widgets to your template.&lt;br /&gt;
- Share your posts publicly.&lt;br /&gt;
- Encourage your readers to +1, share and follow your blog.&lt;/div&gt;
</description><link>http://blog.mridey.com/2013/02/building-blog-with-google.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCKfYbjey0CzRfWNg6Jp0ZPPUBF1t6XwhfVzfkyUyQDVHdoMKSNqdgqDhEZj4i2mD1ZzJ34pU3AHshb3RYrjh6e2QKGmHz_YxlKPcyHboB-JVIsWHRHs_B2VRega20qEo6N4xv_LanF_SF/s72-c/Screenshot+from+2013-02-07+15:06:02.png" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-5244814401645031568</guid><pubDate>Thu, 25 Oct 2012 05:50:00 +0000</pubDate><atom:updated>2013-03-23T19:40:37.146+11:00</atom:updated><title>How to setup your Blogger blog with a custom domain from 1and1.com</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large; font-weight: bold;&quot;&gt;Update:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;The Domain ownership system has been updated and using a 1and1.com domain is now much simpler. use the new instructions here:&amp;nbsp;&lt;a href=&quot;http://blog.mridey.com/2013/03/how-to-setup-your-blogger-blog-with.html&quot;&gt;http://blog.mridey.com/2013/03/how-to-setup-your-blogger-blog-with.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;==============================================&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Recently, Blogger added extra security when configuring a blog using a custom domain.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You know need to setup two CNAME values in the DNS settings of your domain for Blogger to recognize your custom domain settings.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Personally, I purchase all my domains with &lt;a href=&quot;http://godaddy.com/&quot;&gt;godaddy.com&lt;/a&gt;&amp;nbsp;but let&#39;s assume for now that you have purchased a domain with &lt;a href=&quot;http://1and1.com/&quot;&gt;1and1.com&lt;/a&gt;&amp;nbsp;and you would like to setup that domain on Blogger.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Warning&lt;/b&gt;: If you are using 1and1 hosting services to display a website as well as a Blogger blog, these instructions will disable the website. Please post a comment with your website address and I&#39;ll check how these instructions must be updated. If you&#39;re using eMail, remember to complete the optional eMail step.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Step 1: Get the DNS settings for Blogger&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;First, go to &lt;a href=&quot;http://www.blogger.com/&quot;&gt;www.blogger.com&lt;/a&gt;, select your blog and go to the basic settings:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVORKzpYfMNd_3CXcN30p4GVG84nHoV4ll-VzV_Sp0jhyaLOoQkwhai39YeTwkaZcBbwdBXIyYnAQ-GL0FnDAnTYuyqJnD3AR53QpNkJ0s3f6mEiZaFMedr7KtzxEk9vh28uaHisagulfR/s1600/Screenshot-Blogger%253A+My+Blog+-+Basic+settings+-+Google+Chrome.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVORKzpYfMNd_3CXcN30p4GVG84nHoV4ll-VzV_Sp0jhyaLOoQkwhai39YeTwkaZcBbwdBXIyYnAQ-GL0FnDAnTYuyqJnD3AR53QpNkJ0s3f6mEiZaFMedr7KtzxEk9vh28uaHisagulfR/s320/Screenshot-Blogger%253A+My+Blog+-+Basic+settings+-+Google+Chrome.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Click on &quot;Add a custom domain&quot; and then on &quot;Switch to advanced settings&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Enter &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; and the domain name you purchased. In my example, &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www.mydomainname.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; and press &quot;Save&quot;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzhBQqoXcFopdwA3YijsEuicznKD-vM20RUWVKJ8zTt5336NkJL0zNdUk61vZs4z5irwuKxNGpJJ5hASBf4eWkoH1zXjhY1UmXROj9QQP6TxTUQGIFvlQsyWoNMUQhRlOq1GWiNt8Ws_-p/s1600/Screenshot-Blogger%253A+My+Blog+-+Basic+settings+-+Google+Chrome-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzhBQqoXcFopdwA3YijsEuicznKD-vM20RUWVKJ8zTt5336NkJL0zNdUk61vZs4z5irwuKxNGpJJ5hASBf4eWkoH1zXjhY1UmXROj9QQP6TxTUQGIFvlQsyWoNMUQhRlOq1GWiNt8Ws_-p/s320/Screenshot-Blogger%253A+My+Blog+-+Basic+settings+-+Google+Chrome-1.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As you can see, Blogger returned back an error because of missing CNAME entries in your domain.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Let&#39;s see what we need to do to configure these settings.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Copy/paste the CNAME values displayed into a text editor (or keep the Blogger window opened), you will need them in step 2.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Step 2: Configure CloudNS&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As &lt;a href=&quot;http://1and1.com/&quot;&gt;1and1.com&lt;/a&gt; DNS system is not able to be configured with the values required by Blogger. you will need an external DNS hosting service. This does not require your to transfer your domain from 1and1.com. We are simply going to stop using 1and1 DNS servers and use CloudNS free DNS service instead.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Go to &lt;a href=&quot;http://www.cloudns.net/&quot;&gt;www.cloudns.net&lt;/a&gt; and create an account. once you have verified your email address, you should be able to access the dashboard. It should look like this:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCbnRXMkv3fTMaK-q6dE0J21FxkQWbIAVAhKqanITWG875_sgf7P9E75A0VL_gtO1GLNGVgEFtLrLOjgUaJzkL2C9-qSoyluhPI6KcqgB1BjMUQv9Eqp7abLrNuesBBHqTStk3pY5bsYoW/s1600/Screenshot-ClouDNS.net%253A+Dashboard+-+Google+Chrome.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCbnRXMkv3fTMaK-q6dE0J21FxkQWbIAVAhKqanITWG875_sgf7P9E75A0VL_gtO1GLNGVgEFtLrLOjgUaJzkL2C9-qSoyluhPI6KcqgB1BjMUQv9Eqp7abLrNuesBBHqTStk3pY5bsYoW/s320/Screenshot-ClouDNS.net%253A+Dashboard+-+Google+Chrome.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Next in &quot;DNS zones&quot;, click &quot;Add new&quot;, enter your domain name and press create:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTR2VDN7VIOLSvokj1AekAdLDYZTAQRtYXEv28jaaWw4GaAexpLHB0kS0ki7YImx9SUvcGloBkNRuBM-t7ku2zvWjNBUwa_WOyEYtvFVTZrHXCAfpsTMkms-FpLng3JPzxivPXtMMkU09R/s1600/Screenshot-ClouDNS.net%253A+Dashboard+-+Google+Chrome-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTR2VDN7VIOLSvokj1AekAdLDYZTAQRtYXEv28jaaWw4GaAexpLHB0kS0ki7YImx9SUvcGloBkNRuBM-t7ku2zvWjNBUwa_WOyEYtvFVTZrHXCAfpsTMkms-FpLng3JPzxivPXtMMkU09R/s320/Screenshot-ClouDNS.net%253A+Dashboard+-+Google+Chrome-1.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You will get a new DNS zone with the NS records already set:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ZsfNnybTTzKmFELaNeSdy4VF9_S_PS98-36MI9SxzfJ2A2PbX42o2lOfSMokLmnQIQDyyMxqAdaxVeI4yhuhTMmRmdme0925GdJxVQ2VW4iz1XW_susF324VyMr2IQA26IHdy8McumAq/s1600/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ZsfNnybTTzKmFELaNeSdy4VF9_S_PS98-36MI9SxzfJ2A2PbX42o2lOfSMokLmnQIQDyyMxqAdaxVeI4yhuhTMmRmdme0925GdJxVQ2VW4iz1XW_susF324VyMr2IQA26IHdy8McumAq/s320/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now click &quot;Add new record&quot;, select CNAME, type &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; and &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ghs.google.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnmwT_uCQHRBlvFzjcau6ptckCqEgu9CAghnJeUtjvJauuZ1Fre1Xt2lwa8VynUezYGndXtWTUsznM0duvS4MHnkF7pe3tQTLF_CpAZ6r7w65YTzYxKMiFpugHoLmP8IOCgbzcg_J65Ymd/s1600/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnmwT_uCQHRBlvFzjcau6ptckCqEgu9CAghnJeUtjvJauuZ1Fre1Xt2lwa8VynUezYGndXtWTUsznM0duvS4MHnkF7pe3tQTLF_CpAZ6r7w65YTzYxKMiFpugHoLmP8IOCgbzcg_J65Ymd/s320/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-1.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; If you&#39;re using a subdomain, like &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blog.mydomainname.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; then enter &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;blog&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; instead of &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; for the first CNAME pointing to &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ghs.google.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Then add a second CNAME with the values that were displayed by Blogger on the settings page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Mine were &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;dqbhffrggxdu&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; and &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;gv-lca7dpm4ctjmlm3l3jhfftuepgwgzosehj7i2gqrg7y7wv37hima.domainverify.googlehosted.com.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; but yours will be different. They are specific to the domain name your are trying to register.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQvTj-TFgf1N9G2Ew2TZl7JAESOw9Ip2dOsL3gwx39VTeOmIdkDCZYw6RgYO4BoTLRamzioxs-1esuq5huVX-CtS2zlKi65ZHYYZQcztqVcY2FSR65SwbUXzIOhyphenhyphenu3f8Cbgp9IjcJrSF1/s1600/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQvTj-TFgf1N9G2Ew2TZl7JAESOw9Ip2dOsL3gwx39VTeOmIdkDCZYw6RgYO4BoTLRamzioxs-1esuq5huVX-CtS2zlKi65ZHYYZQcztqVcY2FSR65SwbUXzIOhyphenhyphenu3f8Cbgp9IjcJrSF1/s320/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-2.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Finally add four A records with IPs &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;216.239.32.21&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;216.239.34.21&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;216.239.36.21&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt; and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;216.239.38.21&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;. Leave the Host entry empty.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKGJVKJwQGEpyftWT4pgMwIk-FjiHsxQZBYyf9RftQ10z4no4a1g4oHqABEsQCF2rNBUEOQpjzjVbkZkJe5bYyX_-Xa5fJ6DrhE-TmdUeYQ3Iw_GCGvq-Lcpek7WKiVJEaQRTRtE9bkY5z/s1600/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKGJVKJwQGEpyftWT4pgMwIk-FjiHsxQZBYyf9RftQ10z4no4a1g4oHqABEsQCF2rNBUEOQpjzjVbkZkJe5bYyX_-Xa5fJ6DrhE-TmdUeYQ3Iw_GCGvq-Lcpek7WKiVJEaQRTRtE9bkY5z/s320/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-3.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Your final dashboard should look something like this:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8z8h2c5vkk_pBb4WSnP1yKwEpnXNTmklX_m2VeiOVQqSkX2qAaYrI6nx3ae-R9apJ_FKJ6HEyd15fdyAaXCoGfGobpa2oP_0AcbLhGVzL3QhihIsoFUadIO8kjSYapuMnV8zNe5s-fXhb/s1600/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8z8h2c5vkk_pBb4WSnP1yKwEpnXNTmklX_m2VeiOVQqSkX2qAaYrI6nx3ae-R9apJ_FKJ6HEyd15fdyAaXCoGfGobpa2oP_0AcbLhGVzL3QhihIsoFUadIO8kjSYapuMnV8zNe5s-fXhb/s320/Screenshot-ClouDNS.net%253A+Domain+settings+-+Google+Chrome-4.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Optional eMail step:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If you are using email on the domain, you need to add two additional records in cloudNS to continue using 1and1 mail servers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The two records should be of type &quot;MX&quot;. Leave the &quot;Host&quot; field empty, enter &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mx00.1and1.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; in the &quot;Points to&quot; field with a priority of 10, and a second record with &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mx01.1and1.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; in the &quot;Points to&quot; field with a priority of 20.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Step 3: Configure 1and1.com&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So now, let&#39;s go to the &lt;a href=&quot;http://1and1.com/&quot;&gt;1and1.com&lt;/a&gt; Control Panel and configure your domain to use CloudNS for DNS services.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Your control panel should look something like this:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj54i-DkHRRmwPE_VFfcdsJ1mTvDNE1Za0ECINGSCiTPtG1URoFttcISxAWg4GUsNWZjECNYCp9Z06-hHn7gJQGKc-7ME1cY5ZHXRX_2AsI0uLdB-XKcR0mp2Rni0az_QtuA6EWAelfWI32/s1600/Screenshot-1%25261+Control+Panel+-+Google+Chrome.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj54i-DkHRRmwPE_VFfcdsJ1mTvDNE1Za0ECINGSCiTPtG1URoFttcISxAWg4GUsNWZjECNYCp9Z06-hHn7gJQGKc-7ME1cY5ZHXRX_2AsI0uLdB-XKcR0mp2Rni0az_QtuA6EWAelfWI32/s320/Screenshot-1%25261+Control+Panel+-+Google+Chrome.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Click the checkbox in front of the domain name and then select DNS -&amp;gt; Edit DNS Settings:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYoliRZUDIdaSTT-jQpsyeaWfqoY3fa8u_ZkqsK9SoLQ2WMKuZp1mFWsR-U7ZdBRIm9sQTq3ksOKU5PR3hlgLqXVtac3iMX0EE5VuPo84F9_VvlIuThyphenhypheneddwQXpxx0hDrSb9pkkMGDdSJy/s1600/Screenshot-1%25261+Control+Panel+-+Google+Chrome-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYoliRZUDIdaSTT-jQpsyeaWfqoY3fa8u_ZkqsK9SoLQ2WMKuZp1mFWsR-U7ZdBRIm9sQTq3ksOKU5PR3hlgLqXVtac3iMX0EE5VuPo84F9_VvlIuThyphenhypheneddwQXpxx0hDrSb9pkkMGDdSJy/s320/Screenshot-1%25261+Control+Panel+-+Google+Chrome-1.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the next screen, select &quot;DNS&quot; and &quot;My name server&quot; and enter the CloudNS name servers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;They are&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ns1.cloudns.net&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot;,&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ns2.cloudns.net&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot;,&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ns3.cloudns.net&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; and&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ns4.cloudns.net&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoDx1eAXx_iP4Yk-sacUEMIHq8XawV9UtAL0Bb0yDpGEzepIz1WtksYpwDt1LBp-fOFYUJP8xH9cjSizJVUVugjfvRRe57nmBuHknEoqdtcyWSqI2eWMDI_DXmdOgHiTUvDK6jQp9u-xf9/s1600/Screenshot-1%25261+Control+Panel+-+Google+Chrome-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;277&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoDx1eAXx_iP4Yk-sacUEMIHq8XawV9UtAL0Bb0yDpGEzepIz1WtksYpwDt1LBp-fOFYUJP8xH9cjSizJVUVugjfvRRe57nmBuHknEoqdtcyWSqI2eWMDI_DXmdOgHiTUvDK6jQp9u-xf9/s320/Screenshot-1%25261+Control+Panel+-+Google+Chrome-2.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now press &quot;Ok&quot; and it goes back to the Control Panel. The status of the domain will show &quot;updating&quot; and it can take up to 48h for 1and1.com to complete the update.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Step 4: Configure blogger.com&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once the update is done, go back to &lt;a href=&quot;http://blogger.com/&quot;&gt;blogger.com&lt;/a&gt;, back to the Advance settings shown in step 1, enter &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; + your domain name such as &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www.mydomainname.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; as the custom blog URL and press save. Blogger will verify your DNS settings and apply the new custom domain.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; Remember to enable the &quot;Redirect ....&quot; checkbox if you would like your domain name to also point to your blog like &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;http://mydomainname.com&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; without the &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;www&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&quot; in front.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzBJgC6LyCdpYIGTPYoQlSSGUAwx3kNngyzI5zC612tWem7tXnFuQFvUZl-WsAQAtfPe1ekCDhDZuInO8a2HX3oJVSEG-78lxyl2RJ-A5rwP-3HbYtMKyYBQuAbbVTjw-daLRjHHcmGTck/s1600/Screenshot-Blogger:+My+Blog+-+Basic+settings+-+Google+Chrome-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzBJgC6LyCdpYIGTPYoQlSSGUAwx3kNngyzI5zC612tWem7tXnFuQFvUZl-WsAQAtfPe1ekCDhDZuInO8a2HX3oJVSEG-78lxyl2RJ-A5rwP-3HbYtMKyYBQuAbbVTjw-daLRjHHcmGTck/s320/Screenshot-Blogger:+My+Blog+-+Basic+settings+-+Google+Chrome-2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You may still need to wait about 48h for all DNS servers to have mirrored the changes and point to Blogger instead of &lt;a href=&quot;http://1and1.com/&quot;&gt;1and1.com&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I hope this helped. Remember to share this article on Google+ and leave comments if I missed something or some steps need more explanations. Thanks.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://blog.mridey.com/2012/10/how-to-setup-your-blogger-blog-with.html</link><author>noreply@blogger.com (Marc P.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVORKzpYfMNd_3CXcN30p4GVG84nHoV4ll-VzV_Sp0jhyaLOoQkwhai39YeTwkaZcBbwdBXIyYnAQ-GL0FnDAnTYuyqJnD3AR53QpNkJ0s3f6mEiZaFMedr7KtzxEk9vh28uaHisagulfR/s72-c/Screenshot-Blogger%253A+My+Blog+-+Basic+settings+-+Google+Chrome.png" height="72" width="72"/><thr:total>217</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-5573028874123816866</guid><pubDate>Fri, 04 May 2012 05:13:00 +0000</pubDate><atom:updated>2013-04-01T05:37:40.160+11:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">Geo</category><category domain="http://www.blogger.com/atom/ns#">maps</category><category domain="http://www.blogger.com/atom/ns#">styles</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>Custom maps styles using the &quot;Styled Maps Wizard&quot;</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I&#39;ve just been asked for help on how to create a map with the Terrain background and no roads, no labels.&lt;br /&gt;
It is very easy to do using the &quot;Styled Maps Wizard&quot; available here:&lt;br /&gt;
&lt;a href=&quot;http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html&quot;&gt;http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Click on Map in the top right&lt;br /&gt;
- Select terrain ON&lt;br /&gt;
&lt;br /&gt;
At this point you should have a map with the terrain and labels.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://maps.googleapis.com/maps/api/staticmap?center=0,0&amp;amp;zoom=2&amp;amp;format=png&amp;amp;sensor=false&amp;amp;size=640x480&amp;amp;maptype=terrain&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://maps.googleapis.com/maps/api/staticmap?center=0,0&amp;amp;zoom=2&amp;amp;format=png&amp;amp;sensor=false&amp;amp;size=640x480&amp;amp;maptype=terrain&amp;amp;key=AIzaSyC3lDUXwbSoTpLd7dtX4G1CGZkfdQzruA4&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Click on &quot;All&quot; in the top left&lt;br /&gt;
- Click on &quot;Visibility&quot; -&amp;gt; Off&lt;br /&gt;
&lt;br /&gt;
At this point you should have a map with the terrain and no labels but no water either.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://maps.googleapis.com/maps/api/staticmap?center=0,0&amp;amp;zoom=2&amp;amp;format=png&amp;amp;sensor=false&amp;amp;size=640x480&amp;amp;maptype=terrain&amp;amp;style=visibility:off&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://maps.googleapis.com/maps/api/staticmap?center=0,0&amp;amp;zoom=2&amp;amp;format=png&amp;amp;sensor=false&amp;amp;size=640x480&amp;amp;maptype=terrain&amp;amp;style=visibility:off&amp;amp;key=AIzaSyC3lDUXwbSoTpLd7dtX4G1CGZkfdQzruA4&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Click on Add in the top left&lt;br /&gt;
- Click on Water in the top left&lt;br /&gt;
- Click &quot;Geometry&quot;&lt;br /&gt;
- Click on &quot;Visibility&quot; -&amp;gt; On&lt;br /&gt;
&lt;br /&gt;
Now you should have a map with terrain, water and no labels.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://maps.googleapis.com/maps/api/staticmap?center=0,0&amp;amp;zoom=2&amp;amp;format=png&amp;amp;sensor=false&amp;amp;size=640x480&amp;amp;maptype=terrain&amp;amp;style=visibility:off&amp;amp;style=feature:water|element:geometry|visibility:on&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://maps.googleapis.com/maps/api/staticmap?center=0,0&amp;amp;zoom=2&amp;amp;format=png&amp;amp;sensor=false&amp;amp;size=640x480&amp;amp;maptype=terrain&amp;amp;style=visibility:off&amp;amp;style=feature:water|element:geometry|visibility:on&amp;amp;key=AIzaSyC3lDUXwbSoTpLd7dtX4G1CGZkfdQzruA4&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Click on &quot;Show JSON&quot;&lt;br /&gt;
- It should display:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; stylers: [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { visibility: &quot;off&quot; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; },{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; featureType: &quot;water&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; elementType: &quot;geometry&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; stylers: [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { visibility: &quot;on&quot; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Use this value to style your map as follow:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var map = new google.maps.Map(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; document.getElementById(&#39;map_canvas&#39;),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; zoom: 8,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; center: new google.maps.LatLng(-34.397, 150.644),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mapTypeId: google.maps.MapTypeId.TERRAIN,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; styles: [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stylers: [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { visibility: &quot;off&quot; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; featureType: &quot;water&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elementType: &quot;geometry&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stylers: [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { visibility: &quot;on&quot; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Hope this helps :)&lt;/div&gt;
&lt;/div&gt;</description><link>http://blog.mridey.com/2012/05/custom-maps-styles-using-styled-maps.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-4863003496090810202</guid><pubDate>Tue, 04 Oct 2011 12:46:00 +0000</pubDate><atom:updated>2011-10-06T17:00:00.957+11:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">label</category><category domain="http://www.blogger.com/atom/ns#">maps</category><category domain="http://www.blogger.com/atom/ns#">marker</category><category domain="http://www.blogger.com/atom/ns#">StreetView</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>Dynamic markers in Maps API Javascript v3</title><description>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
  Another option for labels is to use dynamic markers.&lt;br /&gt;
  These are provided by the Google Chart tools API.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can set the shape, color and text of each marker.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
  The documentation for the markers can be found at&lt;/br&gt;
  &lt;a href=&quot;http://code.google.com/apis/chart/infographics/docs/dynamic_icons.html&quot;&gt;http://code.google.com/apis/chart/infographics/docs/dynamic_icons.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here&#39;s a simple example on how to display a marker and its shadow with custom text:&lt;br /&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;pre&gt;   
   var latLng = new google.maps.LatLng(40, -100);
   var marker = new google.maps.Marker({
      position: latLng,
      draggable: true,
      map: map,
      icon: new google.maps.MarkerImage(
        &quot;http://chart.googleapis.com/chart?chst=d_bubble_text_small&amp;amp;chld=bb|Label%20123|FF8080|000000&quot;,
        null, null, new google.maps.Point(0, 42)),
      shadow: new google.maps.MarkerImage(
        &quot;http://chart.googleapis.com/chart?chst=d_bubble_text_small_shadow&amp;amp;chld=bb|Label%20123&quot;,
        null, null, new google.maps.Point(0, 45))
    });
&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;And the marker should look like this:


&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div id=&quot;map_canvas&quot; style=&quot;height: 307px; width: 307px;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzRaenHLe_4N6Qii02Xcb2Jrhw5k_JeZs7SaZNwAkdVUDvazpcolfE1MsZ012eKfXa6hRhfoHdW34tXD9gITlpGLcYDmfa_Lk_zrXVmg9NLhEMEAcdQ1eLVGitXk9r9hyphenhyphenqj7X3wLaUB8vv/s1600/Picture+7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzRaenHLe_4N6Qii02Xcb2Jrhw5k_JeZs7SaZNwAkdVUDvazpcolfE1MsZ012eKfXa6hRhfoHdW34tXD9gITlpGLcYDmfa_Lk_zrXVmg9NLhEMEAcdQ1eLVGitXk9r9hyphenhyphenqj7X3wLaUB8vv/s1600/Picture+7.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;http://maps.google.com/maps/api/js?sensor=false&amp;callback=initialize_maps&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  function initialize_maps() {
    var latLng = new google.maps.LatLng(40, -100);

    var map = new google.maps.Map(document.getElementById(&#39;map_canvas&#39;), {
      zoom: 5,
      center: latLng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    });

    var marker = new google.maps.Marker({
      position: latLng,
      draggable: true,
      map: map,
      icon: new google.maps.MarkerImage(&quot;http://chart.googleapis.com/chart?chst=d_bubble_text_small&amp;chld=bb|Label%20123|FF8080|000000&quot;, null, null, new google.maps.Point(0, 42)),
      shadow: new google.maps.MarkerImage(&quot;http://chart.googleapis.com/chart?chst=d_bubble_text_small_shadow&amp;chld=bb|Label%20123&quot;, null, null, new google.maps.Point(0, 45))
    });
  }
&lt;/script&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://blog.mridey.com/2011/10/dynamic-markers-in-maps-api-javascript.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzRaenHLe_4N6Qii02Xcb2Jrhw5k_JeZs7SaZNwAkdVUDvazpcolfE1MsZ012eKfXa6hRhfoHdW34tXD9gITlpGLcYDmfa_Lk_zrXVmg9NLhEMEAcdQ1eLVGitXk9r9hyphenhyphenqj7X3wLaUB8vv/s72-c/Picture+7.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-8883975835102133745</guid><pubDate>Sun, 22 May 2011 07:31:00 +0000</pubDate><atom:updated>2011-05-23T08:54:01.718+10:00</atom:updated><title>Label overlay example for Google Maps API v3 - Revisited</title><description>A while back I published a &lt;a href=&quot;http://blog.mridey.com/2009/09/label-overlay-example-for-google-maps.html&quot;&gt;post&lt;/a&gt; showing how to add a label to a marker. I got a lot of comments on that post, in particular regarding adding support for visibility, zIndex and click event.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtmjOfEIjB8x4AAHLqD1LG9l-BLADufhmm4wURDKxV62CdUbpDndVR00XngB0Z0ZQjz4cmRb6wacGf7BwHZDkfAOadjJGWbwPsXtQ7f2qQviZvxyBjxvgqofubYBX-iBDBTbD7mvj-5qVO/s1600/Picture+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtmjOfEIjB8x4AAHLqD1LG9l-BLADufhmm4wURDKxV62CdUbpDndVR00XngB0Z0ZQjz4cmRb6wacGf7BwHZDkfAOadjJGWbwPsXtQ7f2qQviZvxyBjxvgqofubYBX-iBDBTbD7mvj-5qVO/s320/Picture+2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
So here&#39;s a revised version. &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;// Define the overlay, derived from google.maps.OverlayView&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;function Label(opt_options) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; // Initialization&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; this.setValues(opt_options);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; // Label specific&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var span = this.span_ = document.createElement(&#39;span&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; span.style.cssText = &#39;position: relative; left: -50%; top: -8px; &#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &#39;white-space: nowrap; border: 1px solid blue; &#39; +&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &#39;padding: 2px; background-color: white&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var div = this.div_ = document.createElement(&#39;div&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; div.appendChild(span);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; div.style.cssText = &#39;position: absolute; display: none&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Label.prototype = new google.maps.OverlayView;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;// Implement onAdd&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Label.prototype.onAdd = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var pane = this.getPanes().overlayImage;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; pane.appendChild(this.div_);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; // Ensures the label is redrawn if the text or position is changed.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var me = this;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; this.listeners_ = [&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.addListener(this, &#39;position_changed&#39;, function() { me.draw(); }),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.addListener(this, &#39;visible_changed&#39;, function() { me.draw(); }),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.addListener(this, &#39;clickable_changed&#39;, function() { me.draw(); }),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.addListener(this, &#39;text_changed&#39;, function() { me.draw(); }),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.addListener(this, &#39;zindex_changed&#39;, function() { me.draw(); }),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.addDomListener(this.div_, &#39;click&#39;, function() { &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (me.get(&#39;clickable&#39;)) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; google.maps.event.trigger(me, &#39;click&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; })&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; ];&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;// Implement onRemove&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Label.prototype.onRemove = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; this.div_.parentNode.removeChild(this.div_);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; // Label is removed from the map, stop updating its position/text.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; for (var i = 0, I = this.listeners_.length; i &amp;lt; I; ++i) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; google.maps.event.removeListener(this.listeners_[i]);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;// Implement draw&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Label.prototype.draw = function() {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var projection = this.getProjection();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var position = projection.fromLatLngToDivPixel(this.get(&#39;position&#39;));&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var div = this.div_;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; div.style.left = position.x + &#39;px&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; div.style.top = position.y + &#39;px&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var visible = this.get(&#39;visible&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; div.style.display = visible ? &#39;block&#39; : &#39;none&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var clickable = this.get(&#39;clickable&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; this.span_.style.cursor = clickable ? &#39;pointer&#39; : &#39;&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; var zIndex = this.get(&#39;zIndex&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; div.style.zIndex = zIndex;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; this.span_.innerHTML = this.get(&#39;text&#39;).toString();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And to use it, here&#39;s a little example:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Label Overlay Example&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot; src=&quot;label.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var marker;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; function initialize() {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var latLng = new google.maps.LatLng(40, -100);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var map = new google.maps.Map(document.getElementById(&#39;map_canvas&#39;), {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zoom: 5,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; center: latLng,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapTypeId: google.maps.MapTypeId.ROADMAP&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;marker = new google.maps.Marker({&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;position: latLng,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;draggable: true,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;zIndex: 1,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;map: map,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;optimized: false&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;});&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;var label = new Label({&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;map: map&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;});&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;label.bindTo(&#39;position&#39;, marker);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;label.bindTo(&#39;text&#39;, marker, &#39;position&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;label.bindTo(&#39;visible&#39;, marker);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;label.bindTo(&#39;clickable&#39;, marker);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;label.bindTo(&#39;zIndex&#39;, marker);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;google.maps.event.addListener(marker, &#39;click&#39;, function() { alert(&#39;Marker has been clicked&#39;); })&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;google.maps.event.addListener(label, &#39;click&#39;, function() { alert(&#39;Label has been clicked&#39;); })&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; function showHideMarker() {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;marker.setVisible(!marker.getVisible());  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; function pinUnpinMarker() {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;var draggable = marker.getDraggable();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;marker.setDraggable(!draggable);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;marker.setClickable(!draggable);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;body onload=&quot;initialize()&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;map_canvas&quot; style=&quot;height: 200px; width: 200px&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; onclick=&quot;showHideMarker();&quot;&amp;gt;Show/Hide Marker&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; onclick=&quot;pinUnpinMarker();&quot;&amp;gt;Pin/Unpin Marker&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The label can be used on its own or bound to a marker.&lt;br /&gt;
It supports:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;set(&#39;position&#39;, latLng);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;get(&#39;position&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;set(&#39;text&#39;, string);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;get(&#39;text);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;set(&#39;visible&#39;, boolean);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;get(&#39;visible&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;set(&#39;clickable&#39;, boolean);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;get(&#39;clickable&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;set(&#39;zIndex&#39;, index);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;get(&#39;zIndex&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and provides events:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;position_changed&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;text_changed&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;visible_changed&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;clickable_changed&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;zindex_changed&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;click&lt;/span&gt;</description><link>http://blog.mridey.com/2011/05/label-overlay-example-for-google-maps.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtmjOfEIjB8x4AAHLqD1LG9l-BLADufhmm4wURDKxV62CdUbpDndVR00XngB0Z0ZQjz4cmRb6wacGf7BwHZDkfAOadjJGWbwPsXtQ7f2qQviZvxyBjxvgqofubYBX-iBDBTbD7mvj-5qVO/s72-c/Picture+2.png" height="72" width="72"/><thr:total>59</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-8993895412612832311</guid><pubDate>Mon, 08 Nov 2010 11:49:00 +0000</pubDate><atom:updated>2010-11-08T22:49:43.559+11:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">maps</category><category domain="http://www.blogger.com/atom/ns#">StreetView</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>Using StreetViewService in Maps API Javascript v3</title><description>Based on my recent &lt;a href=&quot;http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-markers.html&quot;&gt;post&lt;/a&gt;, I&#39;ve added code to change the content of the infowindow if the panorama we try to display doesn&#39;t exist. This needs to be done using StreetViewService as currently the StreetViewPanorama doesn&#39;t have an event or property to notify us of a failure to load a panorama.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_SECbW4uPgAM/TNfimS_pLUI/AAAAAAAAAC8/gFRl3GHMryw/s1600/Picture+7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;http://4.bp.blogspot.com/_SECbW4uPgAM/TNfimS_pLUI/AAAAAAAAAC8/gFRl3GHMryw/s320/Picture+7.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The code that changed:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;// Create a StreetViewService to be able to check
    // if a given LatLng has a corresponding panorama.
    var service = new google.maps.StreetViewService();
    
    // Set the infowindow content and display it on marker click.
    // Use a &#39;pin&#39; MVCObject as the order of the domready and marker click events is not garanteed.
    function openInfoWindow(marker) {
      title.innerHTML = marker.getTitle();
      streetview.style[&#39;visibility&#39;] = &#39;hidden&#39;;
      service.getPanoramaByLocation(marker.getPosition(), 50, function(result, status) {
        if (status == google.maps.StreetViewStatus.OK) {
          pin.set(&quot;position&quot;, marker.getPosition());
          streetview.style[&#39;visibility&#39;] = &#39;&#39;;
        }
      })
      infowindow.open(map, marker);
    }
&lt;/pre&gt;&lt;br /&gt;
The StreetViewService (see &lt;a href=&quot;http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewService&quot;&gt;Reference&lt;/a&gt; and &lt;a href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/streetview-service.html&quot;&gt;Example&lt;/a&gt;) returns a status code. If it&#39;s OK, I make the DIV that contains the StreetView panorama visible. I could have also added text.&lt;br /&gt;
&lt;br /&gt;
And the full code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;!DOCTYPE html&amp;gt; 
&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&amp;gt; 
&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/&amp;gt; 
&amp;lt;title&amp;gt;Google Maps JavaScript API v3 Example: Markers, Info Window and StreetView&amp;lt;/title&amp;gt; 
&amp;lt;link href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/default.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&amp;gt;&amp;lt;/script&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; 
  function initialize() {

    // Create the map 
    // No need to specify zoom and center as we fit the map further down.
    var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), {
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      streetViewControl: false
    });
 
    // Create the shared infowindow with two DIV placeholders
    // One for a text string, the other for the StreetView panorama.
    var content = document.createElement(&quot;DIV&quot;);
    var title = document.createElement(&quot;DIV&quot;);
    content.appendChild(title);
    var streetview = document.createElement(&quot;DIV&quot;);
    streetview.style.width = &quot;200px&quot;;
    streetview.style.height = &quot;200px&quot;;
    content.appendChild(streetview);
    var infowindow = new google.maps.InfoWindow({
      content: content
    });

    // Define the list of markers.
    // This could be generated server-side with a script creating the array.
    var markers = [
      { lat: -33.85, lng: 151.05, name: &quot;marker 1&quot; },
      { lat: -33.90, lng: 151.35, name: &quot;marker 2&quot; },
      { lat: -33.95, lng: 151.15, name: &quot;marker 3&quot; },
      { lat: -33.85, lng: 151.15, name: &quot;marker 4&quot; }
    ];

    // Create the markers
    for (index in markers) addMarker(markers[index]);
    function addMarker(data) {
      var marker = new google.maps.Marker({
        position: new google.maps.LatLng(data.lat, data.lng),
        map: map,
        title: data.name
      });
      google.maps.event.addListener(marker, &quot;click&quot;, function() {
        openInfoWindow(marker);
      });
    }

    // Zoom and center the map to fit the markers
    // This logic could be conbined with the marker creation.
    // Just keeping it separate for code clarity.
    var bounds = new google.maps.LatLngBounds();
    for (index in markers) {
      var data = markers[index];
      bounds.extend(new google.maps.LatLng(data.lat, data.lng));
    }
    map.fitBounds(bounds);

    // Handle the DOM ready event to create the StreetView panorama
    // as it can only be created once the DIV inside the infowindow is loaded in the DOM.
    var panorama = null;
    var pin = new google.maps.MVCObject();
    google.maps.event.addListenerOnce(infowindow, &quot;domready&quot;, function() {
      panorama = new google.maps.StreetViewPanorama(streetview, {
          navigationControl: false,
          enableCloseButton: false,
          addressControl: false,
          linksControl: false,
          visible: true
      });
      panorama.bindTo(&quot;position&quot;, pin);
    });

    // Create a StreetViewService to be able to check
    // if a given LatLng has a corresponding panorama.
    var service = new google.maps.StreetViewService();
    
    // Set the infowindow content and display it on marker click.
    // Use a &#39;pin&#39; MVCObject as the order of the domready and marker click events is not garanteed.
    function openInfoWindow(marker) {
      title.innerHTML = marker.getTitle();
      streetview.style[&#39;visibility&#39;] = &#39;hidden&#39;;
      service.getPanoramaByLocation(marker.getPosition(), 50, function(result, status) {
        if (status == google.maps.StreetViewStatus.OK) {
          pin.set(&quot;position&quot;, marker.getPosition());
          streetview.style[&#39;visibility&#39;] = &#39;&#39;;
        }
      })
      infowindow.open(map, marker);
    }
  }
&amp;lt;/script&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body onload=&quot;initialize()&quot;&amp;gt; 
  &amp;lt;div id=&quot;map_canvas&quot;&amp;gt;&amp;lt;/div&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</description><link>http://blog.mridey.com/2010/11/using-streetviewservice-in-maps-api.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_SECbW4uPgAM/TNfimS_pLUI/AAAAAAAAAC8/gFRl3GHMryw/s72-c/Picture+7.png" height="72" width="72"/><thr:total>8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-3602039771748607799</guid><pubDate>Mon, 08 Nov 2010 11:17:00 +0000</pubDate><atom:updated>2010-11-08T22:17:24.802+11:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">maps</category><category domain="http://www.blogger.com/atom/ns#">StreetView</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>Maps API Javascript v3 - Multiple Markers with multiple infowindows and StreetView</title><description>Similar to the previous post, I have a map with multiple markers but multiple InfoWindows, one per marker. When a marker is clicked, its infowindow is displayed with the marker title and the StreetView panorama at this location.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_SECbW4uPgAM/TNfb_XWbajI/AAAAAAAAAC4/yLUgutMKv9I/s1600/Picture+6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;http://1.bp.blogspot.com/_SECbW4uPgAM/TNfb_XWbajI/AAAAAAAAAC4/yLUgutMKv9I/s320/Picture+6.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
What to retain from this example:&lt;br /&gt;
&lt;br /&gt;
- How to add multiple markers to the map&lt;br /&gt;
- How to manage one InfoWindow per marker&lt;br /&gt;
- How to add the StreetView panorama as well as other text in the infowindow&lt;br /&gt;
- How to zoom the map to include all the markers&lt;br /&gt;
&lt;br /&gt;
I&#39;ll be posting another blog tomorrow showing how to use StreetViewService to detect if a panorama doesn&#39;t exist.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s the code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&amp;gt; 
&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/&amp;gt; 
&amp;lt;title&amp;gt;Google Maps JavaScript API v3 Example: Markers, Info Window and StreetView&amp;lt;/title&amp;gt; 
&amp;lt;link href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/default.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&amp;gt;&amp;lt;/script&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; 
  function initialize() {

    // Create the map 
    // No need to specify zoom and center as we fit the map further down.
    var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), {
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      streetViewControl: false
    });
 
    // Define the list of markers.
    // This could be generated server-side with a script creating the array.
    var markers = [
      { lat: -33.85, lng: 151.05, name: &quot;marker 1&quot; },
      { lat: -33.90, lng: 151.10, name: &quot;marker 2&quot; },
      { lat: -33.95, lng: 151.15, name: &quot;marker 3&quot; },
      { lat: -33.85, lng: 151.15, name: &quot;marker 4&quot; }
    ];

    // Create the markers ad infowindows.
    for (index in markers) addMarker(markers[index]);
    function addMarker(data) {
      // Create the marker
      var marker = new google.maps.Marker({
        position: new google.maps.LatLng(data.lat, data.lng),
        map: map,
        title: data.name
      });
    
      // Create the infowindow with two DIV placeholders
      // One for a text string, the other for the StreetView panorama.
      var content = document.createElement(&quot;DIV&quot;);
      var title = document.createElement(&quot;DIV&quot;);
      title.innerHTML = data.name;
      content.appendChild(title);
      var streetview = document.createElement(&quot;DIV&quot;);
      streetview.style.width = &quot;200px&quot;;
      streetview.style.height = &quot;200px&quot;;
      content.appendChild(streetview);
      var infowindow = new google.maps.InfoWindow({
        content: content
      });

      // Open the infowindow on marker click
      google.maps.event.addListener(marker, &quot;click&quot;, function() {
        infowindow.open(map, marker);
      });
    
      // Handle the DOM ready event to create the StreetView panorama
      // as it can only be created once the DIV inside the infowindow is loaded in the DOM.
      google.maps.event.addListenerOnce(infowindow, &quot;domready&quot;, function() {
        var panorama = new google.maps.StreetViewPanorama(streetview, {
            navigationControl: false,
            enableCloseButton: false,
            addressControl: false,
            linksControl: false,
            visible: true,
            position: marker.getPosition()
        });
      });
    }

    // Zoom and center the map to fit the markers
    // This logic could be conbined with the marker creation.
    // Just keeping it separate for code clarity.
    var bounds = new google.maps.LatLngBounds();
    for (index in markers) {
      var data = markers[index];
      bounds.extend(new google.maps.LatLng(data.lat, data.lng));
    }
    map.fitBounds(bounds);
  }
&amp;lt;/script&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body onload=&quot;initialize()&quot;&amp;gt; 
  &amp;lt;div id=&quot;map_canvas&quot;&amp;gt;&amp;lt;/div&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</description><link>http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-markers_08.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_SECbW4uPgAM/TNfb_XWbajI/AAAAAAAAAC4/yLUgutMKv9I/s72-c/Picture+6.png" height="72" width="72"/><thr:total>39</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-3463916620923418606</guid><pubDate>Mon, 08 Nov 2010 10:45:00 +0000</pubDate><atom:updated>2010-11-08T21:45:28.849+11:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">maps</category><category domain="http://www.blogger.com/atom/ns#">StreetView</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>Maps API Javascript V3 - Multiple Markers, InfoWindow and StreetView</title><description>Another interesting example. For this blog, I have a map with multiple markers and a single InfoWindow shared between the markers. When a marker is clicked, the infowindow is displayed with the marker title and the StreetView panorama at this location.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_SECbW4uPgAM/TNfUdQJl1UI/AAAAAAAAACk/RgNzDvNKmxQ/s1600/Picture+4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; src=&quot;http://1.bp.blogspot.com/_SECbW4uPgAM/TNfUdQJl1UI/AAAAAAAAACk/RgNzDvNKmxQ/s320/Picture+4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
What to retain from this example:&lt;br /&gt;
&lt;br /&gt;
- How to add multiple markers to the map&lt;br /&gt;
- How to share a single InfoWindow for all the markers&lt;br /&gt;
- How to add the StreetView panorama as well as other text in the infowindow&lt;br /&gt;
- How to zoom the map to include all the markers&lt;br /&gt;
&lt;br /&gt;
I&#39;ll be posting another blog tomorrow showing how to use multiple infowindows and how to use StreetViewService to detect if a panorama doesn&#39;t exist.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s the code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&amp;gt; 
&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/&amp;gt; 
&amp;lt;title&amp;gt;Google Maps JavaScript API v3 Example: Markers, Info Window and StreetView&amp;lt;/title&amp;gt; 
&amp;lt;link href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/default.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&amp;gt;&amp;lt;/script&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; 
  function initialize() {

    // Create the map 
    // No need to specify zoom and center as we fit the map further down.
    var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), {
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      streetViewControl: false
    });
 
    // Create the shared infowindow with two DIV placeholders
    // One for a text string, the other for the StreetView panorama.
    var content = document.createElement(&quot;DIV&quot;);
    var title = document.createElement(&quot;DIV&quot;);
    content.appendChild(title);
    var streetview = document.createElement(&quot;DIV&quot;);
    streetview.style.width = &quot;200px&quot;;
    streetview.style.height = &quot;200px&quot;;
    content.appendChild(streetview);
    var infowindow = new google.maps.InfoWindow({
   content: content
    });

    // Define the list of markers.
    // This could be generated server-side with a script creating the array.
    var markers = [
      { lat: -33.85, lng: 151.05, name: &quot;marker 1&quot; },
      { lat: -33.90, lng: 151.10, name: &quot;marker 2&quot; },
      { lat: -33.95, lng: 151.15, name: &quot;marker 3&quot; },
      { lat: -33.85, lng: 151.15, name: &quot;marker 4&quot; }
    ];

    // Create the markers
    for (index in markers) addMarker(markers[index]);
    function addMarker(data) {
   var marker = new google.maps.Marker({
  position: new google.maps.LatLng(data.lat, data.lng),
  map: map,
        title: data.name
   });
   google.maps.event.addListener(marker, &quot;click&quot;, function() {
  openInfoWindow(marker);
   });
    }

    // Zoom and center the map to fit the markers
    // This logic could be conbined with the marker creation.
    // Just keeping it separate for code clarity.
    var bounds = new google.maps.LatLngBounds();
    for (index in markers) {
   var data = markers[index];
   bounds.extend(new google.maps.LatLng(data.lat, data.lng));
 }
 map.fitBounds(bounds);

    // Handle the DOM ready event to create the StreetView panorama
    // as it can only be created once the DIV inside the infowindow is loaded in the DOM.
    var panorama = null;
    var pin = new google.maps.MVCObject();
    google.maps.event.addListenerOnce(infowindow, &quot;domready&quot;, function() {
      panorama = new google.maps.StreetViewPanorama(streetview, {
       navigationControl: false,
       enableCloseButton: false,
       addressControl: false,
       linksControl: false,
       visible: true
      });
      panorama.bindTo(&quot;position&quot;, pin);
    });
    
    // Set the infowindow content and display it on marker click.
    // Use a &#39;pin&#39; MVCObject as the order of the domready and marker click events is not garanteed.
    function openInfoWindow(marker) {
   title.innerHTML = marker.getTitle();
   pin.set(&quot;position&quot;, marker.getPosition());
   infowindow.open(map, marker);
    }
  }
&amp;lt;/script&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body onload=&quot;initialize()&quot;&amp;gt; 
  &amp;lt;div id=&quot;map_canvas&quot;&amp;gt;&amp;lt;/div&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</description><link>http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-markers.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_SECbW4uPgAM/TNfUdQJl1UI/AAAAAAAAACk/RgNzDvNKmxQ/s72-c/Picture+4.png" height="72" width="72"/><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-2102418542919100774</guid><pubDate>Fri, 05 Nov 2010 12:11:00 +0000</pubDate><atom:updated>2010-11-05T23:11:16.599+11:00</atom:updated><title>How to display a map inside StreetView</title><description>It&#39;s fairly easy to display a small map in the corner of a StreetView panorama.&lt;br /&gt;
You just need to add a small map on top of the StreetView panorama and bind it.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_SECbW4uPgAM/TNP0A4I63tI/AAAAAAAAACg/6xXtELTK6sU/s1600/Picture+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;http://4.bp.blogspot.com/_SECbW4uPgAM/TNP0A4I63tI/AAAAAAAAACg/6xXtELTK6sU/s320/Picture+3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;!DOCTYPE html&amp;gt; 
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot;&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&amp;gt; 
&amp;lt;title&amp;gt;Google Maps JavaScript API Example: Street View with Map&amp;lt;/title&amp;gt; 
&amp;lt;link href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/standard.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt; 
&amp;lt;script src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; 
 
  function initialize() {
    var panorama = new  google.maps.StreetViewPanorama(document.getElementById(&quot;pano&quot;), {
   position: new google.maps.LatLng(42.345573,-71.098326),
   visible: true
    });
    var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), {
      center: new google.maps.LatLng(42.345573,-71.098326),
      zoom: 14,
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      streetViewControl: true,
      streetView: panorama
    });

    google.maps.event.addListener(panorama, &quot;position_changed&quot;, function() {
   map.setCenter(panorama.getPosition());
    });
  }
&amp;lt;/script&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body onload=&quot;initialize()&quot;&amp;gt;
  &amp;lt;div style=&quot;position:absolute;&quot;&amp;gt; 
    &amp;lt;div id=&quot;pano&quot; style=&quot;z-index:0; width: 800px; height: 600px;&quot;&amp;gt;&amp;lt;/div&amp;gt; 
    &amp;lt;div id=&quot;map_canvas&quot; style=&quot;z-index:1; position:absolute; right:0px; bottom:0px; width: 200px; height: 150px&quot;&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</description><link>http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_SECbW4uPgAM/TNP0A4I63tI/AAAAAAAAACg/6xXtELTK6sU/s72-c/Picture+3.png" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-527015495092495093</guid><pubDate>Fri, 05 Nov 2010 11:36:00 +0000</pubDate><atom:updated>2010-11-05T22:36:01.335+11:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">maps</category><category domain="http://www.blogger.com/atom/ns#">StreetView</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>How to embed StreetView in an infowindow</title><description>I&#39;ve received a number of queries on how to get StreetView inside an infowindow showing the panorama of the marker bound to the infowindow.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_SECbW4uPgAM/TNPry0hit6I/AAAAAAAAACc/Wv00oU4TeIQ/s1600/Picture+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;http://3.bp.blogspot.com/_SECbW4uPgAM/TNPry0hit6I/AAAAAAAAACc/Wv00oU4TeIQ/s320/Picture+1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Here&#39;s a quick example.&lt;br /&gt;
Click on the marker to display the infowindow.&lt;br /&gt;
Drag the marker to get a different panorama.&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&amp;gt; 
&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/&amp;gt; 
&amp;lt;title&amp;gt;Google Maps JavaScript API v3 Example: Info Window with StreetView&amp;lt;/title&amp;gt; 
&amp;lt;link href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/default.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&amp;gt;&amp;lt;/script&amp;gt; 
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; 
function initialize() {
var myLatlng = new google.maps.LatLng(-33.866943,151.195512);
var myOptions = {
zoom: 12,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false
}

var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), myOptions);

var contentString = &#39;&amp;lt;div id=&quot;content&quot; style=&quot;width:200px;height:200px;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;;

var infowindow = new google.maps.InfoWindow({
content: contentString
});

var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: &#39;Click Me&#39;,
draggable: true
});

google.maps.event.addListener(marker, &#39;click&#39;, function() {
infowindow.open(map, marker);
});

var pano = null;
google.maps.event.addListener(infowindow, &#39;domready&#39;, function() {
if (pano != null) {
pano.unbind(&quot;position&quot;);
pano.setVisible(false);
}
pano = new google.maps.StreetViewPanorama(document.getElementById(&quot;content&quot;), {
navigationControl: true,
navigationControlOptions: {style: google.maps.NavigationControlStyle.ANDROID},
enableCloseButton: false,
addressControl: false,
linksControl: false
});
pano.bindTo(&quot;position&quot;, marker);
pano.setVisible(true);
});

google.maps.event.addListener(infowindow, &#39;closeclick&#39;, function() {
pano.unbind(&quot;position&quot;);
pano.setVisible(false);
pano = null;
});

}

&amp;lt;/script&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body onload=&quot;initialize()&quot;&amp;gt; 
&amp;lt;div id=&quot;map_canvas&quot;&amp;gt;&amp;lt;/div&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</description><link>http://blog.mridey.com/2010/11/how-to-embed-streetview-in-infowindow.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_SECbW4uPgAM/TNPry0hit6I/AAAAAAAAACc/Wv00oU4TeIQ/s72-c/Picture+1.png" height="72" width="72"/><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-5622807421191618838</guid><pubDate>Thu, 27 May 2010 04:30:00 +0000</pubDate><atom:updated>2010-08-24T10:43:37.399+10:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Api</category><category domain="http://www.blogger.com/atom/ns#">Geo</category><category domain="http://www.blogger.com/atom/ns#">StreetView</category><category domain="http://www.blogger.com/atom/ns#">v3</category><title>How to create and display a custom Street View panorama using Maps Javascript API v3</title><description>&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-size: 13px;&quot;&gt;To display a custom panorama, first you need a tileset. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-size: 13px;&quot;&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;There are no restrictions to the tileset size or aspect ratio, the tile size or aspect ratio and the number of tiles used.&lt;/div&gt;&lt;div&gt;Just know that StreetView uses an equirectangular projection (&lt;a href=&quot;http://en.wikipedia.org/wiki/Equirectangular_projection&quot; style=&quot;color: #114170;&quot; target=&quot;_blank&quot;&gt;http://en.wikipedia.org/wiki/&lt;wbr&gt;&lt;/wbr&gt;Equirectangular_projection&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;so the panorama will be stretched to wrap exactly around a sphere horizontally and exactly half a sphere vertically. For this reason, a panorama with an aspect ratio 2:1 is best.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;There are many tools on the market to create the initial panorama. Look for &lt;a href=&quot;http://www.google.com.au/search?q=tile+stitching&quot;&gt;tile stitching&lt;/a&gt;. Place a digital camera on a tripod, take enough pictures to cover every point of view from top to bottom, all around. Then use the stitching software to create a cylindrical projection of you panorama. If you are not covering the panorama from top to bottom, create the panorama as if you had and fill in the missing space with a neutral color.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Once you have created your original panorama and you have decided on the tile size, you need to create each version of the panorama for successive 1/2 height 1/2 width sizes until the panorama fits into one tile.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;For example, if you have a panorama of 6000 * 3000 pixels and you use a 512 * 512 tile size, you will need to create:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;- panorama 6000 * 3000 (12*6 tiles)&lt;/div&gt;&lt;div&gt;&lt;div&gt;- panorama 3000 * 1500 (6*3 tiles)&lt;/div&gt;&lt;div&gt;&lt;div&gt;- panorama 1500 * 750 (3*2 tiles)&lt;/div&gt;&lt;div&gt;&lt;div&gt;- panorama 750 * 375 (2*1 tiles)&lt;/div&gt;&lt;div&gt;&lt;div&gt;- panorama 375 * 187 (1*1 tile)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;When the tiles cover more area than the panorama, have the unused section of the right most tile replicate the left most tile, and the unused section of the bottom most tile filled with a neutral color.&lt;/div&gt;&lt;div&gt;The panorama with a single tile is zoom = 0, then 1,2,3,4 .. so in the example above, the largest panorama is zoom 4.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Once you have created the panoramas, cut them into tiles and name each tile according to its position and zoom level. The top left tile is always tile (0,0).&lt;/div&gt;&lt;div&gt;For the rest of this email, i&#39;ll assume that the naming convention used for the tiles is &quot;panorama_z_x_y.jpg&quot;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now the minimum required to display this panorama is:&lt;/div&gt;&lt;pre&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;        var panorama = new google.maps.&lt;wbr&gt;&lt;/wbr&gt;StreetViewPanorama(&lt;/div&gt;&lt;div&gt;            document.getElementById(&#39;&lt;wbr&gt;&lt;/wbr&gt;streetview&#39;)&lt;/div&gt;&lt;div&gt;        );&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;        panorama.&lt;wbr&gt;&lt;/wbr&gt;registerPanoProvider(&lt;wbr&gt;&lt;/wbr&gt;function(pano) {&lt;/div&gt;&lt;div&gt;          return {&lt;/div&gt;&lt;div&gt;            &lt;b&gt;tiles&lt;/b&gt;: {&lt;/div&gt;&lt;div&gt;              tileSize: new google.maps.Size(512, 512),&lt;/div&gt;&lt;div&gt;              worldSize: new google.maps.Size(6000, 3000),&lt;/div&gt;&lt;div&gt;              getTileUrl: function(room, zoom, x, y) {&lt;/div&gt;&lt;div&gt;                return &quot;http://mydomain/somepath/&quot; + room + &#39;_&#39; + zoom + &#39;_&#39; + x + &#39;_&#39; + y + &#39;.jpg&#39;;&lt;/div&gt;&lt;div&gt;              }&lt;/div&gt;&lt;div&gt;          };&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;        panorama.setPano(&#39;panorama&#39;&lt;wbr&gt;&lt;/wbr&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;If you want to display an address, a copyright and navigation links, the data to be returned looks like:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre&gt;&lt;div&gt;&lt;div&gt;        var panorama = new google.maps.&lt;wbr&gt;&lt;/wbr&gt;StreetViewPanorama(&lt;/div&gt;&lt;div&gt;            document.getElementById(&#39;&lt;wbr&gt;&lt;/wbr&gt;streetview&#39;)&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;, monospace;&quot;&gt;        );&lt;/span&gt;&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;        panorama.&lt;wbr&gt;&lt;/wbr&gt;registerPanoProvider(&lt;wbr&gt;&lt;/wbr&gt;function(pano) {&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;, monospace;&quot;&gt;          return {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            location: {&lt;/div&gt;&lt;div&gt;              pano: pano,&lt;/div&gt;&lt;div&gt;              &lt;b&gt;description&lt;/b&gt;: &quot;My panorama&quot;&lt;/div&gt;&lt;div&gt;            },&lt;/div&gt;&lt;div&gt;            &lt;b&gt;links&lt;/b&gt;: links, // an array of StreetViewLink.&lt;/div&gt;&lt;div&gt;            &lt;b&gt;copyright&lt;/b&gt;: &#39;Imagery (c) 2009 Me&#39;,&lt;/div&gt;&lt;div&gt;            tiles: {&lt;/div&gt;&lt;div&gt;              tileSize: new google.maps.Size(512, 512),&lt;/div&gt;&lt;div&gt;              worldSize: new google.maps.Size(6000, 3000),&lt;/div&gt;&lt;div&gt;              &lt;b&gt;originHeading&lt;/b&gt;: 90, // To align the panorama with the headings in the links.&lt;/div&gt;&lt;div&gt;              getTileUrl: function(room, zoom, x, y) {&lt;/div&gt;&lt;div&gt;                return &quot;http://mydomain/somepath/&quot; + room + &#39;_&#39; + zoom + &#39;_&#39; + x + &#39;_&#39; + y + &#39;.jpg&#39;;&lt;/div&gt;&lt;div&gt;              }&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;          };&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;        panorama.setPano(&#39;panorama&#39;&lt;wbr&gt;&lt;/wbr&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The originHeading is the compass reading at the point where the left and right borders of the panorama join. &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;For example, have a look at this tile set: &lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Zoom 0:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://syd-office-panos.appspot.com/p/reception_0_0_0.jpg&quot;&gt;http://syd-office-panos.appspot.com/p/reception_0_0_0.jpg&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Zoom 1:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://syd-office-panos.appspot.com/p/reception_1_0_0.jpg&quot;&gt;http://syd-office-panos.appspot.com/p/reception_1_0_0.jpg&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://syd-office-panos.appspot.com/p/reception_1_1_0.jpg&quot;&gt;http://syd-office-panos.appspot.com/p/reception_1_1_0.jpg&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;To test this tileset, add this code on your page:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;function initialize() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;  var panorama = new google.maps.StreetViewPanorama(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;    document.getElementById(&#39;streetview&#39;),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;    {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;      panoProvider: function(pano) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;        return {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;          location: {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            pano: pano,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            description: &#39;Google Australia - Reception&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;          },&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;          copyright: &#39;Imagery \xA9 2010 Google Inc.&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;          links: [],&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;          tiles: {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            tileSize: new google.maps.Size(512, 512),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            worldSize: new google.maps.Size(8192, 4096),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            originHeading: 0,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            getTileUrl: function(room, zoom, x, y) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;              return &#39;http://syd-office-panos.appspot.com/p/reception_&#39; +&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;                  zoom + &#39;_&#39; + x + &#39;_&#39; + y + &#39;.jpg&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;            }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;          }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;        };&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;      },&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;      pano: &#39;google&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;  );&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://blog.mridey.com/2010/05/how-to-create-and-display-custom.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>15</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-905688989501106986</guid><pubDate>Thu, 20 May 2010 02:17:00 +0000</pubDate><atom:updated>2010-05-27T11:02:46.665+10:00</atom:updated><title>Custom panoramas in Maps Javascript API v3 - Street View</title><description>&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to display a custom panorama &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;Register a pano provider in the panorama that returns a StreetViewPanoramaData. The critical element is the &#39;tiles&#39; property that defines the set of tiles required for the panorama.&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;panorama.registerPanoProvider(function(pano) {&lt;br /&gt;return {&lt;br /&gt;location: {&lt;br /&gt;pano: pano,&lt;br /&gt;},&lt;br /&gt;tiles: {&lt;br /&gt;tileSize: new google.maps.Size(256, 256),&lt;br /&gt;worldSize: new google.maps.Size(256 * 64, 256 * 32),&lt;br /&gt;originHeading: 110,&lt;br /&gt;getTileUrl: function(pano, zoom, x, y) {&lt;br /&gt;return &#39;http://someurl/somepath/&#39; + pano + &#39;/&#39; + zoom + &#39;_&#39; + x + &#39;_&#39; + y + &#39;.png&#39;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;});&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to set the address text in a custom panorama&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in; &quot;&gt;&lt;span&gt;Set the description value of the StreetViewLocation in the &lt;/span&gt;StreetViewPanoramaData object return by the panoProvider.&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;panorama.registerPanoProvider(function(pano) {&lt;br /&gt;return {&lt;br /&gt;location: {&lt;br /&gt;...&lt;br /&gt;description: &#39;Address Text&#39;&lt;br /&gt;},&lt;br /&gt;...&lt;br /&gt;};&lt;br /&gt;});&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to set the copyright in a custom panorama &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;Set the copyright value in the &lt;/span&gt;StreetViewPanoramaData object return by the panoProvider.&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;panorama.registerPanoProvider(function(pano) {&lt;br /&gt;return {&lt;br /&gt;copyright: &#39;Copyright text&#39;,&lt;br /&gt;...&lt;br /&gt;};&lt;br /&gt;});&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to set the links in a custom panorama &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;Provide a links array of StreetViewLink in the StreetViewPanoramaData object return by the panoProvider.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;panorama.registerPanoProvider(function(pano) {&lt;br /&gt;return {&lt;br /&gt;links: [&lt;br /&gt;{&lt;br /&gt;&#39;heading&#39;: 171,&lt;br /&gt;&#39;description&#39; : &#39;Link Text 1&#39;,&lt;br /&gt;&#39;pano&#39; : &#39;5pXLKKqtDowwU0mrpx8pWw&#39;&lt;br /&gt;},&lt;br /&gt;{&lt;br /&gt;&#39;heading&#39;: 351,&lt;br /&gt;&#39;description&#39; : &#39;Link Text 2&#39;,&lt;br /&gt;&#39;pano&#39; : &#39;0682ricVXBNcNuEcpSb-rA&#39;&lt;br /&gt;}&lt;br /&gt;],&lt;br /&gt;...&lt;br /&gt;};&lt;br /&gt;});&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to set specify the color and opacity of a link in a custom panorama&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;Set the roadColor and roadOpacity fields in the StreetViewLink objects in the links array.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;span&gt;panorama.registerPanoProvider(function(pano) {&lt;br /&gt;return {&lt;br /&gt;links: [&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;&#39;roadColor&#39; : &#39;#0020C0&#39;,&lt;br /&gt;&#39;roadOpacity&#39; : 0.6&lt;br /&gt;},&lt;br /&gt;...&lt;br /&gt;],&lt;br /&gt;...&lt;br /&gt;};&lt;br /&gt;});&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://blog.mridey.com/2010/05/custom-panoramas-in-maps-javascript-api.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-1681414390626004796</guid><pubDate>Thu, 20 May 2010 02:13:00 +0000</pubDate><atom:updated>2011-09-27T16:20:26.348+10:00</atom:updated><title>Controls in Maps Javascript API v3 - Street View</title><description>&lt;p&gt;Controls in Street View are very similar to the Map controls.&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to show/hide the address control&lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.set(&#39;addressControl&#39;, true/false); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;addressControl: true/false&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;how to position the address control in the panorama &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;&#39;addressControlOptions&#39;: {&lt;br /&gt;&#39;position&#39;: google.maps.ControlPosition.TOP_RIGHT,&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to show/hide the links control &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.set(&#39;linksControl&#39;, true/false); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;linksControl: true/false&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to add a link in the links control &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;var links = panorama.getLinks();&lt;br /&gt;links.push({&lt;br /&gt;&#39;yaw&#39;: 150,&lt;br /&gt;&#39;description&#39; : &#39;For Sale&#39;,&lt;br /&gt;&#39;pano&#39; : &#39;entrance&#39;,&lt;br /&gt;&#39;roadColor&#39;: &#39;blue&#39;,&lt;br /&gt;&#39;roadOpacity&#39;: 0.4&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;then&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setLinks(links); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;links: links&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.notify(&#39;links&#39;); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;how to add a custom control in the panorama &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;var aLink = document.createElement(&#39;a&#39;);&lt;br /&gt;aLink.innerHTML = &quot;Hello&quot;;&lt;br /&gt;aLink.href = &quot;http://google.com&quot;;&lt;br /&gt;panorama.controls[google.maps.ControlPosition.BOTTOM].push(aLink);&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to show/hide the close button &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.set(&#39;enableCloseButton&#39;, true/false); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;enableCloseButton: true/false&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to detect the close button has been clicked &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;google.maps.event.addListener(panorama, &#39;closeclick&#39;, function() {}); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to show/hide the Navigation controls &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.set(&#39;navigationControl&#39;, true/false); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;navigationControl: true/false&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;How to select the style and position of the navigation controls &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;&lt;font class=&quot;Apple-style-span&quot;&gt; &lt;/font&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.set(&#39;navigationControlOptions&#39;, {&lt;br /&gt;position: google.maps.ControlPosition.TOP_LEFT,&lt;br /&gt;style: google.maps.NavigationControlStyle.ZOOM_PAN&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;or&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;panorama.setOptions({&lt;br /&gt;&lt;/font&gt;&lt;font class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana; &quot;&gt;navigationControlOptions: {&lt;br /&gt;position: google.maps.ControlPosition.TOP_LEFT,&lt;br /&gt;style: google.maps.NavigationControlStyle.ZOOM_PAN&lt;br /&gt;}&lt;br /&gt;});&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;font class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; </description><link>http://blog.mridey.com/2010/05/controls-in-maps-javascript-api-v3.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-3031353546147610665</guid><pubDate>Thu, 20 May 2010 02:02:00 +0000</pubDate><atom:updated>2010-05-27T09:59:32.141+10:00</atom:updated><title>Events, markers, infowindows and overlays in Maps Javascript API v3 - Street View</title><description> &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to monitor changes to pano Id&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;google.maps.event.addListener(panorama, &#39;pano_changed&#39;, function() {}); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to monitor changes to position &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;google.maps.event.addListener(panorama, &#39;position_changed&#39;, function() {}); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to monitor changes to the point of view &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;google.maps.event.addListener(panorama, &#39;pov_changed&#39;, function() {}); &lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to add a marker in the panorama&lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;Markers by default are shared between the map and the panorama. If you create a separate panorama, you can add markers into it using:&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;var marker = new google.maps.Marker();&lt;br /&gt;marker.setMap(panorama);&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;How to add an infowindow in the panorama &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;var infowindow = new google.maps.InfoWindow();&lt;br /&gt;infowindow.open(panorama);&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt;how to add a custom overlay in the panorama &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt; &lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;To add a custom overlay on a panorama, follow the same logic as a custom overlay in the map. Derive from OverlayView, implement draw, onAdd, onRemove ... and add it to the panorama using setMap(panorama):&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 0.49in; margin-bottom: 0in&quot;&gt;&lt;font face=&quot;Courier 10 Pitch&quot;&gt;function CustomOverlay() {};&lt;br /&gt;CustomOverlay.prototype = new google.maps.OverlayView;&lt;br /&gt;var customOverlay = new CustomOverlay();&lt;br /&gt;customOverlay.setMap(panorama);&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; </description><link>http://blog.mridey.com/2010/05/events-markers-infowindows-and-overlays.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-4435866355922438600</guid><pubDate>Thu, 20 May 2010 01:48:00 +0000</pubDate><atom:updated>2010-05-20T14:35:53.358+10:00</atom:updated><title>Enabling and initializing Street View in Maps Javascript API v3</title><description>&lt;div style=&quot;padding:20px&quot;&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;How to enable Street View&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;map&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;set&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#39;streetViewControl&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;true&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;or&lt;/p&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;map&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setOptions&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;streetViewControl&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;true&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_access_the_panorama_in_th&quot;&gt;&lt;/a&gt;How to access the panorama in the map&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panorama &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; map&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;getStreetView&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;();&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_know_if_the_panorama_is_d&quot;&gt;&lt;/a&gt;How to know if the panorama is displayed&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panoramaDisplayed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;getVisible&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;();&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_set_a_manual_Pano_Id&quot;&gt;&lt;/a&gt;How to set a manual Pano Id&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setPano&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#39;-gfXi6db7jFB-cwAkTbBgA&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;or&lt;/p&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setOptions&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;pano&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#39;-gfXi6db7jFB-cwAkTbBgA&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_set_a_manual_position&quot;&gt;&lt;/a&gt;How to set a manual position&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setPosition&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; google&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;maps&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: rgb(102, 0, 102); &quot;&gt;LatLng&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;48&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;85969&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;29720&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;));&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;or&lt;/p&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setOptions&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;position&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; google&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;maps&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: rgb(102, 0, 102); &quot;&gt;LatLng&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;48&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;85969&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;29720&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_set_the_point_of_view&quot;&gt;&lt;/a&gt;How to set the point of view&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setPov&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;heading&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;30&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; pitch&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; zoom&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;4&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;or&lt;/p&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setOptions&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;pov&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;heading&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;30&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; pitch&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; zoom&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: rgb(0, 102, 102); &quot;&gt;4&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_create_a_panorama_without&quot;&gt;&lt;/a&gt;How to create a panorama without a map&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; div &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; document&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;getElementById&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#39;panoramadiv&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panorama &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; google&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;maps&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: rgb(102, 0, 102); &quot;&gt;StreetViewPanorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;div&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(85, 85, 85); font-family: sans-serif; margin-left: 10px; font-size: medium; &quot;&gt;&lt;a name=&quot;How_to_have_a_separate_panorama_&quot;&gt;&lt;/a&gt;How to have a separate panorama next to the map&lt;/h3&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; div &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; document&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;getElementById&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#39;panoramadiv&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panorama &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; google&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;maps&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: rgb(102, 0, 102); &quot;&gt;StreetViewPanorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;div&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;map&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setStreetView&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;panorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;or&lt;/p&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;color: rgb(0, 96, 0); background-color: rgb(224, 234, 244); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-left: 2px; padding-top: 2px; padding-bottom: 2px; overflow-x: auto; overflow-y: auto; padding-right: 2px; &quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; div &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; document&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;getElementById&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#39;panoramadiv&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panorama &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; google&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;maps&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: rgb(102, 0, 102); &quot;&gt;StreetViewPanorama&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;div&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;map&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;setOptions&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;streetView&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; panorama&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;p style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;/p&gt;&lt;/div&gt;</description><link>http://blog.mridey.com/2010/05/enabling-and-initializing-street-view.html</link><author>noreply@blogger.com (Marc T.)</author><thr:total>15</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-7467011517449443163</guid><pubDate>Thu, 25 Mar 2010 12:00:00 +0000</pubDate><atom:updated>2010-03-25T23:38:02.991+11:00</atom:updated><title>Using MarkerImage in Maps Javascript API v3</title><description>&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;When creating custom markers, you need to supply two images, the icon and the shadow. While you can supply a simple URL for each property, using MarkerImage allows you more flexibility and improves performance.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;1. Creating a simple image:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The simplest marker is one made of individual icon and shadow images, with the anchor point (The point used to position the marker) located in the middle of the bottom edge of the image, like the standard marker using by the API.&lt;br /&gt;In this situation, you only need to speficy the image URL such as:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/image.png&quot;);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;2. Specifying an anchor point&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Depending of the shape of the marker, you may not want the middle of the bottom edge to be used as the anchor point. For example, in this &lt;a href=&quot;http://code.google.com/apis/maps/documentation/v3/examples/icon-simple.html&quot;&gt;sample&lt;/a&gt;, the anchor point of the beach flag is at the bottom left corner.&lt;br /&gt;In those situation, you need to specify the anchor point of the image as the fourth parameter. This is a value of type Point, relative to the top left corner of the image with positive X going right and positive Y going down.&lt;br /&gt;For example, if the image &quot;beach_flag.png&quot; is 20*32 pixels, we would use:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/beach_flag.png&quot;, null, null, new google.maps.Point(0, 32));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;3. Resizing the image&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;If you need to display the image larger or smaller than its original size, supply the scaledImage parameter:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/image.png&quot;, null, null, null, new google.maps.Size(64, 64));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Note that if you use both size and anchor, the anchor value needs to be specified after scaling.&lt;br /&gt;Combining the two previous examples, we would have:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/beach_flag.png&quot;, null, null, new google.maps.Point(0, 64), new google.maps.Size(40, 64));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;Note the change to the anchor from 0, 32 to 0, 64.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;4. Using a sprite image&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;One simple way to imrove the performance of your website is to use sprite images. It means using a single image that contains many of the images you need of the site then using a section of it as required. The browser only makes a single call to download the image where before it would have made many.&lt;br /&gt;To create a MarkerImage from a sprite image, you need to specify the origin and size of the section of the image you want to use to create the icon.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/sprite.png&quot;, new google.maps.Size(12, 20), new google.maps.Point(100, 34));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;You can, if you need, also provide the anchor point. The valoue of the anchor is relative to the section of the image, not the whole image.&lt;br /&gt;For example, to use the center of the sprite image above as the anchor point, we would have:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/sprite.png&quot;, new google.maps.Size(12, 20), new google.maps.Point(100, 34), new google.maps.Point(6, 10));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;5. Using a scaled sprite image&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To combine spriting and scaling, you need to supply a scaled section size as well as the scaled image size.&lt;br /&gt;For example, if we want to display the section in the previous example of size 12*20 pixels, but display it 24*40 pixels, from an image originally 200*300 in size we would have:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(&quot;http://domain/path/sprite.png&quot;, new google.maps.Size(24, 40), new google.maps.Point(200, 68), new google.maps.Point(12, 20), new google.maps.Size(400, 600));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To display a scaled image or a scaled prite image, just supply the size, origin, anchor and scaledSize parameters with the scale factor applied.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;6. Improving performance&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;They are two ways to improve the performance of MarkerImage:&lt;br /&gt;&lt;br /&gt;- When you know the size of the image, specify it. If the size is not supplied, we make a call to download the image and read its size. While most browsers will cache the image and not download it again, this is not true in all cases and it may trigger the download of the image earlier than required, delaying the display of the map.&lt;br /&gt;- When displaying multiple markers with the same shadow or icon, reuse the MarkerImage for all the markers:&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var icon = new google.maps.MarkerImage(...);&lt;br /&gt;for (...) {&lt;br /&gt;  var marker = new google.maps.Marker({&lt;br /&gt;    icon: icon,&lt;br /&gt;    ...&lt;br /&gt;  };&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://blog.mridey.com/2010/03/using-markerimage-in-maps-javascript.html</link><author>noreply@blogger.com (Marc T.)</author><thr:total>26</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-1010489928733011015</guid><pubDate>Wed, 24 Mar 2010 10:21:00 +0000</pubDate><atom:updated>2010-03-24T22:14:28.767+11:00</atom:updated><title>Maps Javascript API v3 - More about the MVCObject class</title><description>&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;If you’re doing development using the new Google Maps JavaScript API v3, you will have noticed that all the core classes are derived from the MVCObject class.&lt;br /&gt;Knowing when and how to use the features built into the MVCObject class will make your Maps API v3 development easier.&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;1.     Accessors&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;To store and retrieve values from an MVCObject, do not access the properties directly, instead use the provided accessor methods.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;get(key): Retrieves a value from the MVCObject.&lt;br /&gt;set(key, value): Stores a value in the MVCObject.&lt;br /&gt;setValues(keyValuePairs): Sets multiple values in the MVCObject.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;For example:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var a = new google.maps.MVCObject();&lt;br /&gt;a.set(‘level’, 2);&lt;br /&gt;alert(a.get(‘level’));   // Returns 2&lt;br /&gt;var b = new google.maps.MVCObject();&lt;br /&gt;b.setValues({&lt;br /&gt;&amp;nbsp;&amp;nbsp;level: 2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;index: 3,&lt;br /&gt;&amp;nbsp;&amp;nbsp;description: ‘Hello world.’&lt;br /&gt;});&lt;br /&gt;alert(b.get(‘index’));   // Returns 3&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;2.     Binding&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Binding two properties between two MVCObjects allows changes to one object to be replicated in the object other.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;bindTo(targetKey, source, sourceKey): Binds the sourceKey property of the source to the targetKey property of the MVCObject. Effectively, it means that calling get(targetKey) on the MVCObject calls source.get(sourceKey).&lt;br /&gt;&lt;br /&gt;Unbind(targetKey): Removes the binding between the MVCObject and the source but retains the value of the property, so calling get(targetKey) on the MVCObject before or after unbinding returns the same value. This is not true once the sourceKey property of the source is changed.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var a = new google.maps.MVCObject();&lt;br /&gt;a.set(‘level’, 2);&lt;br /&gt;&lt;br /&gt;var b = new google.maps.MVCObject();&lt;br /&gt;b.bindTo(‘index’, a, ‘level’);&lt;br /&gt;alert(b.get(‘index’));   // Returns 2.&lt;br /&gt;&lt;br /&gt;// Changes to the source are visible on the target&lt;br /&gt;a.set(‘level’, 3);&lt;br /&gt;alert(b.get(‘index’));   // Returns 3.&lt;br /&gt;&lt;br /&gt;// Changes to the target are visible on the source&lt;br /&gt;b.set(‘index’, 4);&lt;br /&gt;alert(a.get(‘level’));   // Returns 4.&lt;br /&gt;&lt;br /&gt;// There can be multiple values bounds to the same source&lt;br /&gt;var c = new google.maps.MVCObject();&lt;br /&gt;c.bindTo(‘zoom’, a, ‘level’);&lt;br /&gt;alert(c.get(‘zoom’));   // Returns 4.&lt;br /&gt;&lt;br /&gt;// Unbound properties are not changed when the source is changed&lt;br /&gt;b.unbind(‘index’);&lt;br /&gt;alert(b.get(‘index’));   // Returns 4. The value hasn’t changed when unbound.&lt;br /&gt;c.set(‘zoom’, 5);&lt;br /&gt;alert(a.get(‘level’));   // Returns 5, c.zoom is bound to a.level.&lt;br /&gt;alert(b.get(‘index’));   // Returns 4, b.index is not bound to anything.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;Note that when bound, the two values are not duplicated but rather the getter of the bound property calls the getter of the source property.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;In this code:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var map = new google.maps.Map(div, {…});&lt;br /&gt;var marker = new google.maps.Marker({…});&lt;br /&gt;marker.bindTo(‘position’, map, ‘center’);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;The marker LatLng position is bound to the map’s center. This causes the maker position to be updated to the center of the map, everytime the map’s center changes. Effectively, it keeps the marker at the center of the map.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;3.     Events&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Binding ensures that values are kept in sync, but you need to be notified that the values have changed to be able to act on it. The MVCObject provides two notification mechanisms: the changed method and changed events.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;The changed method is a generic handler for state changes. Override this in derived classes to handle arbitrary state changes.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;For example (See &lt;a href=&quot;http://blog.mridey.com/2009/09/label-overlay-example-for-google-maps.html&quot;&gt;http://blog.mridey.com/2009/09/label-overlay-example-for-google-maps.html&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;function Label() {};&lt;br /&gt;Label.prototype = new google.maps.OverlayView;   // OverlayView derives from MVCObject.&lt;br /&gt;&lt;br /&gt;Label.prototype.changed = function(key) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;if (key == ‘position’ || key == ‘text’) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.draw();&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;Label.changed is called from changes to its properties with the parameter ‘key’ set to the name of the property that was set.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;The second method available to monitor changes to MVC properties is the ‘changed’ event. Every time a property is set, an event named ‘xxx_changed’ (where ‘xxx’ is the lowercase value of the key) is triggered. You can listen to these events using google.maps.event.addListener.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;For example:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;courier new&#39;;&quot;&gt;var a = new google.maps.MVCObject();&lt;br /&gt;google.maps.event.addListener(a, ‘level_changed’, function() {&lt;br /&gt;  alert(‘a.level has changed and the new value is ‘ + a.get(‘level’));&lt;br /&gt;});&lt;br /&gt;a.set(‘level’, 2); // Will display the alert message.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;The changed events follow bound properties. If a.X is bound to b.X and b.X is bound to c.X, setting either a.X, b.X or C.X will cause the &#39;x_changed&#39; event to be triggered on a, b, and c. The order in which the events are triggered depends o the order in which the values where bound and the listeners were attached.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;Note that the changed events are triggered synchronously within the call to set(). In the example above, the alert dialog is displayed before the a.set() calls returns.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://blog.mridey.com/2010/03/maps-javascript-api-v3-more-about.html</link><author>noreply@blogger.com (Marc T.)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-7934561568072561320</guid><pubDate>Wed, 30 Sep 2009 04:12:00 +0000</pubDate><atom:updated>2009-09-30T14:24:08.344+10:00</atom:updated><title>Listening to map events in Google Maps API v3 OverlayView</title><description>In my previous post, I showed how to create a simple Label overlay. In that example, the draw method was only called when the position of the overlay relative to the map needed to be recalculated or when the text for the label had changed.&lt;br /&gt;&lt;br /&gt;But what if the look/content of the overlay you want to create depends on the map center or the map bounds. Currently, OverlayView.draw is not called if the map is dragged for example.&lt;br /&gt;&lt;br /&gt;I&#39;ve created below a &#39;Center&#39; overlay to demonstrate how to listen to map events in the overlay. &lt;br /&gt;&lt;br /&gt;first, in center.js I have:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;// Define the overlay, derived from google.maps.OverlayView&lt;br /&gt;function Center(opt_options) {&lt;br /&gt;  // Initialization&lt;br /&gt;  this.setValues(opt_options);&lt;br /&gt;&lt;br /&gt;  // Center specific&lt;br /&gt;  var div1 = document.createElement(&#39;div&#39;);&lt;br /&gt;  div1.style.cssText = &#39;position: absolute; left: -20px; top: -20px; &#39; +&lt;br /&gt;                       &#39;border-right: 1px solid blue; border-bottom: 1px solid blue; width: 19px; height: 19px&#39;;&lt;br /&gt;  var div2 = document.createElement(&#39;div&#39;);&lt;br /&gt;  div2.style.cssText = &#39;position: absolute; left: 1px; top: -20px; &#39; +&lt;br /&gt;                       &#39;border-left: 1px solid blue; border-bottom: 1px solid blue; width: 19px; height: 19px&#39;;&lt;br /&gt;  var div3 = document.createElement(&#39;div&#39;);&lt;br /&gt;  div3.style.cssText = &#39;position: absolute; left: -20px; top: 1px; &#39; +&lt;br /&gt;                       &#39;border-right: 1px solid blue; border-top: 1px solid blue; width: 19px; height: 19px&#39;;&lt;br /&gt;  var div4 = document.createElement(&#39;div&#39;);&lt;br /&gt;  div4.style.cssText = &#39;position: absolute; left: 1px; top: 1px; &#39; +&lt;br /&gt;                       &#39;border-left: 1px solid blue; border-top: 1px solid blue; width: 19px; height: 19px&#39;;&lt;br /&gt;&lt;br /&gt;  var div = this.div_ = document.createElement(&#39;div&#39;);&lt;br /&gt;  div.appendChild(div1);&lt;br /&gt;  div.appendChild(div2);&lt;br /&gt;  div.appendChild(div3);&lt;br /&gt;  div.appendChild(div4);&lt;br /&gt;  div.style.cssText = &#39;position: absolute; display: none&#39;;&lt;br /&gt;};&lt;br /&gt;Center.prototype = new google.maps.OverlayView;&lt;br /&gt;&lt;br /&gt;// Implement onAdd&lt;br /&gt;Center.prototype.onAdd = function() {&lt;br /&gt;  var pane = this.getPanes().overlayLayer;&lt;br /&gt;  pane.appendChild(this.div_);&lt;br /&gt;&lt;br /&gt;  // Ensures the center is redrawn if the map center changes&lt;br /&gt;  var me = this;&lt;br /&gt;  this.listeners_ = [&lt;br /&gt;    google.maps.event.addListener(this.getMap(), &#39;center_changed&#39;,&lt;br /&gt;        function() { me.draw(); }),&lt;br /&gt;  ];&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// Implement onRemove&lt;br /&gt;Center.prototype.onRemove = function() {&lt;br /&gt;  this.div_.parentNode.removeChild(this.div_);&lt;br /&gt;&lt;br /&gt;  // Label is removed from the map, stop updating its position/text.&lt;br /&gt;  for (var i = 0, I = this.listeners_.length; i &amp;lt; I; ++i) {&lt;br /&gt;    maps.google.event.removeListener(this.listeners_[i]);&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// Implement draw&lt;br /&gt;Center.prototype.draw = function() {&lt;br /&gt;  var projection = this.getProjection();&lt;br /&gt;  var position = projection.fromLatLngToDivPixel(this.getMap().getCenter());&lt;br /&gt;&lt;br /&gt;  var div = this.div_;&lt;br /&gt;  div.style.left = position.x + &#39;px&#39;;&lt;br /&gt;  div.style.top = position.y + &#39;px&#39;;&lt;br /&gt;  div.style.display = &#39;block&#39;;&lt;br /&gt;};&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;and in the map initialization I just added:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  &amp;lt;script type=&quot;text/javascript&quot; src=&quot;center.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;and&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  var center = new Center({&lt;br /&gt;    map: map&lt;br /&gt;  });&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Adding the Center object to the map creates a cross at the center of the map. When the map is dragged or zoomed, the overlay is redrawn, allowing it to stay centered.&lt;br /&gt;&lt;br /&gt;The result looks like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjyA0U0KY-GxJh4Tv1xUHZ8FDnj3moRNPdRfHnp9n5fZ49OKuPb2s4ZZ9omDFvtNTlWqhwCjh3Hy8qsN_f8FtPF3Npo_UCDaYfedmHMMcvdRdy7CvS0PBwvU-9yOJnGk7zmduyibuETRS/s1600-h/CenterOverlay.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 298px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjyA0U0KY-GxJh4Tv1xUHZ8FDnj3moRNPdRfHnp9n5fZ49OKuPb2s4ZZ9omDFvtNTlWqhwCjh3Hy8qsN_f8FtPF3Npo_UCDaYfedmHMMcvdRdy7CvS0PBwvU-9yOJnGk7zmduyibuETRS/s400/CenterOverlay.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5387109838063502306&quot; /&gt;&lt;/a&gt;</description><link>http://blog.mridey.com/2009/09/in-my-previous-post-i-showed-how-to.html</link><author>noreply@blogger.com (Marc T.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjyA0U0KY-GxJh4Tv1xUHZ8FDnj3moRNPdRfHnp9n5fZ49OKuPb2s4ZZ9omDFvtNTlWqhwCjh3Hy8qsN_f8FtPF3Npo_UCDaYfedmHMMcvdRdy7CvS0PBwvU-9yOJnGk7zmduyibuETRS/s72-c/CenterOverlay.png" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6259562913746865237.post-1306389769807676066</guid><pubDate>Tue, 29 Sep 2009 06:30:00 +0000</pubDate><atom:updated>2010-02-25T09:09:17.994+11:00</atom:updated><title>Label overlay example for Google Maps API v3</title><description>Here&#39;s a simple example of creating a custom overlay class for Google Maps API v3. This Label overlay can either be used on its own, or bound to a marker.&lt;br /&gt;&lt;br /&gt;First, create the Label class and place it in a label.js file.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;// Define the overlay, derived from google.maps.OverlayView&lt;br /&gt;function Label(opt_options) {&lt;br /&gt; // Initialization&lt;br /&gt; this.setValues(opt_options);&lt;br /&gt;&lt;br /&gt; // Label specific&lt;br /&gt; var span = this.span_ = document.createElement(&#39;span&#39;);&lt;br /&gt; span.style.cssText = &#39;position: relative; left: -50%; top: -8px; &#39; +&lt;br /&gt;                      &#39;white-space: nowrap; border: 1px solid blue; &#39; +&lt;br /&gt;                      &#39;padding: 2px; background-color: white&#39;;&lt;br /&gt;&lt;br /&gt; var div = this.div_ = document.createElement(&#39;div&#39;);&lt;br /&gt; div.appendChild(span);&lt;br /&gt; div.style.cssText = &#39;position: absolute; display: none&#39;;&lt;br /&gt;};&lt;br /&gt;Label.prototype = new google.maps.OverlayView;&lt;br /&gt;&lt;br /&gt;// Implement onAdd&lt;br /&gt;Label.prototype.onAdd = function() {&lt;br /&gt; var pane = this.getPanes().overlayLayer;&lt;br /&gt; pane.appendChild(this.div_);&lt;br /&gt;&lt;br /&gt; // Ensures the label is redrawn if the text or position is changed.&lt;br /&gt; var me = this;&lt;br /&gt; this.listeners_ = [&lt;br /&gt;   google.maps.event.addListener(this, &#39;position_changed&#39;,&lt;br /&gt;       function() { me.draw(); }),&lt;br /&gt;   google.maps.event.addListener(this, &#39;text_changed&#39;,&lt;br /&gt;       function() { me.draw(); })&lt;br /&gt; ];&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// Implement onRemove&lt;br /&gt;Label.prototype.onRemove = function() {&lt;br /&gt; this.div_.parentNode.removeChild(this.div_);&lt;br /&gt;&lt;br /&gt; // Label is removed from the map, stop updating its position/text.&lt;br /&gt; for (var i = 0, I = this.listeners_.length; i &amp;lt; I; ++i) {&lt;br /&gt;   google.maps.event.removeListener(this.listeners_[i]);&lt;br /&gt; }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// Implement draw&lt;br /&gt;Label.prototype.draw = function() {&lt;br /&gt; var projection = this.getProjection();&lt;br /&gt; var position = projection.fromLatLngToDivPixel(this.get(&#39;position&#39;));&lt;br /&gt;&lt;br /&gt; var div = this.div_;&lt;br /&gt; div.style.left = position.x + &#39;px&#39;;&lt;br /&gt; div.style.top = position.y + &#39;px&#39;;&lt;br /&gt; div.style.display = &#39;block&#39;;&lt;br /&gt;&lt;br /&gt; this.span_.innerHTML = this.get(&#39;text&#39;).toString();&lt;br /&gt;};&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Then use label.js in the map initialization:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt; &amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/&amp;gt;&lt;br /&gt; &amp;lt;title&amp;gt;Label Overlay Example&amp;lt;/title&amp;gt;&lt;br /&gt; &amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt; &amp;lt;script type=&quot;text/javascript&quot; src=&quot;label.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;   function initialize() {&lt;br /&gt;     var latLng = new google.maps.LatLng(40, -100);&lt;br /&gt;&lt;br /&gt;     var map = new google.maps.Map(document.getElementById(&#39;map_canvas&#39;), {&lt;br /&gt;       zoom: 5,&lt;br /&gt;       center: latLng,&lt;br /&gt;       mapTypeId: google.maps.MapTypeId.ROADMAP&lt;br /&gt;     });&lt;br /&gt;&lt;br /&gt;     var marker = new google.maps.Marker({&lt;br /&gt;       position: latLng,&lt;br /&gt;       draggable: true,&lt;br /&gt;       map: map&lt;br /&gt;     });&lt;br /&gt;&lt;br /&gt;     var label = new Label({&lt;br /&gt;       map: map&lt;br /&gt;     });&lt;br /&gt;     label.bindTo(&#39;position&#39;, marker, &#39;position&#39;);&lt;br /&gt;     label.bindTo(&#39;text&#39;, marker, &#39;position&#39;);&lt;br /&gt;   };&lt;br /&gt; &amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body onload=&quot;initialize()&quot;&amp;gt;&lt;br /&gt; &amp;lt;div id=&quot;map_canvas&quot; style=&quot;height: 100%; width: 100%&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;When run, it looks like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3JPicDKIHc132TfTcdmHzqznSgSxhRDbn_K1_aYhrEKGBy7xgSJ5SSytVKwnyuZEUMwM5DTz1IQVyNXwsvrSKPleEhRpq60zu5Pn_ul27AjrxTXptG1njWAnJj1ArtPbj-TpPGkn7SVOH/s1600-h/LabelOverlay.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 267px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3JPicDKIHc132TfTcdmHzqznSgSxhRDbn_K1_aYhrEKGBy7xgSJ5SSytVKwnyuZEUMwM5DTz1IQVyNXwsvrSKPleEhRpq60zu5Pn_ul27AjrxTXptG1njWAnJj1ArtPbj-TpPGkn7SVOH/s320/LabelOverlay.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5386778623064875602&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Drag the marker around and the text of the label with update with the LatLng of the marker.</description><link>http://blog.mridey.com/2009/09/label-overlay-example-for-google-maps.html</link><author>noreply@blogger.com (Marc T.)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3JPicDKIHc132TfTcdmHzqznSgSxhRDbn_K1_aYhrEKGBy7xgSJ5SSytVKwnyuZEUMwM5DTz1IQVyNXwsvrSKPleEhRpq60zu5Pn_ul27AjrxTXptG1njWAnJj1ArtPbj-TpPGkn7SVOH/s72-c/LabelOverlay.png" height="72" width="72"/><thr:total>109</thr:total></item></channel></rss>