Skip to content

Commit

Permalink
Use Carto positron style (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored May 1, 2024
1 parent 85a86bd commit f2ec957
Show file tree
Hide file tree
Showing 5 changed files with 13 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
7 changes: 6 additions & 1 deletion examples/editable-layers/advanced/src/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,12 @@ 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://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://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://basemaps.cartocdn.com/gl/positron-gl-style/style.json'} />
</DeckGL>

<Toolbox
Expand Down
5 changes: 4 additions & 1 deletion examples/editable-layers/sf/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ 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://basemaps.cartocdn.com/gl/positron-gl-style/style.json'}
>
<DeckGL
height={height}
width={width}
Expand Down

0 comments on commit f2ec957

Please sign in to comment.