mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-15 01:13:28 +01:00
Switch over to tabs
This commit is contained in:
parent
e27b88c6bc
commit
0e65ac8937
10 changed files with 80 additions and 75 deletions
|
@ -56,7 +56,7 @@ export default class App extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onOpenSettings() {
|
onOpenSettings() {
|
||||||
this.setState({ workContext: "settings", })
|
this.setState({ workContext: "settings" })
|
||||||
}
|
}
|
||||||
|
|
||||||
onOpenLayers() {
|
onOpenLayers() {
|
||||||
|
|
|
@ -14,10 +14,15 @@ import theme from './theme.js';
|
||||||
|
|
||||||
export class Toolbar extends React.Component {
|
export class Toolbar extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
|
// A new style has been uploaded
|
||||||
onStyleUpload: React.PropTypes.func.isRequired,
|
onStyleUpload: React.PropTypes.func.isRequired,
|
||||||
|
// Current style is requested for download
|
||||||
onStyleDownload: React.PropTypes.func.isRequired,
|
onStyleDownload: React.PropTypes.func.isRequired,
|
||||||
|
// Style is explicitely saved to local cache
|
||||||
onStyleSave: React.PropTypes.func,
|
onStyleSave: React.PropTypes.func,
|
||||||
|
// Open settings drawer
|
||||||
onOpenSettings: React.PropTypes.func,
|
onOpenSettings: React.PropTypes.func,
|
||||||
|
// Open layers drawer
|
||||||
onOpenLayers: React.PropTypes.func,
|
onOpenLayers: React.PropTypes.func,
|
||||||
// Whether a style is available for download or saving
|
// Whether a style is available for download or saving
|
||||||
// A style with no layers should not be available
|
// A style with no layers should not be available
|
||||||
|
|
Loading…
Reference in a new issue