Wednesday, January 6, 2010

Re: 'E is not defined' Cannot drag/click map and the navigation/zoom controls are not shown

On Jan 6, 9:31 am, JSAmbay <jshe...@ambay.com> wrote:
> Hi,
>
> I had just finished writing a Google map project that integrated in to
> Community Server and Telligent Community. It consisted of a Windows
> service that periodicly geo coded the location of members and stored
> them in a database. That part works fine. The front end worked fine
> for about a week and then broke all of a sudden (around the 15th of
> December I think.)
>
> FireBug gives me the error 'E is not defined' this isn't very helpful,
> is there a way to view Google's javascript in an un-minified form? The
> symptoms of this are that the map displays properly but the zoom/
> navigate gadgets are not shown, the map cannot be dragged and markers
> cannot be clicked. The code can be viewed here:

http://www.emrupdate.com/map/

> in its most basic form it looks like this:
>


This line looks wrong and is not the correct way to load the API:
<script src="http://maps.gstatic.com/intl/en_ALL/mapfiles/193c/
maps2.api/main.js" type="text/javascript"></script>

This line should work by itself:
<script type="text/javascript" src="http://maps.google.com/maps?
file=api&v=2&sensor=false&key=ABQIAAAAPuyEpPazBhLVwtGiSlrbBhT7F5Ok1zX-
NTZdsx2yvHUtT9o9bBR5bNJsHNwkWaT67SmI4iZ2ksgeOg
"></script>

(beware line wrapping... why code dumps are not useful)

-- Larry


>
> The above code does nothing but display and center the map, however it
> still errors. If the drop down list is changed then additional
> javascript code is generated server side.
>
> Any help would be great. I don't think that I have changed anything
> that would break it. I can only assume that Google changed some code
> at their end or something?
>
> Thanks,
>
> Joe

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate