could someone have a quick look at my code - map not showing up at all

112 views
Skip to first unread message

Kevin McMonagle

unread,
Nov 9, 2011, 7:12:09 PM11/9/11
to google-map...@googlegroups.com
Hi,
I'm new to V3 but it seems pretty straight forward.
However I'm having no luck. I'm using the go map jQuery plug-in so maybe it's not appropriate to post this here.
Don't know. All my links are working properly. I disabled the other jquery stuff on the page but had no effect.
Maybe missing something simple.

If anyone could take a quick look I'd be grateful.
Here is the page:

map not showing on this page

Andrew Leach

unread,
Nov 9, 2011, 7:58:03 PM11/9/11
to google-map...@googlegroups.com
On 10 November 2011 00:12, Kevin McMonagle <in...@mcmonagledesign.com> wrote:
> Hi,
> I'm new to V3 but it seems pretty straight forward.
> However I'm having no luck. I'm using the go map jQuery plug-in so maybe
> it's not appropriate to post this here.
> Don't know. All my links are working properly. I disabled the other jquery
> stuff on the page but had no effect.
> Maybe missing something simple.
>
> If anyone could take a quick look I'd be grateful.

I get an error "jQuery is not defined", so I'd try loading
jquery-1.6.1.min.js before anything else which might depend on it
(like the gomap, lightbox and nivo extensions).

Kevin McMonagle

unread,
Nov 10, 2011, 2:42:15 AM11/10/11
to google-map...@googlegroups.com
Hi Andrew,
I don't understand how you got that as it links fine for me.
Also the other things that depend on it work fine.

Andrew Leach

unread,
Nov 10, 2011, 5:21:37 AM11/10/11
to google-map...@googlegroups.com

I got the error using Firebug. The gomap script doesn't know about a
variable called "jQuery".

The other things that depend on jQuery are loaded after it. The gomap
utility script is loaded before the main jQuery script. jQuery needs
to be loaded before anything that depends on it.

Note that there may be other things wrong, but getting the order right
will at least eliminate script dependencies.

Kevin McMonagle

unread,
Nov 10, 2011, 8:37:07 AM11/10/11
to google-map...@googlegroups.com, andrew....@gmail.com
ah thanks. i see. 


well i've changed the  load order so that's one tick off.

<script type="text/javascript" src="http://.....ie/js/jquery-1.6.1.min.js"></script>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 


<script type="text/javascript" src="http://www......ie/js/jquery.gomap-1.3.2.js"></script>

still not showing up. 

don't have firebug on my laptop so can't check the dom like that. 

geoco...@gmail.com

unread,
Nov 10, 2011, 8:59:27 AM11/10/11
to Google Maps JavaScript API v3
Try Ctrl-Shift-J for the Javascript console (in Firefox, Chrome), that
will at least tell you about the errors...

-- Larry

Kevin McMonagle

unread,
Nov 13, 2011, 2:29:22 PM11/13/11
to google-map...@googlegroups.com
Hi Larry,
Error console doesn't show anything obvious to me. It shows some errors and warnings with the google maps api elements like position and i think polygon but didn't look like the cause. Map still not showing up at all. Not sure how else to trouble shoot it.
-thanks
kevin

Rossko

unread,
Nov 13, 2011, 2:55:07 PM11/13/11
to Google Maps JavaScript API v3
> map not showing on this page<http://www.artworksframing.ie/contact-artworks-framing-letterkenny-co...>

$(function() {
$("#map").goMap({ .... etc
You don't seem to have any <div id='map'>
Here's an example of using gomap
http://www.pittss.lv/jquery/gomap/

Kevin McMonagle

unread,
Nov 13, 2011, 6:08:28 PM11/13/11
to google-map...@googlegroups.com
thanks guys.
sorry for being an eejit!
I was putting the function in the body the whole time because that's the way the html looked to me in the gomap example!
Also there was a conflict with some other scripts on the page.

Reply all
Reply to author
Forward
0 new messages