Fix GeoJSON and default source issue in Sources modal

This commit is contained in:
Lukas Martinelli committed 2017-01-12 10:28:03 +01:00
1 parent 2e0cc4511c
commit cbe2a4c180
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -48,7 +48,7 @@ function editorMode(source) {
if(source.tiles) return 'tilexyz_vector'
return 'tilejson_vector'
}
if(source.type === 'geojson') return ' geojson'
if(source.type === 'geojson') return 'geojson'
return null
}
@@ -93,9 +93,9 @@ class AddSource extends React.Component {
constructor(props) {
super(props)
this.state = {
mode: 'tilejson',
mode: 'tilejson_vector',
sourceId: style.generateId(),
source: this.defaultSource('tilejson'),
source: this.defaultSource('tilejson_vector'),
}
}