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

It should not depend on Google Maps, because otherwise you can't load the Map async. #1

Open
yagoferrer opened this issue Apr 18, 2015 · 1 comment

Comments

@yagoferrer
Copy link
Owner

No description provided.

@DanLatimer
Copy link

FYI - you can load this library async by using a require() call Eg.

  public static loadMarkerSpiderfier() {
    if (global.isMarkerSpidifierLoaded) {
      return
    }
    global.isMarkerSpidifierLoaded = true
    // This must be "required" instead of "included" as includes are hoisted and this must be required
    // here so that the script tag will have defined google as a namespace on window
    require('marker-spider/dist/oms.min')
  }

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

2 participants