Google Maps Key invalid.

6 views
Skip to first unread message

Steve Krzysiak

unread,
Jun 1, 2010, 3:16:58 PM6/1/10
to Appraisal Dashboard
Hey gang,
Despite verifying that I have a proper Google maps key configured I
still get an error from AD(well,google to be more precise) stating my
key is invalid. Bing works fine, and I can test my key on my domain
to verify it is working right, but for some reason it doesn't want to
work in the AD environment. My config line looks like this:


AD.UI.map_goog_enabled = true; //set it to false to disable google
maps..
AD.UI.map_goog_key="my_verified_key";

Where my_verified key is my key of course. Has anyone encountered
this before?

I did a document.write of my key on the AD main page just to make sure
the variable was accessible and it is, so I'm stumped.


Thanks in advance,
Steve

Troy Davisson

unread,
Jun 1, 2010, 3:20:40 PM6/1/10
to crt-appraisal-d...@googlegroups.com
It does the same thing with me but I haven't tracked down why yet.  With Bing enabled, it works fine.

kannan kannan

unread,
Jun 1, 2010, 4:07:53 PM6/1/10
to crt-appraisal-d...@googlegroups.com
Hi Steve & Troy,
In the templates dir, there is the file ad.htm, which actually uses the key around line #18.
Can you hardcode your key there or use firebug to see what comes in?
Thanks
Kannan

Steve Krzysiak

unread,
Jun 1, 2010, 4:10:33 PM6/1/10
to Appraisal Dashboard
Good to know I'm not losingmy mind on this, thanks for confirming that
Troy.

OK, so this works for me. Find templates/html/ad.htm and change the
Google maps script inlude document.write line top this:

document.write("<script src='http://maps.google.com/maps?
file=api&amp;v=2&amp;sensor=false&amp;key="+AD.UI.map_goog_key+"'
type='text/javascript'>" +"'><\/sc" + "ript>");

I have no idea why this works as opposed to the other method. Also,
this may not be the best fix, thoughts?

-Steve


On Jun 1, 2:20 pm, Troy Davisson <troy.davis...@gmail.com> wrote:
> It does the same thing with me but I haven't tracked down why yet.  With
> Bing enabled, it works fine.
>

Steve Krzysiak

unread,
Jun 1, 2010, 4:11:58 PM6/1/10
to Appraisal Dashboard
Keenan,
I did try to hard code it several places, the only time I got it to
work at all was when I hard coded it into that script tag I posted on
my previous post. Then, when I knew it worked, I replaced the key
with the variable.

On Jun 1, 3:07 pm, kannan kannan <kan...@livevaluation.com> wrote:
> Hi Steve & Troy,
> In the templates dir, there is the file ad.htm, which actually uses the key around line #18.
> Can you hardcode your key there or use firebug to see what comes in?
> Thanks
> Kannan
>
> On Jun 1, 2010, at 12:20 PM, Troy Davisson wrote:
>
> > It does the same thing with me but I haven't tracked down why yet.  With Bing enabled, it works fine.
>
Reply all
Reply to author
Forward
0 new messages