Does anyone have any experience with the sfEasyGMapPlugin? I am having
trouble getting it to work.

I recently downloaded the sfEasyGMapPlugin - 1.0.4 package and have
tried to run the samples. However, when I go to ../frontend_dev.php/
sfEasyGMapPlugin/sample1 all I get is a large blank space where the
map should be. My sf toolbar isn't loading correctly, so I'm guessing
there is an error that is stopping the execution of the page. If I
view the source, this is what is being output before the toolbar code:
<h1>The Map</h1>
<div id="map" style="width:512px;height:512px;"></div>
Search on the map:
  <form onsubmit="geocode_and_show(document.getElementById
('search_location_input').value);return false;">
    <input type="text" id="search_location_input" />
    <input type="submit" id="search_location_submit" value="Search" /
>
  </form>
  <br />
<br />
<br />
<div id="console_div" style="font-size:large">
</div>

<br />
<!-- Javascript included at the bottom of the page -->
<script type="text/javascript">
//<![CDATA[

  google.load("maps", "2");

  var map = null;
  //  Call this function when the page has been loaded
  function initialize()
  {
    if (GBrowserIsCompatible())
    {
      map = new google.maps.Map2(document.getElementById("map"));
      map.setCenter(new google.maps.LatLng(48.845398, 2.34258), 10);
      map.enableDoubleClickZoom();
      map.addControl(new google.maps.LargeMapControl());


      marker = new google.maps.Marker(new google.maps.LatLng
(51.245475,6.821373));map.addOverlay(marker);
      marker = new google.maps.Marker(new google.maps.LatLng
(46.262248,6.115969));map.addOverlay(marker);
      marker = new google.maps.Marker(new google.maps.LatLng
(48.848959,2.341577));map.addOverlay(marker);
      marker = new google.maps.Marker(new google.maps.LatLng
(48.718952,2.21918));map.addOverlay(marker);
      marker = new google.maps.Marker(new google.maps.LatLng
(47.37642,8.547995));map.addOverlay(marker);

    }
  }
  google.setOnLoadCallback(initialize);
  document.onunload="GUnload()";

//]]>
</script>

I'm not sure what the problem is. I added my API keys to my app.yml
file (not the app.yml in the plugin folder) like this:
all:
  google_maps_api:
    keys:
      dev:
'ABQIAAAA5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-
VHzdDo70uUVQrZtOIA'
      default: 'ABQIAAAAKE4fU-
DTGQOJjweuLqnu8BR6YjO4miqBRRmRbYHdlU4G5dxgahRiVB0FuiBRzwG8KMziIcAC8qZQ1w'

Is that right? I also put a copy of the sfEasyGMapPlugin/web/css,
images, and js folders in web/sfEasyGMapPlugin. Is that also correct?
I am running sf 1.0.
Any help is greatly appreciated!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to