Just started using the Gmap module, and am dismayed to find that the gmap_draw_map function alluded to in API.txt was taken out of CVS 9 days ago. What's the new way to draw arbitrary maps? The CVS commit message isn't helpful.

Comments

bdragon’s picture

Easiest way?

Probabaly

echo theme('gmap', array('settings' => gmap_parse_macro('[gmap |id=map1 |width=120px .... ]')));
bdragon’s picture

Easiest way?

Probabaly

echo theme('gmap', array('#settings' => gmap_parse_macro('[gmap |id=map1 |width=120px .... ]')));
bdragon’s picture

(yeah, the first post was buggy.)

incidentist’s picture

Thanks! I see where it is in the code now. Other ways:

* see function gmap_simple_map()

* use the array you normally would have passed to gmap_draw_map() as the value to the #settings key above, instead of calling gmap_parse_macro().

bdragon’s picture

lol, yeah, gmap_simple_map() too.. heh

bdragon’s picture

API.txt needs a complete rewrite, if you haven't noticed. :(

bdragon’s picture

Status: Active » Closed (duplicate)

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

danielb’s picture

wow this was extremely annoying... how long ago was this thread made? the problem still exists, spent hours looking for gmap_draw_map() argh, this module doesn't work