Web Design Forum: Buggy Google Maps API - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Buggy Google Maps API

#1 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 January 2012 - 11:58 AM

Dunno what's going on here: http://shokadu.co.uk/

It's in the accordion.

I've set it up exactly how it says and this should be fairly basic, but the map is extremely buggy. It doesn't center properly, parts of it don't load, and when you zoom it mucks up.

Ideas? I've done much more complex stuff with the API so I don't know why this is happening.
0

#2 User is online   mteam 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,828
  • Joined: 07-November 09
  • Reputation: 247
  • Gender:Male
  • Location:Manchester
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 16 January 2012 - 12:24 PM

I seem to remember googlemaps doesn't like display:none
0

#3 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 January 2012 - 12:26 PM

You mean....the problem is putting it into the accordion?

Bugger!
0

#4 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 January 2012 - 12:34 PM

Found a solution: http://www.essential...uery-accordion/

Smart idea.
0

#5 User is online   mteam 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,828
  • Joined: 07-November 09
  • Reputation: 247
  • Gender:Male
  • Location:Manchester
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 16 January 2012 - 12:42 PM

Nice find neat fix that
0

#6 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 January 2012 - 02:16 PM

One slight problem...

Doesn't let you add markers or do anything to the map.

D'oh.
0

#7 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 16 January 2012 - 02:20 PM

Last time I ended up using absolute positioning and visibility: hidden. Works fine with markers etc.

This post has been edited by Renaissance-Design: 16 January 2012 - 02:21 PM

0

#8 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 January 2012 - 02:31 PM

But that would involve tinkering with how the accordion works? Which I can't do as I'm using UI.
0

#9 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 16 January 2012 - 02:35 PM

Ah. Bit of a bugger then. I was just using tabs, and I refuse to include UI for tabs because I can do it with a couple of lines of jQuery.
0

#10 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 January 2012 - 02:53 PM

I'd do the same, but I know I'll be using UI a lot.

I'll try and find another way, there must be.
0

#11 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 17 January 2012 - 08:49 AM

Got this far: http://shokadu.co.uk/

Using a bodgy onclick which I'd obviously move outside of the HTML.

It works on a first click, however, if you expand another tab and then go back to it the same problems occur.

I've tried writing some jQuery that empties the div (essentially reverting it back to its empty state) when you click another tab, but even this doesn't work.

Ideas?

This post has been edited by brightonmike: 17 January 2012 - 11:21 AM

0

#12 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 17 January 2012 - 11:25 AM

http://jsfiddle.net/...onmike/VJ4zW/1/

:(

Thought I was onto something...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users