Hi all,

It would be great to add option to enable GoogleBar on Drupal GMap.
Here is an exemple :
http://gmaps-samples.googlecode.com/svn/trunk/googlebar/googlebaroptions...

Thx for your wonderfull module.

Comments

srobert72’s picture

Status: Active » Needs review
StatusFileSize
new1.35 KB

Here is patch to enable Google Bar.
Just a checkbox in admin/settings/gmap page.

srobert72’s picture

Patch from #1 has been reposted in new issue in all-in-one patch.
It is now compatible with last DEV version 6.x-1.x-dev (2009-Dec-16)
See #679804: Patch for 4 new features in GMap

monotaga’s picture

StatusFileSize
new204.89 KB

With the changes to the Googlebar, the Googlebar is now defaulting to being collapsed and isn't showing up properly (see attached).

How do we change the options passed in the javascript file so that showOnLoad = true? (http://code.google.com/apis/maps/documentation/reference.html#GGoogleBar...) I'm assuming it's got to be done somewhere in modules/gmap/js/gmap.js, but I'm not having luck trying to plug in the right code. (My js skills aren't that great...)

Any thoughts?

Thanks!

Mark

monotaga’s picture

StatusFileSize
new537 bytes

I figured out something that appears to work. Comments?

monotaga’s picture

StatusFileSize
new573 bytes

Oops, that one wasn't complete. Try this one instead.

rooby’s picture

Status: Needs review » Closed (duplicate)

Marking as duplicate of #679804: Patch for 4 new features in GMap

@monotaga:
The problem you are seeing is due to css from system.css & style.css in garland (if you are using garland, otherwise somewhere else).
I have added a small css fix to the patch that will be committed that addresses this.

retuam’s picture

Hello. And how can I set google bar on adding node page, not just in searching on viewing of node? It is not "googlebar": 1 in <!--//--><![CDATA[//><!--...

mrpeanut’s picture

Would also like to enable Google bar on the map used to enter location data (i.e. on user profiles, nodes, etc.). This would enable users to search for their city/state, click where they live, then save.

mayur.pimple’s picture

i want google bar in map/macro page so that we can get location.
in Macro text.

schackattack’s picture

I don't know about the macro, but for now I made it work by adding $map['behavior']['googlebar'] = TRUE; after line 352 in location.module. Location module version 6.x-3.1. Just a quickfix...

akleinwaechter’s picture

That works:
[gmap zoom=4 |center=1.3182430568620136,24.697265625 |width=100% |height=300px |control=Small |type=Map |behavior=+googlebar]