Problem/Motivation

Upgraded from 7.x-1.1-beta2 to 7.x-2.6. Used to be able to display maps without map type controls. Now, with "Map Type Control" set to "None" on the configuration page, map displays dropdown map type control.

Proposed resolution

Correct code to support the "None" selection for Map Type Control

Remaining tasks

User interface changes

None

API changes

None

Original report by [username]

CommentFileSizeAuthor
#2 gmap-mapType.patch470 bytesmikel1

Comments

yvesvanlaer’s picture

Hi mikel1

I wrote an extra condition in gmap.js to remove the map controls
Line: 322, at:
// Map type control
opts.mapTypeControl = true;
opts.mapTypeControlOptions = {};

if (obj.vars.mtc === 'none') {
opts.mapTypeControl = false;
}

mikel1’s picture

StatusFileSize
new470 bytes

Works like a champ. Changed it into a patch file...