Fix source code links in documentation (#1021)

This commit is contained in:
Xiaoji Chen 2020-02-10 14:57:02 -08:00 committed by GitHub
parent a0475ed808
commit 004993fef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 16 additions and 16 deletions

View File

@ -78,4 +78,4 @@ Implement this method to render the content of this component. `this._context` i
## Source
[base-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/base-control.js)
[base-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/base-control.js)

View File

@ -41,5 +41,5 @@ Stop propagation of dblclick event to the map component. Can be used to stop map
## Source
[canvas-overlay.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/canvas-overlay.js)
[canvas-overlay.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/overlays/canvas-overlay.js)

View File

@ -33,5 +33,5 @@ class Map extends Component {
Like its Mapbox counterpart, this control relies on the mapbox-gl stylesheet to work properly. Make sure to add the stylesheet to your page.
## Source
[fullscreen-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/fullscreen-control.js)
[fullscreen-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/fullscreen-control.js)

View File

@ -85,4 +85,4 @@ Like its Mapbox counterpart, this control relies on the mapbox-gl stylesheet to
## Source
[geolocate-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/geolocate-control.js)
[geolocate-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/geolocate-control.js)

View File

@ -44,4 +44,4 @@ Stop propagation of dblclick event to the map component. Can be used to stop map
## Source
[html-overlay.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/html-overlay.js)
[html-overlay.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/overlays/html-overlay.js)

View File

@ -366,5 +366,5 @@ Inherit the following methods from [StaticMap](/docs/api-reference/static-map.md
## Source
[interactive-map.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/interactive-map.js)
[interactive-map.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/interactive-map.js)

View File

@ -61,5 +61,5 @@ Note that layers are added by the order that they mount. They are *NOT* reordere
## Source
[layer.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/layer.js)
[layer.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/layer.js)

View File

@ -144,5 +144,5 @@ Like its Mapbox counterpart, this control relies on the mapbox-gl stylesheet to
## Source
[marker.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/marker.js)
[marker.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/marker.js)

View File

@ -96,5 +96,5 @@ Like its Mapbox counterpart, this control relies on the mapbox-gl stylesheet to
## Source
[navigation-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/navigation-control.js)
[navigation-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/navigation-control.js)

View File

@ -133,5 +133,5 @@ Like its Mapbox counterpart, this control relies on the mapbox-gl stylesheet to
## Source
[popup.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/popup.js)
[popup.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/popup.js)

View File

@ -42,4 +42,4 @@ Like its Mapbox counterpart, this control relies on the mapbox-gl stylesheet to
## Source
[scale-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/scale-control.js)
[scale-control.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/scale-control.js)

View File

@ -52,4 +52,4 @@ Type of the source.
## Source
[source.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/source.js)
[source.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/source.js)

View File

@ -266,4 +266,4 @@ const viewport = new WebMercatorViewport({width: 800, height: 600})
## Source
[static-map.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/static-map.js)
[static-map.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/components/static-map.js)

View File

@ -44,4 +44,4 @@ Stop propagation of dblclick event to the map component. Can be used to stop map
## Source
[svg-overlay.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/svg-overlay.js)
[svg-overlay.js](https://github.com/uber/react-map-gl/tree/5.2-release/src/overlays/svg-overlay.js)

View File

@ -132,11 +132,11 @@ Release date: July 27th, 2017
#### [InteractiveMap (New, MapGL replacement)](/docs/api-reference/interactive-map.md)
This is a wrapper on top of `StaticMap`. It takes all the props of `StaticMap` and additional ones such as `onViewportChange`, `scrollZoom`, `dragRotate`, etc. to control interactivity on the map. See [Source Code](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/interactive-map.js) for more information.
This is a wrapper on top of `StaticMap`. It takes all the props of `StaticMap` and additional ones such as `onViewportChange`, `scrollZoom`, `dragRotate`, etc. to control interactivity on the map. See [Source Code](https://github.com/uber/react-map-gl/tree/3.0-release/src/components/interactive-map.js) for more information.
#### [StaticMap (New)](/docs/api-reference/static-map.md)
This is the React wrapper around `Mapbox GL JS` and takes in viewport properties such as `width`, `height`, `latitude`, `longitude`. Style diffing and updating logic also live here. See [Source Code](https://github.com/uber/react-map-gl/tree/5.2-release/src/api-reference/static-map.js) for more information.
This is the React wrapper around `Mapbox GL JS` and takes in viewport properties such as `width`, `height`, `latitude`, `longitude`. Style diffing and updating logic also live here. See [Source Code](https://github.com/uber/react-map-gl/tree/3.0-release/src/components/static-map.js) for more information.
#### Overlays