mapbox / mapbox-match.js

A plugin to align geometries to streetmap data
Other
34 stars 6 forks source link

Switch xhr for corslite #3

Closed freenerd closed 9 years ago

freenerd commented 9 years ago

In Mapbox.js we use https://github.com/mapbox/corslite for ajax requests. Since Mapbox.js is a dependency of this leaflet plugin here anyways, we should also use corslite here.

planemad commented 9 years ago

@freenerd are there POST requests in corslite? It mentions only GET

freenerd commented 9 years ago

@planemad ah crap, I forgot. right. i think we'll stay with xhr then, since it seems most lightweight.