Skip to content

Commit f2ec957

Browse files
authored
Use Carto positron style (#74)
1 parent 85a86bd commit f2ec957

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

dev-docs/RFCs/editable-layers/react-map-gl-draw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class App extends React.Component {
181181
{...viewport}
182182
width="100%"
183183
height="100%"
184-
mapStyle="mapbox://styles/uberdata/cive48w2e001a2imn5mcu2vrs"
184+
mapStyle="https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/style.json"
185185
onViewportChange={this._updateViewport}
186186
>
187187
<MapGLDraw

examples/editable-layers/advanced/src/example.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,12 @@ export default class Example extends React.Component<
826826
}
827827

828828
renderStaticMap(viewport: Record<string, any>) {
829-
return <StaticMap {...viewport} mapStyle={'mapbox://styles/mapbox/dark-v10'} />;
829+
return (
830+
<StaticMap
831+
{...viewport}
832+
mapStyle={'https://basemaps.cartocdn.com/gl/positron-gl-style/style.jsondark-v10'}
833+
/>
834+
);
830835
}
831836

832837
_featureMenuClick(action: string) {

examples/editable-layers/editable-h3-cluster-layer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export function Example() {
197197
layers={[layer]}
198198
getCursor={layer.getCursor.bind(layer)}
199199
>
200-
<StaticMap mapStyle={'mapbox://styles/mapbox/light-v10'} />
200+
<StaticMap mapStyle={'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json'} />
201201
</DeckGL>
202202
<Toolbar
203203
{...{

examples/editable-layers/editor/example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function Example() {
8383
}
8484
}}
8585
>
86-
<StaticMap mapStyle={'mapbox://styles/mapbox/light-v10'} />
86+
<StaticMap mapStyle={'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json'} />
8787
</DeckGL>
8888

8989
<Toolbox

examples/editable-layers/sf/example.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,10 @@ export default class Example extends React.Component<
307307
return (
308308
<div style={mapContainerStyle}>
309309
<link href="https://api.mapbox.com/mapbox-gl-js/v3.2.0/mapbox-gl.css" rel="stylesheet" />
310-
<StaticMap {...viewState} mapStyle={'mapbox://styles/mapbox/light-v10'}>
310+
<StaticMap
311+
{...viewState}
312+
mapStyle={'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json'}
313+
>
311314
<DeckGL
312315
height={height}
313316
width={width}

0 commit comments

Comments
 (0)