From cbe2a4c1807637635f8bbfdb470ba1dd252d799c Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Thu, 12 Jan 2017 10:28:03 +0100 Subject: [PATCH] Fix GeoJSON and default source issue in Sources modal --- src/components/modals/SourcesModal.jsx | 6 +++--- src/styles/_components.scss | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/modals/SourcesModal.jsx b/src/components/modals/SourcesModal.jsx index 73df920..ba4d841 100644 --- a/src/components/modals/SourcesModal.jsx +++ b/src/components/modals/SourcesModal.jsx @@ -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'), } } diff --git a/src/styles/_components.scss b/src/styles/_components.scss index efc193f..1250163 100644 --- a/src/styles/_components.scss +++ b/src/styles/_components.scss @@ -45,7 +45,7 @@ // BUTTON .maputnik-button { cursor: pointer; - background-color: $color-gray; + background-color: $color-midgray; color: $color-lowgray; font-size: $font-size-6; padding: $margin-2;