Closed (fixed)
Project:
GMap Module
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2007 at 08:39 UTC
Updated:
12 Oct 2007 at 13:42 UTC
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
Comment #1
caprenter commentedI 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
Comment #2
caprenter commentedOk, 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.
Comment #3
bdragon commentedcontrol and tcontrol are now recognized again.
control maps to controltype.
tcontrol maps to the 'notype' behavior flag.
Comment #4
caprenter commentedYou are a star - thanks for all you work on this module!
Comment #5
(not verified) commented