Debugging Commonly Encountered Issues on GMap
Last updated on
30 April 2025
The following is a non-comprehensive list of things to check if your markers are not showing up on a Gmap or if JS is enabled in your browser yet the map is not showing at all.
You can add to the list, if you've found others that solved these problems for you.
- Make sure that your theme has
print $closureat the bottom - Make sure that there are markers on the map (look for a Drupal.settings JSON array with "markers" in it)
- Make sure that if you are using a third-party marker manager that it is in the thirdparty directory under gmap
- Make sure that gmap_markers.js exists, is being loaded (try to load it in your browser), and has the correct path to the markers, and a JSON array of marker data. Go to admin/settings/gmap and regenerate the marker cache if it is broken. If that doesn't work, check the settings in admin/settings/file-system, and if the permissions are wrong, fix them in the directories.
- Do not use the GMarkerManager (I don't think it works anymore) - use the third-party MarkerManager instead
- Make sure that on the GMap macro in question, that if it contains a zoom value, that zoom=[Maximum Zoom and/or Minimum Zoom] on the marker manager. Set autozoom in the main Gmap settings if possible. (This was required for me only on 6.x-1.x-dev, not 6.x-1.1.)
If this don't work, you can try the following (which I don't think should be necessary):
- Move
$scriptsto the top of your theme below$stylesinstead of at the bottom above$closure. This shouldn't be necessary in recent versions of the module, though. - Change the line at the top of gmap.module to say
define('GMAP_API_VERSION', '2');
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion