Restore map.surface

Fixes #166
This commit is contained in:
John Firebaugh
2012-12-03 10:49:54 -05:00
parent 30c3aff982
commit 26ef972199
2 changed files with 8 additions and 1 deletions

View File

@@ -81,6 +81,8 @@ iD.Map = function() {
map.size(this.size());
hideInspector();
map.surface = surface;
}
map.history = iD.History();
@@ -532,7 +534,6 @@ iD.Map = function() {
return map;
};
map.surface = surface;
map.background = background;
map.projection = projection;
map.redraw = redraw;

View File

@@ -60,4 +60,10 @@ describe('Map', function() {
expect(map.extent()[1][0]).toBeCloseTo(36);
});
});
describe("surface", function() {
it("is an SVG element", function() {
expect(map.surface.node().tagName).toEqual("svg");
});
});
});