Skip to content

Commit

Permalink
Update deprecated prop names in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jun 11, 2021
1 parent 9d0e568 commit 36cd19e
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/arcgis/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ loadArcGISModules(['esri/Map', 'esri/views/MapView']).then(({DeckLayer, modules}
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/basic/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const deck = new Deck({
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/carto/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function render() {
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
autoHighlight: true,
highlightColor: [0, 0, 128, 128],
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/globe/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const deck = new Deck({
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/google-maps/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ loadScript(GOOGLE_MAPS_API_URL).then(() => {
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/harp.gl/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const deck = new Deck({
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/pure-js/mapbox/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const deck = new Deck({
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/react/arcgis/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function App() {
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/react/basic/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Root() {
filled={true}
pointRadiusMinPixels={2}
pointRadiusScale={2000}
getRadius={f => 11 - f.properties.scalerank}
getPointRadius={f => 11 - f.properties.scalerank}
getFillColor={[200, 0, 80, 180]}
pickable={true}
autoHighlight={true}
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/react/mapbox/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Root() {
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/arcgis/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => (11 - f.properties.scalerank),
getPointRadius: f => (11 - f.properties.scalerank),
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => (11 - f.properties.scalerank),
getPointRadius: f => (11 - f.properties.scalerank),
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/carto/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h3>Layer selector</h3>
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
autoHighlight: true
}),
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/globe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => 11 - f.properties.scalerank,
getPointRadius: f => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/google-maps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => (11 - f.properties.scalerank),
getPointRadius: f => (11 - f.properties.scalerank),
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/harp.gl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => (11 - f.properties.scalerank),
getPointRadius: f => (11 - f.properties.scalerank),
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/get-started/scripting/mapbox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
filled: true,
pointRadiusMinPixels: 2,
pointRadiusScale: 2000,
getRadius: f => (11 - f.properties.scalerank),
getPointRadius: f => (11 - f.properties.scalerank),
getFillColor: [200, 0, 80, 180],
// Interactive props
pickable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/layer-browser/src/examples/core-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const GeoJsonLayerExample = {
},
props: {
id: 'geojsonLayer',
getRadius: f => MARKER_SIZE_MAP[f.properties['marker-size']],
getPointRadius: f => MARKER_SIZE_MAP[f.properties['marker-size']],
getFillColor: f => {
const color = parseColor(f.properties.fill || f.properties['marker-color']);
const opacity = (f.properties['fill-opacity'] || 1) * 255;
Expand Down

0 comments on commit 36cd19e

Please sign in to comment.