Fix address component on relations (fixes #860)

This commit is contained in:
John Firebaugh
2013-02-26 16:52:51 -08:00
parent fa9c8a8484
commit f7b316304a
+2 -2
View File
@@ -6,9 +6,9 @@ iD.ui.preset.address = function() {
function getStreets() {
var l = entity.loc || context.entity(entity.nodes[0]).loc,
var extent = entity.extent(context.graph()),
l = extent.center(),
dist = iD.geo.metresToCoordinates(l, [200, 200]),
extent = entity.extent(context.graph()),
box = iD.geo.Extent(
[extent[0][0] - dist[0], extent[0][1] - dist[1]],
[extent[1][0] + dist[0], extent[1][1] + dist[1]]);