     $("input#lab_latitude").val result.geometry.location.lat()
     $("input#lab_longitude").val result.geometry.location.lng()
 
+
+# Embed map
+
   if $('body').hasClass('c-labs a-map') or $('body').hasClass('a-embed')
     L.mapbox.accessToken = 'pk.eyJ1IjoidG9tYXNkaWV6IiwiYSI6ImRTd01HSGsifQ.loQdtLNQ8GJkJl2LUzzxVg'
     map = L.mapbox.map('map', 'mapbox.light', { scrollWheelZoom: true, zoomControl: false }).setView([

            popupAnchor:  [0, -20]
          })
          lab.marker = L.marker([lab.latitude, lab.longitude], {icon: icon})
          lab.marker.bindPopup("<a target='_top' href='#{lab.url}'>#{lab.name}</a>")
          window.markers.addLayer(lab.marker)
          window.labs.push(lab)
    map.addLayer(window.markers)

    windowHeight = ->
      $('#map').css('top', $('#main').offset().top).height($(window).height() - $('#main').offset().top)

      0
    ], 2)

    new L.Control.Zoom({ position: 'topleft' }).addTo(map)
    navigator.geolocation.getCurrentPosition((position)->
      map.setView([position.coords.latitude, position.coords.longitude], 4)
    )

    allLabs = new (L.LayerGroup)
    map.addLayer(allLabs)

    $.get "/labs/mapdata.json", (labs) ->
      for lab in labs.labs
