Convert map surface and supersurface from ids to classes

This commit is contained in:
Quincy Morgan
2020-03-21 13:41:06 -07:00
parent 4872b06a28
commit 5fd25601fe
5 changed files with 17 additions and 18 deletions
+2 -3
View File
@@ -158,7 +158,7 @@ export function rendererMap(context) {
.on('dblclick.zoom', null); // override d3-zoom dblclick handling
supersurface = selection.append('div')
.attr('id', 'supersurface')
.attr('class', 'supersurface')
.call(utilSetTransform, 0, 0);
// Need a wrapper div because Opera can't cope with an absolutely positioned
@@ -169,8 +169,7 @@ export function rendererMap(context) {
map.surface = surface = wrapper
.call(drawLayers)
.selectAll('.surface')
.attr('id', 'surface');
.selectAll('.surface');
surface
.call(drawLabels.observe)