Skip to content

Commit

Permalink
Updated deps (#26). Took some work to get the jspm build to be correct
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsa committed Jan 10, 2023
1 parent 721dd62 commit b43f8c5
Show file tree
Hide file tree
Showing 5 changed files with 4,639 additions and 1,357 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"license": "MIT",
"devDependencies": {
"doctoc": "^2.2.1",
"husky": "^8.0.2",
"prettier": "^2.8.1",
"husky": "^8.0.3",
"prettier": "^2.8.2",
"pretty-quick": "^3.1.3"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import maplibregl from 'maplibre-gl'
import { vs_ex as vertexSource, fs_ex as fragmentSource } from './_shaders'
import * as twgl from 'twgl.js'

export default {
id: 'current-vectors',
type: 'custom',

// https://maplibre.org/maplibre-gl-js-docs/api/properties/#styleimageinterface#onadd
onAdd(map, gl) {
console.log(twgl)
// create a vertex shader
var vertexShader = gl.createShader(gl.VERTEX_SHADER)
gl.shaderSource(vertexShader, vertexSource)
Expand Down
Loading

0 comments on commit b43f8c5

Please sign in to comment.