Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Enhancement] Update mapbox-gl css version (#634)
Shan He0591acc1585b
diff --git a/examples/custom-reducer/index.html b/examples/custom-reducer/index.htmlindex f3daab553..166128d65 100644--- a/examples/custom-reducer/index.html+++ b/examples/custom-reducer/index.html@@ -4,7 +4,7 @@<meta charset='UTF-8' /><title>kepler.gl demo</title><link href="//d1a3f4spazzrp4.cloudfront.net/uber-fonts/4.0.0/superfine.css" rel="stylesheet">- <link href="//api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="//api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><style type="text/css">body {margin: 0; padding: 0; overflow: hidden;}</style>diff --git a/examples/custom-theme/index.html b/examples/custom-theme/index.htmlindex e4e6227d7..40b4224bf 100644--- a/examples/custom-theme/index.html+++ b/examples/custom-theme/index.html@@ -4,7 +4,7 @@<meta charset='UTF-8' /><title>kepler.gl demo</title><link rel="stylesheet" href="//d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">- <link href="//api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="//api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><style type="text/css">body {margin: 0; padding: 0; overflow: hidden;}</style>diff --git a/examples/demo-app/index.html b/examples/demo-app/index.htmlindex e4e6227d7..40b4224bf 100644--- a/examples/demo-app/index.html+++ b/examples/demo-app/index.html@@ -4,7 +4,7 @@<meta charset='UTF-8' /><title>kepler.gl demo</title><link rel="stylesheet" href="//d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">- <link href="//api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="//api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><style type="text/css">body {margin: 0; padding: 0; overflow: hidden;}</style>diff --git a/examples/open-modal/index.html b/examples/open-modal/index.htmlindex 929edd5a0..bff1cb9df 100644--- a/examples/open-modal/index.html+++ b/examples/open-modal/index.html@@ -4,7 +4,7 @@<meta charset='UTF-8' /><title>kepler.gl demo</title><link rel="stylesheet" href="//d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">- <link href="//api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="//api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><style type="text/css">body {margin: 0; padding: 0; overflow: hidden;}</style>diff --git a/examples/replace-component/index.html b/examples/replace-component/index.htmlindex 929edd5a0..bff1cb9df 100644--- a/examples/replace-component/index.html+++ b/examples/replace-component/index.html@@ -4,7 +4,7 @@<meta charset='UTF-8' /><title>kepler.gl demo</title><link rel="stylesheet" href="//d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">- <link href="//api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="//api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><style type="text/css">body {margin: 0; padding: 0; overflow: hidden;}</style>diff --git a/examples/umd-client/index.html b/examples/umd-client/index.htmlindex 838529d5b..1118edb63 100644--- a/examples/umd-client/index.html+++ b/examples/umd-client/index.html@@ -8,7 +8,7 @@<link rel="stylesheet" href="https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css"><!--MapBox css-->- <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><!-- Load React/Redux --><script src="https://unpkg.com/[email protected]/umd/react.production.min.js" crossorigin></script>diff --git a/src/templates/export-map.js b/src/templates/export-map.jsindex d2e8f0511..09ec0dd50 100644--- a/src/templates/export-map.js+++ b/src/templates/export-map.js@@ -35,13 +35,13 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {<head><meta charset="UTF-8"/><title>Kepler.gl embedded map</title>-+<!--Uber Font--><link rel="stylesheet" href="https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">-+<!--MapBox css-->- <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">-+ <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet">+<!-- Load React/Redux --><script src="https://unpkg.com/[email protected]/umd/react.production.min.js" crossorigin></script><script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js" crossorigin></script>@@ -49,14 +49,14 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {<script src="https://unpkg.com/[email protected]/dist/react-redux.min.js" crossorigin></script><script src="https://unpkg.com/[email protected]/dist/styled-components.min.js" crossorigin></script><script src="https://unpkg.com/[email protected]/dist/umd/react-virtualized.js" crossorigin></script>-+<!-- Load Kepler.gl --><script src="https://unpkg.com/kepler.gl@${version}/umd/keplergl.min.js" crossorigin></script>-+<style type="text/css">body {margin: 0; padding: 0; overflow: hidden;}</style>-+<!--MapBox token--><script>/**@@ -71,14 +71,14 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {<div id="app"><!-- Kepler.gl map will be placed here--></div>-+<!-- Load our React component. --><script>/* Validate Mapbox Token */if ((MAPBOX_TOKEN || '') === '' || MAPBOX_TOKEN === 'PROVIDE_MAPBOX_TOKEN') {alert(WARNING_MESSAGE);}-+/** STORE **/const reducers = (function createReducers(redux, keplerGl) {return redux.combineReducers({@@ -86,20 +86,20 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {keplerGl: keplerGl.keplerGlReducer});}(Redux, KeplerGl));-+const middleWares = (function createMiddlewares(keplerGl) {return keplerGl.enhanceReduxMiddleware([// Add other middlewares here]);}(KeplerGl));-+const enhancers = (function craeteEnhancers(redux, middles) {return redux.applyMiddleware(...middles);}(Redux, middleWares));-+const store = (function createStore(redux, enhancers) {const initialState = {};-+return redux.createStore(reducers,initialState,@@ -107,7 +107,7 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {);}(Redux, enhancers));/** END STORE **/-+/** COMPONENTS **/const KeplerElement = (function (react, reactVirtualized, keplerGl, mapboxToken) {return function() {@@ -125,7 +125,7 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {)}}(React, ReactVirtualized, KeplerGl, MAPBOX_TOKEN));-+const app = (function createReactReduxProvider(react, reactRedux, KeplerElement) {return react.createElement(reactRedux.Provider,@@ -134,7 +134,7 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {)}(React, ReactRedux, KeplerElement));/** END COMPONENTS **/-+/** Render **/(function render(react, reactDOM, app) {reactDOM.render(app, document.getElementById('app'));@@ -150,12 +150,12 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {(function customize(keplerGl, store) {const datasets = ${JSON.stringify(options.datasets)};const config = ${JSON.stringify(options.config)};-+const loadedData = keplerGl.KeplerGlSchema.load(datasets,config);-+store.dispatch(keplerGl.addDataToMap(loadedData));}(KeplerGl, store))</script>diff --git a/website/src/static/index.html b/website/src/static/index.htmlindex 78e7249cb..b597bf6e7 100644--- a/website/src/static/index.html+++ b/website/src/static/index.html@@ -8,7 +8,7 @@<link rel="shortcut icon" href="/favicon.png"><link rel="stylesheet" href="https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">- <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">+ <link href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet"><!-— facebook open graph tags --><meta property="og:url" content="https://uber.github.io/kepler.gl/" />