Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Dec 12, 2020
1 parent b8c2995 commit ff85407
Show file tree
Hide file tree
Showing 13 changed files with 264 additions and 323 deletions.
20 changes: 2 additions & 18 deletions modules/basemap-layers/src/globe-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,10 @@ const BASEMAP_RASTER_PARAMETERS = {
blendEquation: [GL.FUNC_ADD, GL.FUNC_ADD]
};

const BACKGROUND_DATA = [
[
[-180, 90],
[0, 90],
[180, 90],
[180, -90],
[0, -90],
[-180, -90]
]
];
const BACKGROUND_DATA = [[[-180, 90], [0, 90], [180, 90], [180, -90], [0, -90], [-180, -90]]];

const BACKGROUND_NORTH_POLE_DATA = [
[
[-180, 90],
[0, 90],
[180, 90],
[180, 85],
[0, 85],
[-180, 85]
]
[[-180, 90], [0, 90], [180, 90], [180, 85], [0, 85], [-180, 85]]
];

// TODO: This could be expanded to search for matching layer names from any Mapbox style
Expand Down
2 changes: 1 addition & 1 deletion modules/basemap-styles/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
testEnvironment: 'node',
testEnvironment: 'node'
};
20 changes: 10 additions & 10 deletions modules/basemap-styles/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import {terser} from 'rollup-plugin-terser';

const config = (file, plugins = []) => ({
input: 'src/index.js',
output: {
name: 'deckgl-mapbox-style',
format: 'umd',
indent: false,
file
},
plugins
input: 'src/index.js',
output: {
name: 'deckgl-mapbox-style',
format: 'umd',
indent: false,
file
},
plugins
});

export default [
config('dist/deckgl-mapbox-style.js'),
config('dist/deckgl-mapbox-style.min.js', [terser()])
config('dist/deckgl-mapbox-style.js'),
config('dist/deckgl-mapbox-style.min.js', [terser()])
];
4 changes: 2 additions & 2 deletions modules/basemap-styles/src/deck-layers/bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
export function generateRasterLayer(sources, layer) {
const source = sources[layer.source];
const { tileSize } = source;
const {tileSize} = source;

const minzoom = layer.minzoom || source.minzoom || 0;
const maxzoom = layer.maxzoom || source.maxzoom || 0;
Expand All @@ -19,7 +19,7 @@ export function generateRasterLayer(sources, layer) {
tileSize,
renderSubLayers: props => {
const {
bbox: { west, south, east, north }
bbox: {west, south, east, north}
} = props.tile;

return new BitmapLayer(props, {
Expand Down
5 changes: 1 addition & 4 deletions modules/basemap-styles/src/deck-layers/heatmap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

export function generateHeatmapLayer(sources, layer) {

}
export function generateHeatmapLayer(sources, layer) {}
4 changes: 1 addition & 3 deletions modules/basemap-styles/src/deck-layers/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
* Mapbox layers that generate deck.gl IconLayers
*/

export function generateSymbolLayer(sources, layer) {

}
export function generateSymbolLayer(sources, layer) {}
11 changes: 3 additions & 8 deletions modules/basemap-styles/src/deck-layers/mvt.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ export function generateFillLayer(sources, layer, properties, dataTransform) {
minzoom,
maxzoom,
dataTransform
})

});
}

export function generateLineLayer(sources, layer) {

}
export function generateLineLayer(sources, layer) {}

export function generateCircleLayer(sources, layer) {

}
export function generateCircleLayer(sources, layer) {}
Loading

0 comments on commit ff85407

Please sign in to comment.