mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-13 06:36:28 +00:00
Update `text` functions to `html` to support inserting the `span` elements Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
26 lines
844 B
JavaScript
26 lines
844 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', { html: false }))
|
|
.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;
|
|
}
|