mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 04:44:20 +00:00
Fixes for codemirror in sources modal
- Allows for max height - Override GeoJSON data when changing type
This commit is contained in:
1 parent
9ac908948d
commit
ee525631fa
5 files changed
+25
-8
No files matched your search
@@ -115,11 +115,11 @@ class AddSource extends React.Component {
|
||||
switch(mode) {
|
||||
case 'geojson_url': return {
|
||||
type: 'geojson',
|
||||
data: source.data || 'http://localhost:3000/geojson.json'
|
||||
data: 'http://localhost:3000/geojson.json'
|
||||
}
|
||||
case 'geojson_json': return {
|
||||
type: 'geojson',
|
||||
data: source.data || {}
|
||||
data: {}
|
||||
}
|
||||
case 'tilejson_vector': return {
|
||||
type: 'vector',
|
||||
|
||||
Reference in new issue
Block a user