diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e27134..6450a6e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -50,11 +50,6 @@ templates: path: /tmp/artifacts destination: /artifacts jobs: - build-linux-node-v8: - docker: - - image: node:8 - working_directory: ~/repo-linux-node-v8 - steps: *build-steps build-linux-node-v10: docker: - image: node:10 @@ -71,14 +66,6 @@ jobs: - image: node:13 working_directory: ~/repo-linux-node-v13 steps: *build-steps - build-osx-node-v8: - macos: - xcode: "9.0" - dependencies: - override: - - brew install node@8 - working_directory: ~/repo-osx-node-v8 - steps: *build-steps build-osx-node-v10: macos: xcode: "9.0" @@ -108,11 +95,9 @@ workflows: version: 2 build: jobs: - - build-linux-node-v8 - build-linux-node-v10 - build-linux-node-v12 - build-linux-node-v13 - - build-osx-node-v8 - build-osx-node-v10 - build-osx-node-v12 - build-osx-node-v13 diff --git a/appveyor.yml b/appveyor.yml index 4bfc59e..5c6a57d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,6 @@ -image: Visual Studio 2015 +image: Visual Studio 2019 environment: matrix: - - nodejs_version: "8" - nodejs_version: "10" - nodejs_version: "12" - nodejs_version: "13" @@ -18,7 +17,7 @@ install: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform } - md public - - npm --vs2015 install --global windows-build-tools + - npm install --global windows-build-tools - npm install build_script: - npm run build diff --git a/package-lock.json b/package-lock.json index 0fc459b..223a485 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9070,12 +9070,9 @@ } }, "react-collapse": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/react-collapse/-/react-collapse-4.0.3.tgz", - "integrity": "sha512-OO4NhtEqFtz+1ma31J1B7+ezdRnzHCZiTGSSd/Pxoks9hxrZYhzFEddeYt05A/1477xTtdrwo7xEa2FLJyWGCQ==", - "requires": { - "prop-types": "^15.5.8" - } + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-collapse/-/react-collapse-5.0.1.tgz", + "integrity": "sha512-cN2tkxBWizhPQ2JHfe0aUSJtmMthKA17NZkTElpiQ2snQAAi1hssXZ2fv88rAPNNvG5ss4t0PbOZT0TIl9Lk3Q==" }, "react-color": { "version": "2.17.3", diff --git a/package.json b/package.json index c08f087..a8f02d0 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "react-aria-modal": "^4.0.0", "react-autobind": "^1.0.6", "react-autocomplete": "^1.8.1", - "react-collapse": "^4.0.3", + "react-collapse": "^5.0.1", "react-color": "^2.17.3", "react-dom": "^16.10.2", "react-file-reader-input": "^2.0.0", diff --git a/src/components/layers/JSONEditor.jsx b/src/components/layers/JSONEditor.jsx index 4fbd009..e0a99ec 100644 --- a/src/components/layers/JSONEditor.jsx +++ b/src/components/layers/JSONEditor.jsx @@ -107,18 +107,6 @@ class JSONEditor extends React.Component { } render() { - const codeMirrorOptions = { - mode: {name: "javascript", json: true}, - tabSize: 2, - theme: 'maputnik', - viewportMargin: Infinity, - lineNumbers: true, - lint: true, - matchBrackets: true, - gutters: ["CodeMirror-lint-markers"], - scrollbarStyle: "null", - } - const style = {}; if (this.props.maxHeight) { style.maxHeight = this.props.maxHeight; diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 7047d6a..a0baebb 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -124,6 +124,7 @@ export default class MapboxGlMap extends React.Component { container: this.container, style: this.props.mapStyle, hash: true, + maxZoom: 24 } const map = new MapboxGl.Map(mapOpts); diff --git a/src/config/styles.json b/src/config/styles.json index a9e0ea1..ff0e407 100644 --- a/src/config/styles.json +++ b/src/config/styles.json @@ -8,31 +8,31 @@ { "id": "klokantech-basic", "title": "Klokantech Basic", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/klokantech-basic-gl-style@e142f83/style.json", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/klokantech-basic-gl-style@v1.9/style.json", "thumbnail": "https://maputnik.github.io/thumbnails/klokantech-basic.png" }, { "id": "dark-matter", "title": "Dark Matter", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/dark-matter-gl-style@1dcc1d3/style.json", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/dark-matter-gl-style@v1.8/style.json", "thumbnail": "https://maputnik.github.io/thumbnails/dark-matter.png" }, { "id": "positron", "title": "Positron", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/positron-gl-style@2877814/style.json", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/positron-gl-style@v1.8/style.json", "thumbnail": "https://maputnik.github.io/thumbnails/positron.png" }, { "id": "osm-bright", "title": "OSM Bright", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/osm-bright-gl-style@500e26e/style.json", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/osm-bright-gl-style@v1.9/style.json", "thumbnail": "https://maputnik.github.io/thumbnails/osm-bright.png" }, { "id": "toner-gl-style", "title": "Toner", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/toner-gl-style@bb49571/style.json", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/toner-gl-style@dcb6e64/style.json", "thumbnail": "https://maputnik.github.io/thumbnails/toner.png" }, { diff --git a/src/styles/_react-collapse.scss b/src/styles/_react-collapse.scss index 3ee0cae..ce8db33 100644 --- a/src/styles/_react-collapse.scss +++ b/src/styles/_react-collapse.scss @@ -7,3 +7,7 @@ flex: 1; } } + +.ReactCollapse--collapse { + transition: height 180ms; +}