0.2.0 • Published 10 years ago

mapper-keeper v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 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

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago