Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Unless i keep "Rebuild theme registry on every page checked" in the Theme configure panel the GMap Locations map doesnt show up at all. i could get it to show up once if i regenerated the marker cache on the Gmap location panel, but it would disappear on the next page refresh.
Leaving this checked is obviously a huge performance hit, so not sure how to resolve.
THoughts?
Comments
Comment #1
klamoureux CreditAttribution: klamoureux commentedJust to expand, it appears that the .js files don't render when I don't leave rebuild theme registry on
Comment #2
ad4m CreditAttribution: ad4m commentedAny progress on that issue?
Comment #3
oxigen CreditAttribution: oxigen commentedI have the same problem. Anybody knows any solution? For me js cache is turned off.
Comment #4
asb CreditAttribution: asb commentedPut
drupal_rebuild_theme_registry();
in your template.php and figure out some benchmarking if it really is a major performance hit (just found this in a client's theme, took me a while to figure out while it wasn't commented out).-asb
Comment #5
geaseSame issue here. I have location cck field attached to some nodes, and the map displays ok on node pages. But I have also a views page with map for all nodes, for which I had to redeclare views style plugin and needed thus to move gmap-views-gmap.tpl.php into the theme folder. And in that case map displays only once after theme registry cache is cleared.
Comment #6
GaëlGSubscribing. I'm using
$vars['search_results_map'] = theme('gmap', array('#settings' => $map_array));
in my hook_preprocess_search_results, and it only works when not cached (i.e. only once, when I clear the cache).