Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/examples/Annotations/CustomCallout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/Annotations/Heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/Annotations/MarkerView.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const styles = StyleSheet.create({
});

const AnnotationContent = ({ title }: { title: string }) => (
<View style={styles.touchableContainer}>
<View style={styles.touchableContainer} collapsable={false}>
<Text>{title}</Text>
<TouchableOpacity style={styles.touchable}>
<Text style={styles.touchableText}>Btn</Text>
Expand Down
Binary file modified docs/examples/Annotations/MarkerView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/examples/Annotations/PointAnnotationAnchors.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const PointAnnotationAnchors = (props) => {
coordinate={p.coordinate}
anchor={p.anchor}
>
<View style={styles.small}>
<View style={styles.small} collapsable={false}>
<Text style={[styles.text, { color: 'white' }]}>
x={p.anchor.x.toPrecision(2)}, y={p.anchor.y.toPrecision(2)}
</Text>
Expand All @@ -115,7 +115,7 @@ const PointAnnotationAnchors = (props) => {
coordinate={p.coordinate}
anchor={p.anchor}
>
<View style={[styles.large, p.containerStyle]}>
<View style={[styles.large, p.containerStyle]} collapsable={false}>
<View
style={{
height: ANNOTATION_SIZE * 2,
Expand Down
Binary file modified docs/examples/Annotations/PointAnnotationAnchors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/Annotations/ShowPointAnnotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/CacheOffline/CacheManagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ export default CacheManagement;

```

}
![CacheManagement.png](./CacheManagement.png)}

Binary file added docs/examples/CacheOffline/CacheManagement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/CacheOffline/CreateOfflineRegion.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,5 @@ export default CreateOfflineRegion;

```

}
![CreateOfflineRegion.png](./CreateOfflineRegion.png)}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/CacheOffline/OfflineExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ export default OfflineExample;

```

}
![OfflineExample.png](./OfflineExample.png)}

Binary file added docs/examples/CacheOffline/OfflineExample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/CacheOffline/OfflineTilesets.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,5 @@ export default function OfflineTilesets() {

```

}
![OfflineTilesets.png](./OfflineTilesets.png)}

Binary file added docs/examples/CacheOffline/OfflineTilesets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/Camera/Fit.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,5 @@ export default Fit;

```

}
![Fit.png](./Fit.png)}

Binary file added docs/examples/Camera/Fit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/Camera/FlyTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ export default FlyTo;

```

}
![FlyTo.png](./FlyTo.png)}

Binary file added docs/examples/Camera/FlyTo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions docs/examples/Camera/GetCenter.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ class GetCenter extends React.Component {
style={styles.mapView}
>
<Mapbox.Camera
zoomLevel={9}
centerCoordinate={[-73.970895, 40.723279]}
defaultSettings={{
centerCoordinate: [-73.970895, 40.723279],
zoomLevel: 9,
}}
/>
</Mapbox.MapView>

Expand All @@ -77,5 +79,5 @@ export default GetCenter;

```

}
![GetCenter.png](./GetCenter.png)}

Binary file added docs/examples/Camera/GetCenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/Camera/GetZoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ export default GetZoom;

```

}
![GetZoom.png](./GetZoom.png)}

Binary file added docs/examples/Camera/GetZoom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/ChoroplethLayerByZoomLevel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/CustomVectorSource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/GeoJSONSource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/FillRasterLayer/ImageOverlay.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ export default ImageOverlay;

```

![ImageOverlay.png](./ImageOverlay.png)}
}

10 changes: 6 additions & 4 deletions docs/examples/FillRasterLayer/IndoorBuilding.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ class IndoorBuilding extends React.Component {
style={sheet.matchParent}
>
<Mapbox.Camera
zoomLevel={16}
pitch={40}
heading={20}
centerCoordinate={[-87.61694, 41.86625]}
defaultSettings={{
centerCoordinate: [-87.61694, 41.86625],
zoomLevel: 16,
pitch: 40,
heading: 20,
}}
/>

<Mapbox.Light style={{ position: [5, 90, this.state.sliderValue] }} />
Expand Down
Binary file modified docs/examples/FillRasterLayer/IndoorBuilding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/QueryAtPoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/QuerySourceFeatures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/QueryWithRect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/FillRasterLayer/RasterSource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions docs/examples/FillRasterLayer/WatercolorRasterTiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { View, StyleSheet } from 'react-native';
import Mapbox from '@rnmapbox/maps';
import { Slider } from '@rneui/base';

import sheet from '../../styles/sheet';
import colors from '../../styles/colors';
import { SF_OFFICE_COORDINATE } from '../../utils';

Expand Down Expand Up @@ -46,14 +45,14 @@ class WatercolorRasterTiles extends React.Component {
const rasterSourceProps = {
id: 'stamenWatercolorSource',
tileUrlTemplates: [
'https://tiles-eu.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg',
'https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key=36ff39ee-a31d-4153-8aee-71f361373a5c',
],
tileSize: 256,
};

return (
<>
<Mapbox.MapView style={sheet.matchParent}>
<Mapbox.MapView style={{ flex: 1 }}>
<Mapbox.Camera
defaultSettings={{
zoomLevel: 16,
Expand Down
Binary file modified docs/examples/FillRasterLayer/WatercolorRasterTiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/LineLayer/DrawPolyline.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,5 @@ export default DrawPolyline;

```

}
![DrawPolyline.png](./DrawPolyline.png)}

