mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Consolidate localization behavior and init to a coreLocalizer function and singleton Explicitly support `en-US` locale Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext Add `apiConnections` property of coreContext to simplify adding a source switcher Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions Make coreContext itself load the UI if a container has been specified at init time Fix code tests
26 lines
827 B
JavaScript
26 lines
827 B
JavaScript
|
|
import { t } from '../../core/localizer';
|
|
import { uiPane } from '../pane';
|
|
|
|
import { uiSectionDataLayers } from '../sections/data_layers';
|
|
import { uiSectionMapFeatures } from '../sections/map_features';
|
|
import { uiSectionMapStyleOptions } from '../sections/map_style_options';
|
|
import { uiSectionPhotoOverlays } from '../sections/photo_overlays';
|
|
|
|
export function uiPaneMapData(context) {
|
|
|
|
var mapDataPane = uiPane('map-data', context)
|
|
.key(t('map_data.key'))
|
|
.title(t('map_data.title'))
|
|
.description(t('map_data.description'))
|
|
.iconName('iD-icon-data')
|
|
.sections([
|
|
uiSectionDataLayers(context),
|
|
uiSectionPhotoOverlays(context),
|
|
uiSectionMapStyleOptions(context),
|
|
uiSectionMapFeatures(context)
|
|
]);
|
|
|
|
return mapDataPane;
|
|
}
|