Skip to content

Meteor 1.3: Can't find variable L #22

@jeroenbe

Description

@jeroenbe

I'm trying to use this package in Meteor 1.3, yet I can't get it to work. Here is the code as I have it now:

Template.map.onRendered(function(){
    Mapbox.load({
        gl: true
    })

    this.autorun(function (){
        if(Mapbox.loaded()){            
            L.mapbox.accessToken = 'MY_ACCESS_KEY'
            var map = L.mapbox.map('map', 'mapbox://styles/mapbox/outdoors-v9')
        }
    })
})

Since this package is made for Meteor 1.2, I don't seem to need an import statement for the package in this file since Mapbox is defined. Yet L isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions