Javascript is included in two ways. As defined by the user or by other scripts as dependencies.
The user changes includes by modifying the script src for the main mxn.js file:
- script/mxn.js - loads all modules and all providers
- script/mxn.js?(google) - loads all modules, google provider only
- script/mxn.js?(google, yahoo) - loads all modules, google and yahoo providers only
- script/mxn.js?(google, [mapstraction,utilities]) - loads mapstraction and utilities modules, google provider only
Files for this demo:
script/mxn.js
script/modules/mxn.mapstraction.js
script/modules/mxn.polyline.js
script/modules/mxn.geocode.js
script/modules/mxn.route.js
script/modules/mxn.radius.js
script/google/mxn.mapstraction.google.js
...
script/yahoo/mxn.mapstraction.yahoo.js
...