On 21 June 2012 02:46, SeoGuy <[email protected]> wrote:
>
> I don't mean to take advantage of your kindness as your pointers are much
> appreciated.  The thing is that this is my very first experience with Google
> maps and I'm a little, ok I admit it: very confused.

There's no problem with asking in the group; that's what it's there
for. Replies may be a bit terse because there's no point in
superfluity. (But: please don't CC me into replies; I get emailed by
the groups software, and CCs mess up replying).

> Here's what I did try:
>
> I tried using my client's key (she did allow requests from my domain).That
> didn't work.
>
> I did follow your advice and create a new key, which didn't work either.
>
> Here is the key I put on my page (I will replace it once we figure this
> out):
>
> <script type="text/javascript"
>
> src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCes2HQWIKB5NsxjZWaJ-rd516-4-V1u2U&sensor=true";>
>     </script>

That looks fine; it loads Version 3. You won't need to replace the key
because only you can use it (you specify the referrers for which it's
valid).

> This may be irrelevant yet if I replace "true" with "TRUE" in above
> statement, I get a different error message:
>
> The Google Maps API server rejected your request. The "sensor" parameter
> specified in the request must be set to either "true" or "false".

Yes. TRUE is not the same as true. Javascript and other languages are
case-sensitive.

Using Firebug, I can see you are loading
http://maps.googleapis.com/maps/api/js?key=AIzaSyCes2HQWIKB5NsxjZWaJ-rd516-4-V1u2U&sensor=true
http://maps.google.com/maps?file=googleapi&key=ABQIAAAAmfnmLtcTHrHhkpkNKRujrRRnRZM9i66V77rRaQmSxF8bpYq1RBQ2RLYMDfRCRcCPWBzO7serz8DfcA&v=2.x

So you are loading both Version 3 and Version 2 APIs. I can't find
where the Version 2 API is loaded; I suspect that's what is producing
the message.

But you don't appear to have any code which builds a map in any case.
I can't find the "resultsMap" div referenced anywhere.

However: I *can* see what you meant by "include". Your developer has
used php to include a complete web page inside another. Unfortunately
that has resulted in invalid HTML because you have two <html> elements
and two <head> elements. And it's probably what has resulted in
loading different APIs.

It's looking rather like you need to hire a developer. I'm afraid that
sorting out that code is probably beyond the scope of this group.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to