Advertisement
Guest User

Untitled

a guest
May 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. /**
  2. * In this example, we can see that on the document event DOMContentLoaded, we will load the provided account
  3. * account and setup the LocusLabs with the provided airport.
  4. */
  5.  
  6. function venueLoaded(_venue) {
  7. console.log("This callback is called after venue is loaded.")
  8. }
  9.  
  10. document.addEventListener("DOMContentLoaded", function(event) {
  11.  
  12. var config = { accountId: 'ACCOUNTID', assetsBase : "ASSETBASE" }
  13.  
  14. locuslabs.setup(config, function() {
  15. new locuslabs.maps.AirportDatabase().loadAirport('VENUEID', venueLoaded);
  16. })
  17.  
  18. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement