Skip to content

Instantly share code, notes, and snippets.

@dantleech
Created July 21, 2014 09:37
Show Gist options
  • Select an option

  • Save dantleech/0667e90a4995f7592831 to your computer and use it in GitHub Desktop.

Select an option

Save dantleech/0667e90a4995f7592831 to your computer and use it in GitHub Desktop.
define(['leaflet'], function (leaflet) {
return function Leaflet(options) {
this.show = function (selector, long, lat, zoom) {
// ...
}
};
});
require(['map/' + providerName], function (Map) {
var map = new Map(this.options.providers[providerName]);
map.show(constants.mapElementId, loc.long, loc.lat, loc.zoom);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment