mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Use proper geocoding endpoint. Fixes #315
This commit is contained in:
@@ -6,8 +6,9 @@ iD.geocoder = function() {
|
||||
function keydown() {
|
||||
if (d3.event.keyCode !== 13) return;
|
||||
d3.event.preventDefault();
|
||||
d3.json('http://api.tiles.mapbox.com/v3/mapbox/geocode/' +
|
||||
d3.json('http://api.tiles.mapbox.com/v3/openstreetmap.map-hn253zqn/geocode/' +
|
||||
encodeURIComponent(this.value) + '.json', function(err, resp) {
|
||||
if (err) return hide();
|
||||
hide();
|
||||
map.center([resp.results[0][0].lon, resp.results[0][0].lat]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user