Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 'YOUR_API_KEY' with 'default_public' in examples #2136

Merged
merged 2 commits into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/public/dataviews/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1>Category widget</h1>

<script>
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/dataviews/error-handling.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1>Status and error handling</h1>

<script>
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/dataviews/formula.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1>Formula widget</h1>

<script>
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/dataviews/histogram.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>Histogram widget</h1>

<script>
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/dataviews/time-series.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1>Time Series widget</h1>

<script>
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/filters/bounding-box-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>Bounding Box filter</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/filters/bounding-box-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>Bounding Box filter</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/filters/custom-bounding-box-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2>POPULATION</h2>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-feature-columns-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Change the feature columns</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-feature-columns-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h1>Change the feature columns</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-order-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1>Move the layers</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-order-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1>Move the layers</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-source-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h1>Change the source</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-source-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>Change the source</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-style-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Change the style</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/change-style-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>Change the style</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/feature-click-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>Detect feature click</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/feature-click-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>Detect feature click</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/feature-over-out-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>Detect feature over/out</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/feature-over-out-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1>Detect feature over/out</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/layer-with-aggregation-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1>Server tile aggregation</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/layer-with-aggregation-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>Server tile aggregation</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/layer-with-zoom-options-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/multilayer-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>Add more layers</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/multilayer-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>Add more layers</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/single-layer-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>Add a layer</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/layers/single-layer-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>Add a layer</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/edit-sql-cartocss-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h2 class="h2">CartoCSS</h2>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/edit-sql-cartocss-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h2 class="h2">CartoCSS</h2>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/error-handling-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h2 class="h2">STYLE</h2>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/error-handling-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h2 class="h2">STYLE</h2>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/guide-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h2 class="h2">Average population</h2>

// 2 Defining a carto.Client
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/guide-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2 class="h2">Average population</h2>

// 2 Defining a carto.Client
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/legends-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2 class="h2">Inhabitants</h2>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/legends-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2 class="h2">Inhabitants</h2>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/populated-places-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h1>Most/less populated places</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/populated-places-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>Most/less populated places</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/popups-gmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Pop-Ups</h1>
}]);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down
2 changes: 1 addition & 1 deletion examples/public/misc/popups-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h1>Pop-Ups</h1>
}).addTo(map);

const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
apiKey: 'default_public',
username: 'cartojs-test'
});

Expand Down