Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layers variable leaks out to global scope #7

Open
rgdonohue opened this issue May 22, 2019 · 0 comments
Open

layers variable leaks out to global scope #7

rgdonohue opened this issue May 22, 2019 · 0 comments

Comments

@rgdonohue
Copy link

rgdonohue commented May 22, 2019

Looks like layers isn't declared within the storymap.2.5.js script. Can be fixed by passing layers as a setting to the map:

$('#storymap').storymap({
        layers: layers,
        scenes: scenes,

And then accessing like so within storymap.2.5.js (line 292):

$.each(settings.layers, function (key, layer) {

    // layer = layer.layer;
    layer.layer.on('s');
    layer.layer.on('load', function () {
        $(".storymap-loader").fadeTo(1000, 0);
    })

});```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant