works great on my site.
but i have noticed that after i click any link on my site (admin links, node links, ANY link) the browser shows briefly that it is connecting to maps.google.com. is that supposed to be so? does it need to be?

Comments

wrockwood’s picture

I have this issue as well. It's not documented anywhere how to make gmapez bits appear only on pages with gmaps. Suggestions welcome in lieu of having to hack the module for my own specific purposes (i.e: not loading gmapez stuff / connecting to maps.google on the hundreds of pages that DO NOT have gmaps.) Thanks.

wrockwood’s picture

nevermind, i just found gmapez_add_script();

I believe this will do what I expect it to :)

docwilmot’s picture

ahhh. ditto.

berenddeboer’s picture

Status: Active » Closed (fixed)

wrockwood, this is a setting. You can specify to include it always. Overhead might be heavy, so that's why it is not included by default. But maybe a better behaviour (for new and unsuspected users) might be to enable it by default.

bredi’s picture

so... how do you enable for certain pages?

thanks

bredi’s picture

Issue tags: +map, +maps, +gmapez, +google maps

This is what you do to enable it on only the pages you want. In my case I created a content type called "maps".

put this code snippet on last div of the .tpl file(s) you want to use gmapez on.

e.g. node-maps.tpl.php

gmapez_add_script();

turn off the setting to enable for all pages in the admin section http://www.example.com/admin/settings/gmapez settings.

please put this in the documentation or readme file please.

thanks!