Hi. I may have missed it somewhere but I know you can set a default GMap width and height and just macros to change it. Can you do that when you use the GMap View? I have a default size set but I want to create a view that shows a smaller map but I cannot figure out how to specify the new height and width I want.

Comments

bdragon’s picture

Status: Active » Fixed

In the argument handler code, you can set $view->gmap_macro to a macro.

$view->gmap_macro = '[gmap |width=500px |height=500px]'
ray007’s picture

I guess that info should make it info to readme file.

bdragon’s picture

Component: Code » Documentation
Category: support » task
Status: Fixed » Active

Good point. Moving to documentation.

bdragon’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of http://drupal.org/node/181208.
Thank you for your issue.

socialnicheguru’s picture

subscribing. this was great. what i needed to maekk the view work.