Created
July 21, 2014 09:37
-
-
Save dantleech/0667e90a4995f7592831 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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