<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Basic operations with markers in Google Maps</title>
	<atom:link href="http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/</link>
	<description>A blog about web developement and usability.</description>
	<lastBuildDate>Fri, 30 Jul 2010 15:17:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-14745</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Mon, 07 Jun 2010 13:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-14745</guid>
		<description>&lt;strong&gt;Allan:&lt;/strong&gt; This article is about v2 of the API but it&#039;s really easy to do in v3 as well.

&lt;strong&gt;Note! The bit below is about the Google Maps API v3 and does not apply to v2 that is described in this article.&lt;/strong&gt;

The click event on the map returns a MouseEvent object which has a latLng property. So by passing a variable in the callback function you can use that to set the clicked position.

&lt;pre&gt;
google.maps.event.addListener(map, &#039;click&#039;, function(e) {
  var marker = new google.maps.Marker({
    position: e.latLng,
    map: map,
    title: &#039;Event&#039;,
    draggable: true
  });
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><strong>Allan:</strong> This article is about v2 of the <acronym title="Application Programming Interface">API</acronym> but it&#8217;s really easy to do in v3 as well.</p>
<p><strong>Note! The bit below is about the Google Maps <acronym title="Application Programming Interface">API</acronym> v3 and does not apply to v2 that is described in this article.</strong></p>
<p>The click event on the map returns a MouseEvent object which has a latLng property. So by passing a variable in the callback function you can use that to set the clicked position.</p>
<pre>
google.maps.event.addListener(map, 'click', function(e) {
  var marker = new google.maps.Marker({
    position: e.latLng,
    map: map,
    title: 'Event',
    draggable: true
  });
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-14743</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Mon, 07 Jun 2010 13:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-14743</guid>
		<description>Anyone know how to make a marker appear in the position you click in?
This was easy in v2!

I can only seem to make it appear in the position I set 

var latlng = new google.maps.LatLng(41.012379,28.975926);
google.maps.event.addListener(map, &#039;click&#039;, function() {
	var marker = new google.maps.Marker({  
	position: latlng,  
	map: map,
	title: &#039;Event&#039;,
	draggable: true
        });
});</description>
		<content:encoded><![CDATA[<p>Anyone know how to make a marker appear in the position you click in?<br />
This was easy in v2!</p>
<p>I can only seem to make it appear in the position I set </p>
<p>var latlng = new google.maps.LatLng(41.012379,28.975926);<br />
google.maps.event.addListener(map, &#8216;click&#8217;, function() {<br />
	var marker = new google.maps.Marker({<br />
	position: latlng,<br />
	map: map,<br />
	title: &#8216;Event&#8217;,<br />
	draggable: true<br />
        });<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SamD</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-13981</link>
		<dc:creator>SamD</dc:creator>
		<pubDate>Wed, 28 Apr 2010 06:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-13981</guid>
		<description>Hey..

 I am not being able to use the MarkerManger Class. Do I need to import anything?
Help me plz........</description>
		<content:encoded><![CDATA[<p>Hey..</p>
<p> I am not being able to use the MarkerManger Class. Do I need to import anything?<br />
Help me plz&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pard1</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-13597</link>
		<dc:creator>pard1</dc:creator>
		<pubDate>Sat, 10 Apr 2010 22:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-13597</guid>
		<description>hello.. Gabriel
I have almost the same question like Paul, I want to add tag html to the map.. What is it possible? and how to do it..?

:)</description>
		<content:encoded><![CDATA[<p>hello.. Gabriel<br />
I have almost the same question like Paul, I want to add tag html to the map.. What is it possible? and how to do it..?</p>
<p> <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-12431</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Wed, 24 Feb 2010 16:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-12431</guid>
		<description>&lt;strong&gt;&lt;em&gt;Paul:&lt;/em&gt;&lt;/strong&gt;  You could probably just use a regular marker but replace the marker icon with your sticker. Then in the click event, instead of opening an infoWindow, redirect the browser to the desired url.

To change the icon use the &lt;code&gt;setIcon()&lt;/code&gt; method of the marker.

&lt;pre&gt;marker.setImage(&#039;path/to/your/image.png&#039;);&lt;/pre&gt;

And to redirect to a different url, add the following event listener:

&lt;pre&gt;
GEvent.addListener(marker, &#039;click&#039;, function() {  
    window.location.href = &#039;your/url/&#039;;
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><strong><em>Paul:</em></strong>  You could probably just use a regular marker but replace the marker icon with your sticker. Then in the click event, instead of opening an infoWindow, redirect the browser to the desired url.</p>
<p>To change the icon use the <code>setIcon()</code> method of the marker.</p>
<pre>marker.setImage('path/to/your/image.png');</pre>
<p>And to redirect to a different url, add the following event listener:</p>
<pre>
GEvent.addListener(marker, 'click', function() {
    window.location.href = 'your/url/';
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-12427</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 24 Feb 2010 14:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-12427</guid>
		<description>Hi Gabriel
Thank you for this simple tutorial.
Is there a way to display a sticker on the map with a link?  For example I want to display country or region names that when clicked go to a different url.
Paul</description>
		<content:encoded><![CDATA[<p>Hi Gabriel<br />
Thank you for this simple tutorial.<br />
Is there a way to display a sticker on the map with a link?  For example I want to display country or region names that when clicked go to a different url.<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-12158</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 14 Feb 2010 06:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-12158</guid>
		<description>Thanks for a great post!  Very informative and easy to follow.</description>
		<content:encoded><![CDATA[<p>Thanks for a great post!  Very informative and easy to follow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pavani</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-10734</link>
		<dc:creator>pavani</dc:creator>
		<pubDate>Fri, 01 Jan 2010 07:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-10734</guid>
		<description>simple and easy to understand 
thanks</description>
		<content:encoded><![CDATA[<p>simple and easy to understand<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Airman</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-10369</link>
		<dc:creator>Airman</dc:creator>
		<pubDate>Sun, 13 Dec 2009 17:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-10369</guid>
		<description>Thanks. I managed to get your code working straight away as opposed to struggling with the examples etc. on the Google site!</description>
		<content:encoded><![CDATA[<p>Thanks. I managed to get your code working straight away as opposed to struggling with the examples etc. on the Google site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pard1</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-6838</link>
		<dc:creator>pard1</dc:creator>
		<pubDate>Mon, 27 Jul 2009 05:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-6838</guid>
		<description>Thanks.. :)</description>
		<content:encoded><![CDATA[<p>Thanks.. <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HamzaED</title>
		<link>http://www.svennerberg.com/2008/12/basic-operations-with-markers-in-google-maps/comment-page-1/#comment-3778</link>
		<dc:creator>HamzaED</dc:creator>
		<pubDate>Wed, 29 Apr 2009 04:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1088#comment-3778</guid>
		<description>[...] Basic operations with markers in Google Maps &#124; In usability we trust - [...]</description>
		<content:encoded><![CDATA[<p>[...] Basic operations with markers in Google Maps | In usability we trust &#8211; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
