Yesterday I submitted to my SVN a whole new bunch of code which brings the jQuery Maps Plugin up to 1.3a
The new code now provides the user a framework for not only working with Google Maps, but now also Yahoo! maps, however the functionality is currently not as complete. For example, with Yahoo! you cannot yet do the AJAX geocoding or directions search. If anyone has worked with the Yahoo! Maps API, please get in contact, as the API is quite bad, and I just cannot get AJAX geocoding to work (unlike Google, which was a breeze!)
You can check out the latest code here: http://jmaps.googlecode.com
The default way of using the plugin initializes a Google map, like this:
$('#jmap').jmap();
If you want to use a Yahoo! map instead, you simply pass in a provider variable:
$('#jmap').jmap({provider: "yahoo"});
There are also options to pick what type of map you wish to show- "sat" for Satellite, "map" for standard map and the default is "hybrid" for Hybrid map:
$('#jmap').jmap({maptype: "sat"});
To add a point to the map, it's very easy:
$('#jmap').addPoint('55.948286','-3.200111', 'Point1', true, false);
The above code adds a point over Edinburgh, with the Popup text of "Point 1". The point is draggable, but not deletable via double click. The plugin also supports KML and GeoRSS. The below will render a KML file over downtown Chicago:
$('#jmap').addRss('http://mapgadgets.googlepages.com/cta.kml');
For futher options, check out the comments within the code to see what works with what type of map. I have only run testing on FF2 on Kubuntu, so would appreciate any user feedback, as well as comments and suggestions.