How to use the mapbox.js.LatLng function in mapbox

To help you get started, we’ve selected a few mapbox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openseattle / sewardparkstories.org / lib / map.js View on Github external
movement.on('data', function (data) {
    location.setLatLng(new L.LatLng(data.coords.latitude, data.coords.longitude))
  })