Skip to content

Commit b083938

Browse files
Update docs from maps rnmapbox/maps@63d74fc
1 parent e2a3a93 commit b083938

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

docs/components/RasterSource.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ FIX ME NO DESCRIPTION
115115

116116

117117

118+
### sourceBounds
119+
120+
```tsx
121+
Array
122+
```
123+
An array containing the longitude and latitude of the southwest and northeast corners of
124+
the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`.
125+
When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL.
126+
127+
128+
118129

119130

120131

docs/examples/FillRasterLayer/RasterSource.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export default function RasterSourceExample() {
3333
<RasterSource
3434
id="stamen-watercolor"
3535
tileSize={256}
36+
sourceBounds={[
37+
-74.01010105570786, 40.7096750598196, -74.00028742807824,
38+
40.71670107507063,
39+
]}
3640
tileUrlTemplates={['https://tile.openstreetmap.org/{z}/{x}/{y}.png']}
3741
/>
3842
<RasterLayer

static/example-app/_expo/static/js/web/AppEntry-d3503ed16abaffa1af1db2036ef9375a.js renamed to static/example-app/_expo/static/js/web/AppEntry-031c79dce78ed48370eb25af07d8a4be.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/example-app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
</noscript>
3333
<!-- The root element for your Expo app. -->
3434
<div id="root"></div>
35-
<script src="/example-app/_expo/static/js/web/AppEntry-d3503ed16abaffa1af1db2036ef9375a.js" defer></script>
35+
<script src="/example-app/_expo/static/js/web/AppEntry-031c79dce78ed48370eb25af07d8a4be.js" defer></script>
3636
</body>
3737
</html>

0 commit comments

Comments
 (0)