|
Joomla Google Map Api Component Map to DB |
|
Hi folks, Standard Joomla Google Map Api defines Latitude and Longitude with two input fields. You have to find the coordinates by yourself.
if your website has a public account, some people may not figure it out. This script uses a google map instead of latitude and longitude text input fields. Registered visitors can define latitude and longitude by one click on embedded google map. 1. You need to edit body tag. So,
<body> becomes <body onload="loadMap();">
I couldn't get rid of it. If anyone can figure it out, i would be grateful.
-I've just duplicated my main template as ie. my_template2 (including templateDetails.xml and the map) -put onload="loadMap();" in body tag -and assigned this template only to my "Submit a marker" page which is available for registered users.
If you put onload="loadMap();" in your main templates body tag, The component won't work.
2. Download google_maps.html.php and replace this file wih the original google_maps.html.php in components > com_google_maps. (you may want to backup the old file at this point)
That's it. Tell me what do you think. |