Hi,

not sure if it is a bug or just an API change, but whatever I set tcontrol or control to, the map type control will be visible an the zoom control will be small.

Here my code:

$map = array(
    'id' => 'map',
    'latitude' => LATITUDE,
    'longitude'=> LONGITUDE,
    'control' => 'Large',
    'tcontrol' => 'off',
    'zoom' => 10,
    'width' => '500px',
    'height' => '375px',
    'type' => 'Map',
    'markers' => array());

$page_content = theme(
    'gmap',
    array('#settings' => $map));

print theme("page", $page_content);

Comments

caprenter’s picture

Category: support » bug

I have the same issue trying to use the macro tool. I just noticed that one of the maps didn't have the Large zoom control - I guess it could have been missing for some time.

I tried changing the API version number in gmap.module (line 26) to 2.69, but made no difference.

Anyone else? Any clues?

Thanks

caprenter’s picture

Ok, with a bit of checking around, I think it might be linked to the default settings (Administer - Site Configuration - Gmap settings).

I got the Large control working by setting it as default for the site - but I can't now specify control=Small in the macro, it is ignored.

The map Type can also be turned off in these settings - I haven't tried because I don't want to risk that site wide just now.

I think default settings could be a place to start investigating.

bdragon’s picture

Status: Active » Fixed

control and tcontrol are now recognized again.

control maps to controltype.
tcontrol maps to the 'notype' behavior flag.

caprenter’s picture

You are a star - thanks for all you work on this module!

Anonymous’s picture

Status: Fixed » Closed (fixed)