mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
Put map panes into their own div
This commit is contained in:
@@ -163,28 +163,24 @@ export function uiInit(context) {
|
||||
.append('div')
|
||||
.attr('class', 'map-control background-control')
|
||||
.call(background.renderToggleButton);
|
||||
content.call(background.renderPane);
|
||||
|
||||
var mapData = uiMapData(context);
|
||||
controls
|
||||
.append('div')
|
||||
.attr('class', 'map-control map-data-control')
|
||||
.call(mapData.renderToggleButton);
|
||||
content.call(mapData.renderPane);
|
||||
|
||||
var issues = uiIssues(context);
|
||||
controls
|
||||
.append('div')
|
||||
.attr('class', 'map-control map-issues-control')
|
||||
.call(issues.renderToggleButton);
|
||||
content.call(issues.renderPane);
|
||||
|
||||
var help = uiHelp(context);
|
||||
controls
|
||||
.append('div')
|
||||
.attr('class', 'map-control help-control')
|
||||
.call(help.renderToggleButton);
|
||||
content.call(help.renderPane);
|
||||
|
||||
content
|
||||
.append('div')
|
||||
@@ -287,6 +283,19 @@ export function uiInit(context) {
|
||||
}
|
||||
|
||||
|
||||
// Add panes
|
||||
// This should happen after map is initialized, as some require surface()
|
||||
var panes = content
|
||||
.append('div')
|
||||
.attr('class', 'map-panes');
|
||||
|
||||
panes
|
||||
.call(background.renderPane)
|
||||
.call(mapData.renderPane)
|
||||
.call(issues.renderPane)
|
||||
.call(help.renderPane);
|
||||
|
||||
|
||||
// Add absolutely-positioned elements that sit on top of the map
|
||||
// This should happen after the map is ready (center/zoom)
|
||||
content
|
||||
|
||||
Reference in New Issue
Block a user