Skip to content

Commit

Permalink
Update docs from maps rnmapbox/maps@63d74fc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 30, 2024
1 parent e2a3a93 commit b083938
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/components/RasterSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ FIX ME NO DESCRIPTION



### sourceBounds

```tsx
Array
```
An array containing the longitude and latitude of the southwest and northeast corners of
the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`.
When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL.






Expand Down
4 changes: 4 additions & 0 deletions docs/examples/FillRasterLayer/RasterSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export default function RasterSourceExample() {
<RasterSource
id="stamen-watercolor"
tileSize={256}
sourceBounds={[
-74.01010105570786, 40.7096750598196, -74.00028742807824,
40.71670107507063,
]}
tileUrlTemplates={['https://tile.openstreetmap.org/{z}/{x}/{y}.png']}
/>
<RasterLayer
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/example-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
</noscript>
<!-- The root element for your Expo app. -->
<div id="root"></div>
<script src="/example-app/_expo/static/js/web/AppEntry-d3503ed16abaffa1af1db2036ef9375a.js" defer></script>
<script src="/example-app/_expo/static/js/web/AppEntry-031c79dce78ed48370eb25af07d8a4be.js" defer></script>
</body>
</html>

0 comments on commit b083938

Please sign in to comment.