Binary file added docs/examples/LineLayer/DrawPolyline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/LineLayer/GradientLine.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ export default GradientLine;

```

}
![GradientLine.png](./GradientLine.png)}

Binary file added docs/examples/LineLayer/GradientLine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/examples/LineLayer/ThirdPartyVectorSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ export default ThirdPartyVectorSource;

```

}
![ThirdPartyVectorSource.png](./ThirdPartyVectorSource.png)}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/examples/Map/ChangeLayerColor.png
Binary file modified docs/examples/Map/DynamicUrl.png
Binary file modified docs/examples/Map/LocalizeLabels.png
Binary file modified docs/examples/Map/MapAndRNNavigation.png
2 changes: 1 addition & 1 deletion docs/examples/Map/MapFps.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ export default MapFps;

```

}
![MapFps.png](./MapFps.png)}

Binary file added docs/examples/Map/MapFps.png
2 changes: 1 addition & 1 deletion docs/examples/Map/MapUnMount.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export default MapUnMount;

```

}
![MapUnMount.png](./MapUnMount.png)}

Binary file added docs/examples/Map/MapUnMount.png
Binary file modified docs/examples/Map/Ornaments.png
Binary file modified docs/examples/Map/PointInMapView.png
Binary file modified docs/examples/Map/ShowAndHideLayer.png
Binary file modified docs/examples/Map/ShowClick.png
Binary file modified docs/examples/Map/ShowMap.png
Binary file modified docs/examples/Map/ShowMapLocalStyle.png
Binary file modified docs/examples/Map/ShowRegionDidChange.png
Binary file modified docs/examples/Map/SourceLayerVisibility.png
Binary file modified docs/examples/Map/StyleJson.png
Binary file modified docs/examples/Map/TwoByTwo.png
Binary file modified docs/examples/SymbolCircleLayer/CustomIcon.png
Binary file modified docs/examples/SymbolCircleLayer/CustomIconNativeAsset.png
Binary file modified docs/examples/SymbolCircleLayer/DataDrivenCircleColors.png
Binary file modified docs/examples/SymbolCircleLayer/Earthquakes.png
Binary file modified docs/examples/SymbolCircleLayer/ScalableImages.png
2 changes: 2 additions & 0 deletions docs/examples/SymbolCircleLayer/ShapeSourceIcon.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class ShapeSourceIcon extends React.Component {
};

render() {
console.log('render#ShapeSourceIcon');
const { images } = this.state;

return (
Expand All @@ -137,6 +138,7 @@ class ShapeSourceIcon extends React.Component {
nativeAssetImages={['pin']}
images={images}
onImageMissing={(imageKey) => {
console.log('=> on image missing', imageKey);
if (imageKey !== 'pin-rn') {
this.setState({
images: { ...this.state.images, [imageKey]: pinIcon },
Expand Down
Binary file modified docs/examples/SymbolCircleLayer/ShapeSourceIcon.png
Binary file modified docs/examples/UserLocation/CustomNativeUserLocation.png
Binary file modified docs/examples/UserLocation/SetDisplacement.png
2 changes: 1 addition & 1 deletion docs/examples/UserLocation/SetTintColor.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ export default SetTintColor;

```

![SetTintColor.png](./SetTintColor.png)}
}

Binary file modified docs/examples/UserLocation/UserLocationPadding.png
Binary file modified docs/examples/UserLocation/UserLocationRenderMode.png
Binary file modified docs/examples/UserLocation/UserLocationUpdates.png
Binary file modified docs/examples/V10/CameraAnimation.png
2 changes: 1 addition & 1 deletion docs/examples/V10/FeatureState.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ FeatureState.metadata = metadata;

```

}
![FeatureState.png](./FeatureState.png)}

Binary file added docs/examples/V10/FeatureState.png
Binary file modified docs/examples/V10/GlobeProjection.png
Binary file modified docs/examples/V10/MapHandlers.png
Binary file modified docs/examples/V10/Markers.png
Binary file modified docs/examples/V10/QueryTerrainElevation.png
2 changes: 1 addition & 1 deletion docs/examples/V10/SimpleModelLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ export default SimpleModelLayer;

```

}
![SimpleModelLayer.png](./SimpleModelLayer.png)}

Binary file added docs/examples/V10/SimpleModelLayer.png
Binary file modified docs/examples/V10/TerrainSkyAtmosphere.png