How To Regenerate Drupal GMAP Marker Cache (Request for Invalid Marker Set)

| Drupal Development | 33 seen

Although it doesn't happen often, in rare situations you might get in trouble with GMAP marker sets. The most common case is change with folder permissions or migrating site to another host.

How to add Custom Markers for Gmap Module Drupal

Here is how it looks:

Request for invalid marker set notification

Request for invalid marker set notification

And here is how map field looks:

Map with missing marker (s)

Map with a missing marker (s)

The default map is displayed.

Luckily there is a simple solution - delete gmap.markers.js file from files/js folder, and markers will regenerate by themselves.

sudo rm -rf  gmap_markers.js

Now, run clear cache and all markers should be back

Marker cache cleared

Marker cache cleared

 

Latest articles

Berlin Zoo and Aquarium: One of the Best Things To Do in Berlin With Kids

At the start of April 2026, during our roughly five-day trip to Berlin, we finally visited the famous Berlin Zoo for the first time - or at least the first time I can actually remember. There is a chance my mom might have taken me here sometime in the early 1990s, but if so, those memories are long gone. This visit felt completely new, and…

Germany |

Berlin Brandenburg Airport

In April 2026, I had my first experience with Berlin Brandenburg Airport (BER) while flying the Riga–Berlin–Riga route with airBaltic. This was my first time using Berlin’s main international airport, and overall, it left a solid impression—modern, functional, and relatively easy to navigate. About a decade ago, I had the chance to travel through…

Germany |