Active
Project:
GMap Module
Version:
7.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2013 at 20:46 UTC
Updated:
16 May 2013 at 23:02 UTC
Jump to comment: Most recent file
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.
Correct code to support the "None" selection for Map Type Control
None
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | gmap-mapType.patch | 470 bytes | mikel1 |
Comments
Comment #1
yvesvanlaer commentedHi 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;
}
Comment #2
mikel1 commentedWorks like a champ. Changed it into a patch file...