close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Pro Maps for google ShowGooglebar

Thread began 9/12/2011 3:09 pm by badsusmc429990 | Last modified 9/13/2011 2:39 pm by badsusmc429990 | 2339 views | 4 replies |

badsusmc429990

Pro Maps for google ShowGooglebar

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?

Sign in to reply to this post

badsusmc429990

enablegooglebar() <------- is what i meant to put

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

badsusmc429990

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.

Sign in to reply to this post

badsusmc429990

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.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...