Hi there, i am actually writing a module which allows users to move their markers should a geocode of their address fail. I am stucked at this part where calling gmap macro which allows user to drop a marker and move it to their desired location. I have tried to mimic the gmap_macro_builder_form code but i don't really understand it.

I have tried to do this in my form >

$form['map']['mapdiv'] = array(
'#type' => 'gmap',
'#map' => 'macro_map',
'#settings' => array_merge(array(
'points' => array(),
'pointsOverlays' => array(),
'markername' => 'drupal',
'behavior' => array(
'dynmarkers' => TRUE
),
), array()),
);

The map does appear as an element but the marker does not turn up at all. I have tried creating a gmap element but only succeeded as far as getting the map on the form. I tried searching for marker drop/move and no useful results have turn up. Any help/suggestions at all is appreciated. Thanks in advance!

Comments

johnv’s picture

Status: Active » Closed (won't fix)

Closing this very old issue. Please reopen if it is still valid.