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/Th开发者_开发问答8xS/2/
However, I am unable to make the map load. What am I doing wrong?
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/
精彩评论