<?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/"
		>
<channel>
	<title>Comments on: Symfony Google Maps API plugin : sfEasyGMapPlugin v1.0 is out !</title>
	<atom:link href="http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/</link>
	<description>Symfony, Php, Google Maps, Ajax</description>
	<lastBuildDate>Thu, 04 Mar 2010 14:29:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Maignan</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-609</link>
		<dc:creator>David Maignan</dc:creator>
		<pubDate>Thu, 15 Oct 2009 19:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-609</guid>
		<description>Thanks a lot for this plugin. Works great.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this plugin. Works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice Bernhard</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-601</link>
		<dc:creator>Fabrice Bernhard</dc:creator>
		<pubDate>Wed, 09 Sep 2009 10:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-601</guid>
		<description>Nicolas: it is always good to hear people ready to contribute. The best way is to send me a patch with your contribution and it will be included in the trunk if the quality (code and usefulness) is up to the standard set by the existing code.</description>
		<content:encoded><![CDATA[<p>Nicolas: it is always good to hear people ready to contribute. The best way is to send me a patch with your contribution and it will be included in the trunk if the quality (code and usefulness) is up to the standard set by the existing code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-600</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Wed, 09 Sep 2009 05:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-600</guid>
		<description>I really like this plugin!!

I would contribute adding the Google function to calculate the PATH between 2 addresses

Contact me if you want</description>
		<content:encoded><![CDATA[<p>I really like this plugin!!</p>
<p>I would contribute adding the Google function to calculate the PATH between 2 addresses</p>
<p>Contact me if you want</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice Bernhard</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-578</link>
		<dc:creator>Fabrice Bernhard</dc:creator>
		<pubDate>Mon, 24 Aug 2009 10:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-578</guid>
		<description>There are no fancy functionality concerning polylines and polygons. It is a pity since I made extensive use of them in the past, and I would have been happy to package this experience in the plugin. But right now my priority is to focus on the new v3 of the Google Maps API.

You are, however, welcome to contribute to the plugin by adding polylines and polygons classes :-)</description>
		<content:encoded><![CDATA[<p>There are no fancy functionality concerning polylines and polygons. It is a pity since I made extensive use of them in the past, and I would have been happy to package this experience in the plugin. But right now my priority is to focus on the new v3 of the Google Maps API.</p>
<p>You are, however, welcome to contribute to the plugin by adding polylines and polygons classes <img src='http://www.theodo.fr/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: celalo</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-575</link>
		<dc:creator>celalo</dc:creator>
		<pubDate>Thu, 06 Aug 2009 20:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-575</guid>
		<description>is there any functionality for drawing polylines and polygones</description>
		<content:encoded><![CDATA[<p>is there any functionality for drawing polylines and polygones</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice Bernhard</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-565</link>
		<dc:creator>Fabrice Bernhard</dc:creator>
		<pubDate>Tue, 30 Jun 2009 10:49:06 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-565</guid>
		<description>I would definitely not include such a hack in the plugin ! This only works in javascript environment, when you use
&lt;code&gt;
&lt;script&gt;
  &lt;?php echo $gMap-&gt;getCenterLat() ?&gt;
&lt;/script&gt;
&lt;/code&gt;
In all other circumstances this will just break the code.

sfEasyGMapPlugin indeed generates javascript using PHP directly in the class, which is not a very clean practice. I actually think about using some templating architecture to improve the quality of the plugin and dissociate as much as possible javascript and PHP. In the meantime, javascript is generated only through functions which names end with &quot;JS&quot;, getMarkersJS, getMapJS etc. and no javascript should be included in any generic php functions, especially a simple getter :-)</description>
		<content:encoded><![CDATA[<p>I would definitely not include such a hack in the plugin ! This only works in javascript environment, when you use<br />
<code><br />
&lt;script&gt;<br />
  < ?php echo $gMap->getCenterLat() ?><br />
&lt;/script&gt;<br />
</code><br />
In all other circumstances this will just break the code.</p>
<p>sfEasyGMapPlugin indeed generates javascript using PHP directly in the class, which is not a very clean practice. I actually think about using some templating architecture to improve the quality of the plugin and dissociate as much as possible javascript and PHP. In the meantime, javascript is generated only through functions which names end with &#8220;JS&#8221;, getMarkersJS, getMapJS etc. and no javascript should be included in any generic php functions, especially a simple getter <img src='http://www.theodo.fr/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-562</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sat, 27 Jun 2009 04:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-562</guid>
		<description>Have you considered including the google loader client IP geolocation as part of your plugin?  I added this to GMap.class.php

public function getCenterLat()
  {
    if ($this-&gt;getCenterCoord()-&gt;getLatitude())
    {
  	  return $this-&gt;getCenterCoord()-&gt;getLatitude();
    }
    else
    {
      return &#039;google.loader.ClientLocation.latitude&#039;;
    }
  }
    /**
   * 
   * @return float
   * @author fabriceb
   * @since 2009-05-02
   */
  public function getCenterLng()
  {
    if ($this-&gt;getCenterCoord()-&gt;getLongitude())
    {
  	  return $this-&gt;getCenterCoord()-&gt;getLongitude();
    }
    else
    {
      return &#039;google.loader.ClientLocation.longitude&#039;;
    }
  }

So if lat &amp; long are set to null it tries to center based on IP geolocation.</description>
		<content:encoded><![CDATA[<p>Have you considered including the google loader client IP geolocation as part of your plugin?  I added this to GMap.class.php</p>
<p>public function getCenterLat()<br />
  {<br />
    if ($this-&gt;getCenterCoord()-&gt;getLatitude())<br />
    {<br />
  	  return $this-&gt;getCenterCoord()-&gt;getLatitude();<br />
    }<br />
    else<br />
    {<br />
      return &#8216;google.loader.ClientLocation.latitude&#8217;;<br />
    }<br />
  }<br />
    /**<br />
   *<br />
   * @return float<br />
   * @author fabriceb<br />
   * @since 2009-05-02<br />
   */<br />
  public function getCenterLng()<br />
  {<br />
    if ($this-&gt;getCenterCoord()-&gt;getLongitude())<br />
    {<br />
  	  return $this-&gt;getCenterCoord()-&gt;getLongitude();<br />
    }<br />
    else<br />
    {<br />
      return &#8216;google.loader.ClientLocation.longitude&#8217;;<br />
    }<br />
  }</p>
<p>So if lat &amp; long are set to null it tries to center based on IP geolocation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteveS</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-556</link>
		<dc:creator>SteveS</dc:creator>
		<pubDate>Fri, 05 Jun 2009 18:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-556</guid>
		<description>Great plugin!  It&#039;s saved me a lot of time.

Thanks for the $sf_data-&gt;getRaw() tip.  I ran into another issue - if you put the map inside a partial, then it seems you have to do the getRaw twice, once in the template, and then inside the partial.  I&#039;m not sure why this is the case exactly, but it seems to work.</description>
		<content:encoded><![CDATA[<p>Great plugin!  It&#8217;s saved me a lot of time.</p>
<p>Thanks for the $sf_data-&gt;getRaw() tip.  I ran into another issue &#8211; if you put the map inside a partial, then it seems you have to do the getRaw twice, once in the template, and then inside the partial.  I&#8217;m not sure why this is the case exactly, but it seems to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-554</link>
		<dc:creator>Nico</dc:creator>
		<pubDate>Tue, 02 Jun 2009 11:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-554</guid>
		<description>Hey,

I&#039;m trying to refresh my GMap after AJAX submit button, actually I update two  :
- a list on the left
- map on the right

I&#039;d like my map &amp; markers to be refreshed by informations contained in the list.
The first div is updated and the GMap disappear ..</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I&#8217;m trying to refresh my GMap after AJAX submit button, actually I update two  :<br />
- a list on the left<br />
- map on the right</p>
<p>I&#8217;d like my map &amp; markers to be refreshed by informations contained in the list.<br />
The first div is updated and the GMap disappear ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice Bernhard</title>
		<link>http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/comment-page-1/#comment-553</link>
		<dc:creator>Fabrice Bernhard</dc:creator>
		<pubDate>Mon, 25 May 2009 22:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://v2.theodo.fr/blog/?p=27#comment-553</guid>
		<description>Doubts... which doubts ? :-)

You can load markers wherever you want. Usually the best though in a complicated application is to load through Ajax only those in the visible boundary.

I think the forum is a good idea so I will try to open one soon !</description>
		<content:encoded><![CDATA[<p>Doubts&#8230; which doubts ? <img src='http://www.theodo.fr/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>You can load markers wherever you want. Usually the best though in a complicated application is to load through Ajax only those in the visible boundary.</p>
<p>I think the forum is a good idea so I will try to open one soon !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
