[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, hmm, thats strange. Have you Firebug on your Firefox installed? Maybe you can check, if you have any JavaScript error. If I start with this Plugin, I setup a API Key for http://localhost/, create the part in the app.yml and tested the sample1 example. And it was working on my site. Sorry, but otherwise I have unfortunately no idea anymore. BR Sebastian Zach schrieb: I have not. Do I just put it in frontend/templates/layout.php? I tried that now, and it added script type=text/javascript src=http://www.google.com/jsapi? key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef- VHzdDo70uUVQrZtOIA/script to the source, but it is still not loading the map, just a large blank area where the map would be - Zach -- Sebastian Müller s.muel...@nm-f.de http://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Thank you Sebastian, I installed Firebug and got the error: google is not defined sample1()sample1 (line 21) google.load(maps, 2); hmm... where should it be defined at? Thanks for all your help, Zach On Jul 16, 3:03 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, hmm, thats strange. Have you Firebug on your Firefox installed? Maybe you can check, if you have any JavaScript error. If I start with this Plugin, I setup a API Key forhttp://localhost/, create the part in the app.yml and tested the sample1 example. And it was working on my site. Sorry, but otherwise I have unfortunately no idea anymore. BR Sebastian Zach schrieb: I have not. Do I just put it in frontend/templates/layout.php? I tried that now, and it added script type=text/javascript src=http://www.google.com/jsapi? key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef- VHzdDo70uUVQrZtOIA/script to the source, but it is still not loading the map, just a large blank area where the map would be - Zach -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, Can you load the source from your JavaScript directly or can you check with Firebug, if this script correctly loaded? The error mean, that he can't found the JavaScript var google. This var is loading by the google JS source: script type=text/javascript src=http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-VHzdDo70uUVQrZtOIA;/script Sunny regards from Hamburg Sebastian Zach schrieb: Thank you Sebastian, I installed Firebug and got the error: google is not defined sample1()sample1 (line 21) google.load(maps, 2); hmm... where should it be defined at? Thanks for all your help, Zach On Jul 16, 3:03 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, hmm, thats strange. Have you Firebug on your Firefox installed? Maybe you can check, if you have any JavaScript error. If I start with this Plugin, I setup a API Key forhttp://localhost/, create the part in the app.yml and tested the sample1 example. And it was working on my site. Sorry, but otherwise I have unfortunately no idea anymore. BR Sebastian Zach schrieb: I have not. Do I just put it in frontend/templates/layout.php? I tried that now, and it added script type=text/javascript src=http://www.google.com/jsapi? key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef- VHzdDo70uUVQrZtOIA/script to the source, but it is still not loading the map, just a large blank area where the map would be - Zach -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de -- Sebastian Müller s.muel...@nm-f.de http://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, this is a really strange problem but will be actually be solved unintentionally in the next release of the plugin : the new version will use autoloading of the maps source file at the same time as the generic google js api file. You can already check how it works in the dev branch of the plugin: http://trac.symfony-project.org/browser/plugins/sfEasyGMapPlugin/branches/dev/lib/GMapClient.class.php The new version should be released around september, the time to test everything which was added by the different developers and package it well. And if I have time, I will also try to separate the PHP and javascript layer as much as possible. By the way for your information, if you like the plugin, it is now possible to use the dev branch in any php project, outside of symfony! Even if I wonder how one can still use php outside of symfony... :-) Regards, Fabrice -- http://www.theodo.fr On Jul 16, 5:34 pm, Zach zach...@gmail.com wrote: Hey Sebastian, The google javascript was getting loaded after the javascipt that draws the map... hence the google var was not found. I know I had tried putting the javascript source in manually before, but I must have had a different problem at the time. Now it works. Thank you very much for all your help and patience. It is greatly appreciated. Do you know why it would be loading out of order? Is there anything I can do to fix that? If not, it's not a problem to load this script manually, I'm just curious why it's not functioning the way it should. Again thanks for all you help. Zach On Jul 16, 9:19 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, Can you load the source from your JavaScript directly or can you check with Firebug, if this script correctly loaded? The error mean, that he can't found the JavaScript var google. This var is loading by the google JS source: script type=text/javascript src=http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCw...;/script Sunny regards from Hamburg Sebastian Zach schrieb: Thank you Sebastian, I installed Firebug and got the error: google is not defined sample1()sample1 (line 21) google.load(maps, 2); hmm... where should it be defined at? Thanks for all your help, Zach On Jul 16, 3:03 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, hmm, thats strange. Have you Firebug on your Firefox installed? Maybe you can check, if you have any JavaScript error. If I start with this Plugin, I setup a API Key forhttp://localhost/, create the part in the app.yml and tested the sample1 example. And it was working on my site. Sorry, but otherwise I have unfortunately no idea anymore. BR Sebastian Zach schrieb: I have not. Do I just put it in frontend/templates/layout.php? I tried that now, and it added script type=text/javascript src=http://www.google.com/jsapi? key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef- VHzdDo70uUVQrZtOIA/script to the source, but it is still not loading the map, just a large blank area where the map would be - Zach -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, no. Because for the normal test, you didn't need the web folder from this plugin. I think there is something wrong with your API key. Loog on you html source code and check which API key is used. Make sure thats the right key for you local/test url! Here is my test template: ?php use_helper('GMap') ? ?php $gMap = $sf_data-getRaw('gMap'); ? ?php include_map($gMap); ? ?php include_map_javascript($gMap); ? Test this, maybe it works also for you. BR Sebastian Zach schrieb: Sample 1 does not work for me. When I go here mydomain/ frontend_dev.php/sfEasyGMapPlugin/sample1 I just get the text The Map a big white space where the map should be and a search box to search the map. Did you move the the entire contents of plugins/sfEasyGMapPlugin/web to web/sfEasyGMapPlugin when you were setting it up? Thanks, Zach -- Sebastian Müller s.muel...@nm-f.de http://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, possible sources of errors : - you are using output escaping. In this case you should write in your template $gMap = $sf_data-getRaw(’gMap’); to disable output escaping on the $gMap variable - you are not connected to the Internet. This may seem stupid but that can happen :-) In that case, you will see using firebug that the javascript file of Google is empty - you did not set your api keys correctly. This is easy to check, you just need to find the script type=text/javascript src=http://www.google.com/jsapi? key=ABQIR8dhgMmvaR96TE0zbrZpPhQFiMk9rCRpAVfjZuYFZtH1h1BR3xSPD2PKz9UJARRHopRTimtYjbDKAA/ script line in your html source. If the key is empty, then that's where you should look for your mistake. symfony cc might be a solution in that case :-) Regards, Fabrice Bernhard -- http://www.theodo.fr On Jul 15, 10:25 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, no. Because for the normal test, you didn't need the web folder from this plugin. I think there is something wrong with your API key. Loog on you html source code and check which API key is used. Make sure thats the right key for you local/test url! Here is my test template: ?php use_helper('GMap') ? ?php $gMap = $sf_data-getRaw('gMap'); ? ?php include_map($gMap); ? ?php include_map_javascript($gMap); ? Test this, maybe it works also for you. BR Sebastian Zach schrieb: Sample 1 does not work for me. When I go here mydomain/ frontend_dev.php/sfEasyGMapPlugin/sample1 I just get the text The Map a big white space where the map should be and a search box to search the map. Did you move the the entire contents of plugins/sfEasyGMapPlugin/web to web/sfEasyGMapPlugin when you were setting it up? Thanks, Zach -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Sebastian, I double checked my API keys and they are correct, but I'm not sure it is being used... The code in your test template is the same as what I'm using. Hi Fabrice, I am already using $gMap = $sf_data-getRaw('gMap'); I double checked, and I am connected to the Internet :) I think your last suggestion is my problem and goes along with what Sebastian has been suggesting... I viewed the html source, but could not find src=... this is what I have: h1The 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 have done a symfony cc. When looking through the sf web debug toolbar code in the source I found this: parameterHolder: helper/asset/auto/httpmeta: Content-Type: text/html; charset=utf-8 helper/asset/auto/javascript: /sf/sf_web_debug/js/main: /sf/sf_web_debug/js/main /sfEasyGMapPlugin/js/sfEasyGMapPlugin.js: /sfEasyGMapPlugin/js/ sfEasyGMapPlugin.js /sfPrototypePlugin/js/prototype: /sfPrototypePlugin/js/prototype /sfPrototypePlugin/js/scriptaculous: /sfPrototypePlugin/js/ scriptaculous http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-VHzdDo70uUVQrZtOIA: http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-VHzdDo70uUVQrZtOIA That has the correct API key, but I don't know why it's not displaying as the src like you showed. Thanks for continuing to help me! I appreciate it very much, Zach On Jul 15, 4:29 am, Fabrice B fabrice.bernh...@gmail.com wrote: Hi Zach, possible sources of errors : - you are using output escaping. In this case you should write in your template $gMap = $sf_data-getRaw(’gMap’); to disable output escaping on the $gMap variable - you are not connected to the Internet. This may seem stupid but that can happen :-) In that case, you will see using firebug that the javascript file of Google is empty - you did not set your api keys correctly. This is easy to check, you just need to find the script type=text/javascript src=http://www.google.com/jsapi? key=ABQIR8dhgMmvaR96TE0zbrZpPhQFiMk9rCRpAVfjZuYFZtH1h1BR3xSPD2PKz9UJARR HopRTimtYjbDKAA/ script line in your html source. If the key is empty, then that's where you should look for your mistake. symfony cc might be a solution in that case :-) Regards, Fabrice Bernhard --http://www.theodo.fr On Jul 15, 10:25 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, no. Because for the normal test, you didn't need the web folder from this plugin. I think there is something wrong with your API key. Loog on you html source code and check which API key is used. Make sure thats the right key for you local/test url! Here is my test template: ?php use_helper('GMap') ? ?php $gMap = $sf_data-getRaw('gMap'); ? ?php include_map($gMap); ? ?php include_map_javascript($gMap); ? Test this, maybe it works also for you. BR Sebastian Zach schrieb: Sample 1 does not work for me. When I go here mydomain/ frontend_dev.php/sfEasyGMapPlugin/sample1 I just get the text The Map a big white space where the map should be and a search box to search the map. Did you move the the entire contents of plugins/sfEasyGMapPlugin/web to web/sfEasyGMapPlugin when you were setting it up? Thanks, Zach -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, have you setup ?php include_javascripts() ? in the header of your layout.php ? BR Sebastian Zach schrieb: Sebastian, I double checked my API keys and they are correct, but I'm not sure it is being used... The code in your test template is the same as what I'm using. Hi Fabrice, I am already using $gMap = $sf_data-getRaw('gMap'); I double checked, and I am connected to the Internet :) I think your last suggestion is my problem and goes along with what Sebastian has been suggesting... I viewed the html source, but could not find src=... this is what I have: h1The 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 have done a symfony cc. When looking through the sf web debug toolbar code in the source I found this: parameterHolder: helper/asset/auto/httpmeta: Content-Type: text/html; charset=utf-8 helper/asset/auto/javascript: /sf/sf_web_debug/js/main: /sf/sf_web_debug/js/main /sfEasyGMapPlugin/js/sfEasyGMapPlugin.js: /sfEasyGMapPlugin/js/ sfEasyGMapPlugin.js /sfPrototypePlugin/js/prototype: /sfPrototypePlugin/js/prototype /sfPrototypePlugin/js/scriptaculous: /sfPrototypePlugin/js/ scriptaculous http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-VHzdDo70uUVQrZtOIA: http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-VHzdDo70uUVQrZtOIA That has the correct API key, but I don't know why it's not displaying as the src like you showed. Thanks for continuing to help me! I appreciate it very much, Zach On Jul 15, 4:29 am, Fabrice B fabrice.bernh...@gmail.com wrote: Hi Zach, possible sources of errors : - you are using output escaping. In this case you should write in your template $gMap = $sf_data-getRaw(’gMap’); to disable output escaping on the $gMap variable - you are not connected to the Internet. This may seem stupid but that can happen :-) In that case, you will see using firebug that the javascript file of Google is empty - you did not set your api keys correctly. This is easy to check, you just need to find the script type=text/javascript src=http://www.google.com/jsapi? key=ABQIR8dhgMmvaR96TE0zbrZpPhQFiMk9rCRpAVfjZuYFZtH1h1BR3xSPD2PKz9UJARR HopRTimtYjbDKAA/ script line in your html source. If the key is empty, then that's where you should look for your mistake. symfony cc might be a solution in that case :-) Regards, Fabrice Bernhard --http://www.theodo.fr On Jul 15, 10:25 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, no. Because for the normal test, you didn't need the web folder from this plugin. I think there is something wrong with your API key. Loog on you html source code and check which API key is used. Make sure thats the right key for you local/test url! Here is my test template: ?php use_helper('GMap') ? ?php $gMap = $sf_data-getRaw('gMap'); ? ?php include_map($gMap); ? ?php include_map_javascript($gMap); ? Test this, maybe it works also for you. BR Sebastian Zach schrieb: Sample 1 does not work for me. When I go here mydomain/ frontend_dev.php/sfEasyGMapPlugin/sample1 I just get the text The Map a big white space where the map should be and a search box to search the map. Did you move the the entire contents of plugins/sfEasyGMapPlugin/web to web/sfEasyGMapPlugin when you were setting it up? Thanks, Zach -- Sebastian Müller
[symfony-users] Re: sfEasyGMapPlugin not working
I have not. Do I just put it in frontend/templates/layout.php? I tried that now, and it added script type=text/javascript src=http://www.google.com/jsapi? key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef- VHzdDo70uUVQrZtOIA/script to the source, but it is still not loading the map, just a large blank area where the map would be - Zach On Jul 15, 10:03 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, have you setup ?php include_javascripts() ? in the header of your layout.php ? BR Sebastian Zach schrieb: Sebastian, I double checked my API keys and they are correct, but I'm not sure it is being used... The code in your test template is the same as what I'm using. Hi Fabrice, I am already using $gMap = $sf_data-getRaw('gMap'); I double checked, and I am connected to the Internet :) I think your last suggestion is my problem and goes along with what Sebastian has been suggesting... I viewed the html source, but could not find src=... this is what I have: h1The 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 have done a symfony cc. When looking through the sf web debug toolbar code in the source I found this: parameterHolder: helper/asset/auto/httpmeta: Content-Type: text/html; charset=utf-8 helper/asset/auto/javascript: /sf/sf_web_debug/js/main: /sf/sf_web_debug/js/main /sfEasyGMapPlugin/js/sfEasyGMapPlugin.js: /sfEasyGMapPlugin/js/ sfEasyGMapPlugin.js /sfPrototypePlugin/js/prototype: /sfPrototypePlugin/js/prototype /sfPrototypePlugin/js/scriptaculous: /sfPrototypePlugin/js/ scriptaculous http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCw... http://www.google.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCw... That has the correct API key, but I don't know why it's not displaying as the src like you showed. Thanks for continuing to help me! I appreciate it very much, Zach On Jul 15, 4:29 am, Fabrice B fabrice.bernh...@gmail.com wrote: Hi Zach, possible sources of errors : - you are using output escaping. In this case you should write in your template $gMap = $sf_data-getRaw(’gMap’); to disable output escaping on the $gMap variable - you are not connected to the Internet. This may seem stupid but that can happen :-) In that case, you will see using firebug that the javascript file of Google is empty - you did not set your api keys correctly. This is easy to check, you just need to find the script type=text/javascript src=http://www.google.com/jsapi? key=ABQIR8dhgMmvaR96TE0zbrZpPhQFiMk9rCRpAVfjZuYFZtH1h1BR3xSPD2PKz9UJARR HopRTimtYjbDKAA/ script line in your html source. If the key is empty, then that's where you should look for your mistake. symfony cc might be a solution in that case :-) Regards, Fabrice Bernhard --http://www.theodo.fr On Jul 15, 10:25 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, no. Because for the normal test, you didn't need the web folder from this plugin. I think there is something wrong with your API key. Loog on you html source code and check which API key is used. Make sure thats the right key for you local/test url! Here is my test template: ?php use_helper('GMap') ? ?php $gMap = $sf_data-getRaw('gMap'); ? ?php include_map($gMap); ? ?php include_map_javascript($gMap); ? Test this, maybe it works also for
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, I have put it in the app.yml on the root/config folder. But have test the sample 1? If this also not work? BR Sebastian -- Sebastian Müller s.muel...@nm-f.de http://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Sample 1 does not work for me. When I go here mydomain/ frontend_dev.php/sfEasyGMapPlugin/sample1 I just get the text The Map a big white space where the map should be and a search box to search the map. Did you move the the entire contents of plugins/sfEasyGMapPlugin/web to web/sfEasyGMapPlugin when you were setting it up? Thanks, Zach On Jul 14, 6:34 am, Sebastian list.newmediafact...@googlemail.com wrote: Hi Zach, I have put it in the app.yml on the root/config folder. But have test the sample 1? If this also not work? BR Sebastian -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Has anyone used this plugin before? Maybe I just set it up wrong... and it's a very simple problem. I would really appreciate any help I can get on this issue. Thanks, Zach On Jul 8, 1:07 pm, Zach zach...@gmail.com wrote: 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: h1The 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: 'ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef- VHzdDo70uUVQrZtOIA' default: 'ABQIKE4fU- 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Zach, I use it and it works very fine. Have you setup the right API keys? So if you use http://example.localhost/ you have to create a API key for this url. BR from Hamburg Sebastian Zach schrieb: Has anyone used this plugin before? Maybe I just set it up wrong... and it's a very simple problem. I would really appreciate any help I can get on this issue. Thanks, Zach -- Sebastian Müller s.muel...@nm-f.de http://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin not working
Hi Sebastian, Thanks for the reply. Yes, I have setup the right API keys, but I'm not sure if I put them in the right place... I put them in the app.yml file for the plugin and also in the app.yml file for the frontend app. Does it matter which one it is in? Also, I moved the css, images, and js folders in the plugin's web folder to web/sfEasyGMapPlugin/. Is that right? Thanks for you help, Zach On Jul 13, 7:48 am, Sebastian Müller list.newmediafact...@googlemail.com wrote: Hi Zach, I use it and it works very fine. Have you setup the right API keys? So if you usehttp://example.localhost/you have to create a API key for this url. BR from Hamburg Sebastian Zach schrieb: Has anyone used this plugin before? Maybe I just set it up wrong... and it's a very simple problem. I would really appreciate any help I can get on this issue. Thanks, Zach -- Sebastian Müller s.muel...@nm-f.dehttp://www.new-mediafactory.de --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---