Skip to content

Commit

Permalink
Remove spurious mapbox calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed May 3, 2020
1 parent 14246b2 commit badfc4a
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ An example of usage with [MapboxGL](https://docs.mapbox.com/mapbox-gl-js/api/) i
map.on("render", (e) => {
let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();

// Update the values of MercatorGL uniforms in the map (including projection matrix provided by Mapbox).
// The application must use the map to update program uniforms used by MercatorGL.
Expand Down
2 changes: 0 additions & 2 deletions examples/arc.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@

let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();

drawCall.uniform("metersPerPixel", 1 / pixelsPerMeter(center[1], zoom));

Expand Down
2 changes: 0 additions & 2 deletions examples/columns.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@

let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();

drawCall.uniform("pixelsPerMeter", pixelsPerMeter(center[1], zoom));

Expand Down
2 changes: 0 additions & 2 deletions examples/geojson.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@

let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();

app.clear();

Expand Down
3 changes: 0 additions & 3 deletions examples/scatterplot.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@

let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();


drawCall.uniform("pixelsPerMeter", pixelsPerMeter(center[1], zoom))
.uniform("radiusScale", 30)
Expand Down
2 changes: 0 additions & 2 deletions examples/triangle.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@
map.on("render", (e) => {
let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();

updateMercatorUniforms(uniforms, center, zoom, map.transform.projMatrix);

Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ <h1>MercatorGL</h1>
map.on("render", (e) => {
let center = map.getCenter().toArray();
let zoom = map.getZoom();
let pitch = map.getPitch();
let bearing = map.getBearing();

// Update the values of MercatorGL uniforms in the map (including projection matrix provided by Mapbox).
// The application must use the map to update program uniforms used by MercatorGL.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mercator-gl",
"version": "0.8.1",
"version": "0.8.2",
"description": "Tiny library for GLSL web mercator projections",
"main": "build/mercator-gl.min.js",
"repository": {
Expand Down

0 comments on commit badfc4a

Please sign in to comment.