Keyslinger
Keyslinger

Reputation: 5274

jQuery map plugin does not load in jsFiddle

I've created the following jsFiddle which includes as resources Google Maps API and the gMap jQuery plugin:

http://jsfiddle.net/thompcha/Th8xS/2/

However, I am unable to make the map load. What am I doing wrong?

Upvotes: 0

Views: 603

Answers (1)

Sparky
Sparky

Reputation: 98718

The gmap plugin is horribly out of date. Google Maps API version 2 requires an API key which is only valid on one particular domain. (It won't work on jsfiddle.net without an API key registered specifically for the jsfiddle.net domain.)

The new Google Map API (v3) does not require an API key. It's also easier to use so you shouldn't need jQuery or a separate jQuery plugin.

http://jsfiddle.net/X5r8r/222/

Upvotes: 1

Related Questions