Please, help me with one sample, how to create in the node one map.
All required data create from macro, and copy and store one cck text-field.

    $my  = $node->field_gmap_poz[0][value]; 
    $mymap = gmap_parse_macro($my);

    $mymap[ 'tcontrol'] = 'off'; // NOT visible map type

    print gmap_draw_map($mymap); // not work :-(

I tried it the next line, but this not good
   $print = theme('gmap',$mymap);

Comments

Anonymous’s picture

Try this

$my  = $node->field_gmap_poz[0][value];
$mymap = gmap_parse_macro($my);
$mymap[ 'tcontrol'] = 'off'; // NOT visible map type

$out = array('#settings' => $mymap);
$print = theme('gmap', $out);
DTB’s picture

Thank you, this work :-))))

DTB

Anonymous’s picture

Status: Active » Fixed

great.

Anonymous’s picture

Status: Fixed » Closed (fixed)