mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 17:13:27 +01:00
Fix GeoJSON and default source issue in Sources modal
This commit is contained in:
parent
2e0cc4511c
commit
cbe2a4c180
2 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ function editorMode(source) {
|
||||||
if(source.tiles) return 'tilexyz_vector'
|
if(source.tiles) return 'tilexyz_vector'
|
||||||
return 'tilejson_vector'
|
return 'tilejson_vector'
|
||||||
}
|
}
|
||||||
if(source.type === 'geojson') return ' geojson'
|
if(source.type === 'geojson') return 'geojson'
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,9 +93,9 @@ class AddSource extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
this.state = {
|
this.state = {
|
||||||
mode: 'tilejson',
|
mode: 'tilejson_vector',
|
||||||
sourceId: style.generateId(),
|
sourceId: style.generateId(),
|
||||||
source: this.defaultSource('tilejson'),
|
source: this.defaultSource('tilejson_vector'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
// BUTTON
|
// BUTTON
|
||||||
.maputnik-button {
|
.maputnik-button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: $color-gray;
|
background-color: $color-midgray;
|
||||||
color: $color-lowgray;
|
color: $color-lowgray;
|
||||||
font-size: $font-size-6;
|
font-size: $font-size-6;
|
||||||
padding: $margin-2;
|
padding: $margin-2;
|
||||||
|
|
Loading…
Reference in a new issue