View Full Version : Pro Maps for google ShowGooglebar
badsusmc429990
09-12-2011, 12:09 PM
in Pro maps for google i want to add the googlebar() search Functionality to my map Which will replace the standerd Google tm picture at the bottem left hand corner of the map. so guests on the site can search for an address and it will pull the information from my Database table. this functionality is possible in Google maps Api V2 and V3 is it possible to add this to the code in Dreamweaver Cs5.5 with Pro Maps For Google?
badsusmc429990
09-12-2011, 12:10 PM
enablegooglebar() <------- is what i meant to put
Jason Byrnes
09-13-2011, 10:04 AM
in the map.js file, find the following line:
var map = new GMap2(document.getElementById('wagmp_map_1'));
and change it to:
var map = new GMap2(document.getElementById('wagmp_map_1'));
map.enableGoogleBar();
this is not supported in pro Maps for Google, so i cant say if it will do what you want and search your database.
badsusmc429990
09-13-2011, 11:33 AM
i greatly appriciate your help thank you i will try it. but as a futur suggestion i told them that would be a nice update for the program. because it did everything i needed it to... except the one thing i needed most lol
and on a related topic is it possible to use GEO coding with this so with Data assist. because i want my users to be able to input locations for the map and just have them put down a name and street address instead of lat and long which seems to be required
so in essence i wanna just have a
Name:______________
Address:____________
Type of Restaurant:__________ etc.
without haveing a
Lat:______
Long:_____
box too.
badsusmc429990
09-13-2011, 11:39 AM
and have that informtion go into my Recordset table and filter back down into the map. and as for the search function.
This is a geo location Function if i do get it to work would i just use the standerd google api commands to set it up. EX
-----------------------------------------------------------------------------------------
function searchLocations() { var address = document.getElementById("addressInput").value; var geocoder = new google.maps.Geocoder(); geocoder.geocode({address: address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { searchLocationsNear(results[0].geometry.location); } else { alert(address + ' not found'); } });}
-----------------------------------------------------------------------------------------
another question for the statement above would be that wouldnt i have to hook that up to the google search button or would i have to create a new one for that to work because i dont need them having to find coordinates for every location they wannna lookup.
&
This is a find locations statement so that they would only get 20 markers in a 25 mile radius for the location they look up
--------------------------------------------------------------------------------------
SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < 25 ORDER BY distance LIMIT 0 , 20;
--------------------------------------------------------------------------------------
are any of these compatable with this program? and if so how would i enter these functions in?
THANKS IN ADVANCE TO WHOEVER HELPS ME!!!!
Bought the Super Suite and am liking it cept for these couple problems.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.