Skip to content

Commit

Permalink
Merge pull request #1165 from CartoDB/1035-cartovl-account-only
Browse files Browse the repository at this point in the history
Use only cartovl account for examples
  • Loading branch information
VictorVelarde authored Nov 28, 2018
2 parents 20a0468 + b57788a commit 0ebac2f
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 57 deletions.
42 changes: 21 additions & 21 deletions debug/multi-anim.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
map.addControl(nav, 'top-left');

carto.setDefaultAuth({
username: 'rochoa',
username: 'cartovl',
apiKey: 'default_public'
});
const s = carto.expressions;
Expand All @@ -59,9 +59,9 @@
const layer = new carto.Layer('gpstrack', source, viz);
layer.addTo(map, 'watername_ocean');
const fishnetSource = new carto.source.SQL(`
WITH fishnet AS (
SELECT ST_SetSRID(cells.geom, 4326) as the_geom
FROM ST_CreateFishnet(4, 6, 0.001, 0.001, -3.5959, 40.6114) AS cells
WITH fishnet AS (
SELECT ST_SetSRID(cells.geom, 4326) as the_geom
FROM ST_CreateFishnet(4, 6, 0.001, 0.001, -3.5959, 40.6114) AS cells
)
select row_number() over() cartodb_id, the_geom, ST_Transform(the_geom, 3857) the_geom_webmercator
from fishnet
Expand All @@ -74,23 +74,23 @@
const fishnetLayer = new carto.Layer('fishnet', fishnetSource, fishnet);
fishnetLayer.addTo(map, 'watername_ocean');
const accelerationsSource = new carto.source.SQL(`
WITH geoms AS (
SELECT
ST_Translate(
ST_SetSRID(ST_MakePoint(
0.002 * accel_lateral,
0.002 * accel_lineal
), 4326), -3.593, 40.614
) as the_geom,
cartodb_id,
date,
lap,
accel_lateral,
accel_lineal
FROM rochoa.laptimer_0009_0033_20171119_164902
)
SELECT ST_Transform(the_geom, 3857) as the_geom_webmercator, *
FROM geoms
WITH geoms AS (
SELECT
ST_Translate(
ST_SetSRID(ST_MakePoint(
0.002 * accel_lateral,
0.002 * accel_lineal
), 4326), -3.593, 40.614
) as the_geom,
cartodb_id,
date,
lap,
accel_lateral,
accel_lineal
FROM laptimer_0009_0033_20171119_164902
)
SELECT ST_Transform(the_geom, 3857) as the_geom_webmercator, *
FROM geoms
`);
const accelerationsBg = new carto.Viz(`
width: 4
Expand Down
12 changes: 5 additions & 7 deletions examples/advanced/landing-page/detroit-development.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<title>US Population by County | CARTO</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -9,6 +10,7 @@
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../../style.css">
</head>

<body>
<div id="map"></div>
<div id="loader">
Expand All @@ -23,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-83.10625163016755, 42.34316296632727],
zoom: 12,
scrollZoom: false,


zoom: 12
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand All @@ -58,4 +55,5 @@
}
</script>
</body>

</html>
9 changes: 2 additions & 7 deletions examples/advanced/landing-page/hurricane-harvey.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-96, 30],
zoom: 7,
scrollZoom: false,


zoom: 7
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand Down
11 changes: 3 additions & 8 deletions examples/advanced/landing-page/rivers.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,15 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-109.09006557529761, 38.851788545949745],
zoom: 8,
scrollZoom: false,


zoom: 8
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
carto.setDefaultAuth({
username: 'mamataakella',
username: 'cartovl',
apiKey: 'default_public'
});

Expand Down
9 changes: 2 additions & 7 deletions examples/advanced/landing-page/spend-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [2.1700314874017295, 41.385423962673826],
zoom: 17,
scrollZoom: false,


zoom: 17
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand Down
9 changes: 2 additions & 7 deletions examples/advanced/landing-page/us-population-by-country.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-99.6404893, 38.5480718],
zoom: 4,
scrollZoom: false,


zoom: 4
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand Down

0 comments on commit 0ebac2f

Please sign in to comment.