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

klamoureux’s picture

Just to expand, it appears that the .js files don't render when I don't leave rebuild theme registry on

ad4m’s picture

Any progress on that issue?

oxigen’s picture

I have the same problem. Anybody knows any solution? For me js cache is turned off.

asb’s picture

Put 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

gease’s picture

Same 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.

GaëlG’s picture

Subscribing. 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).