0.2.0 • Published 9 years ago

mapper-keeper v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

mapper-keeper

import { Mapper, Keeper } from 'mapper-keeper/google'

let map = new Mapper(options)
map.mount(document.getElementById('map-container'))

let results = new Keeper(function (lat, lng) {
  return fetch(`/api/locations/${lat}/${lng}`)
    .then((res) => res.json())
});

map.on('dragend', function () {
  results
    .fetch(map.getCenter())
    .then((locations) => map.display(locations));
})
0.2.0

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago