Displaying 1 result from an estimated 1 matches for "getavailableproviders".
2009 May 31
7
[mapstraction commit] r11 - Added functionality to automatically load scripts needed.
...itted, first loaded provider implementation is used.
* @param {Bool} debug optional parameter to turn on debug support - this
uses alert panels for unsupported actions
* @constructor
*/
var Mapstraction = mxn.Mapstraction = function(element, api, debug) {
+ if (!api) api = mxn.util.getAvailableProviders()[0];
this.api = api;
this.maps = {};
this.currentElement = $m(element);
Modified: trunk/source/mxn.js
==============================================================================
--- trunk/source/mxn.js (original)
+++ trunk/source/mxn.js Sun May 31 11:13:23 2009
@@ -3,8 +3,56 @@
//...