Skip to content

Commit

Permalink
Use carto positron style
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed May 1, 2024
1 parent 2383546 commit 1651ac2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev-docs/RFCs/editable-layers/react-map-gl-draw.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class App extends React.Component {
{...viewport}
width="100%"
height="100%"
mapStyle="mapbox://styles/uberdata/cive48w2e001a2imn5mcu2vrs"
mapStyle="https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/style.json"
onViewportChange={this._updateViewport}
>
<MapGLDraw
Expand Down
2 changes: 1 addition & 1 deletion examples/editable-layers/advanced/src/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ export default class Example extends React.Component<
}

renderStaticMap(viewport: Record<string, any>) {
return <StaticMap {...viewport} mapStyle={'mapbox://styles/mapbox/dark-v10'} />;
return <StaticMap {...viewport} mapStyle={'https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/style.jsondark-v10'} />;
}

_featureMenuClick(action: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export function Example() {
layers={[layer]}
getCursor={layer.getCursor.bind(layer)}
>
<StaticMap mapStyle={'mapbox://styles/mapbox/light-v10'} />
<StaticMap mapStyle={'https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/style.json'} />
</DeckGL>
<Toolbar
{...{
Expand Down
2 changes: 1 addition & 1 deletion examples/editable-layers/editor/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function Example() {
}
}}
>
<StaticMap mapStyle={'mapbox://styles/mapbox/light-v10'} />
<StaticMap mapStyle={'https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/style.json'} />
</DeckGL>

<Toolbox
Expand Down
2 changes: 1 addition & 1 deletion examples/editable-layers/sf/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default class Example extends React.Component<
return (
<div style={mapContainerStyle}>
<link href="https://api.mapbox.com/mapbox-gl-js/v3.2.0/mapbox-gl.css" rel="stylesheet" />
<StaticMap {...viewState} mapStyle={'mapbox://styles/mapbox/light-v10'}>
<StaticMap {...viewState} mapStyle={'https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/style.json'}>
<DeckGL
height={height}
width={width}
Expand Down

0 comments on commit 1651ac2

Please sign in to comment.