Needs work
Project:
GMap Module
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2011 at 13:47 UTC
Updated:
3 Nov 2012 at 23:59 UTC
Javascript throws errors for all G*MAP mapTypes : G_PHYSICAL_MAP is not defined
opts.mapTypes.push(G_PHYSICAL_MAP);
Line 281 and below:
// Load google map types.
if (obj.vars.baselayers.Map) {
opts.mapTypes.push(G_NORMAL_MAP);
opts.mapTypeNames.push('Map');
}
if (obj.vars.baselayers.Satellite) {
opts.mapTypes.push(G_SATELLITE_MAP);
opts.mapTypeNames.push('Satellite');
}
if (obj.vars.baselayers.Hybrid) {
opts.mapTypes.push(G_HYBRID_MAP);
opts.mapTypeNames.push('Hybrid');
}
if (obj.vars.baselayers.Physical) {
opts.mapTypes.push(G_PHYSICAL_MAP);
opts.mapTypeNames.push('Physical');
}the file is js/gmap.js
* @file
* Drupal to Google Maps API bridge.
*/
/*global jQuery, Drupal, GLatLng, GSmallZoomControl, GLargeMapControl, GMap2 */
/*global GMapTypeControl, GSmallMapControl, G_HYBRID_MAP, G_NORMAL_MAP */
/*global G_PHYSICAL_MAP, G_SATELLITE_MAP, GHierarchicalMapTypeControl */
/*global GKeyboardHandler, GLatLngBounds, GMenuMapTypeControl, GEvent */
/*global GOverviewMapControl, GScaleControl, GUnload */ Drupal 7.9
Comments
Comment #1
Refineo commentedComment #2
Refineo commentedComment #2.0
Refineo commentedminor corrections
Comment #3
m.abdulqader commentedHello,
I was miss a lot of how to use JQuery in Drupal 7 and my problem solved now, I will share my solution to all.
Comment #5
Refineo commentedIs the patch #3 included in the latest dev ?
Comment #6
podarokplease, provide patch against latest dev
Comment #6.0
podarokthe file is js/gmap.js