diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 000000000..1885df604 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,13 @@ +# Security Policy + +## Supported Versions + +Security updates are applied only to the latest release. + +## Reporting a Vulnerability + +If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released. + +Please disclose it at [security advisory](https://github.com/visgl/react-map-gl/security/advisories/new). + +This project is maintained by a team of volunteers on a reasonable-effort basis. As such, please give us at least 90 days to work on a fix before public exposure. diff --git a/LICENSE b/LICENSE index 028aef4df..155928579 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2020 Urban Computing Foundation +Copyright Vis.gl contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index bbe0212bf..6584bb63c 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ See [contribution guide](/CONTRIBUTING.md). ### Attributions -react-map-gl is part of vis.gl, an [Urban Computing Foundation](https://uc.foundation) project. +react-map-gl is part of vis.gl, an [OpenJS Foundation](https://openjsf.org) project. Development is also supported by diff --git a/docs/api-reference/fullscreen-control.md b/docs/api-reference/fullscreen-control.md index 2f7137819..ae3257115 100644 --- a/docs/api-reference/fullscreen-control.md +++ b/docs/api-reference/fullscreen-control.md @@ -56,7 +56,7 @@ function App() { ### Reactive Properties -#### `style`: CSSProperties {#style} +#### `style`: CSSProperties {#style} CSS style override that applies to the control's container. @@ -65,11 +65,11 @@ CSS style override that applies to the control's container. The properties in this section are not reactive. They are only used when the component first mounts. -#### `containerId`: string {#containerid} +#### `containerId`: string {#containerid} Id of the DOM element which should be made full screen. By default, the map container element will be made full screen. -#### `position`: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' {#position} +#### `position`: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' {#position} Default: `'top-right'` @@ -78,4 +78,4 @@ Placement of the control relative to the map. ## Source -[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/fullscreen-control.ts) +[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/fullscreen-control.tsx) diff --git a/docs/get-started/adding-custom-data.md b/docs/get-started/adding-custom-data.md index b3f5d2758..c9e214862 100644 --- a/docs/get-started/adding-custom-data.md +++ b/docs/get-started/adding-custom-data.md @@ -13,7 +13,14 @@ import type {FeatureCollection} from 'geojson'; const geojson: FeatureCollection = { type: 'FeatureCollection', features: [ - {type: 'Feature', geometry: {type: 'Point', coordinates: [-122.4, 37.8]}} + { + type: 'Feature', + geometry: { + type: 'Point', + coordinates: [-122.4, 37.8] + }, + properties: {title: '915 Front Street, San Francisco, California'} + } ] }; diff --git a/docs/get-started/get-started.md b/docs/get-started/get-started.md index ce2a06f58..241421e3c 100644 --- a/docs/get-started/get-started.md +++ b/docs/get-started/get-started.md @@ -13,14 +13,14 @@ import TabItem from '@theme/TabItem'; ```bash -npm install --save react-map-gl mapbox-gl @types/mapbox-gl +npm install react-map-gl mapbox-gl @types/mapbox-gl ``` ```bash -npm install --save react-map-gl maplibre-gl +npm install react-map-gl maplibre-gl ``` @@ -129,7 +129,7 @@ import 'maplibre-gl/dist/maplibre-gl.css'; ## Using with a Compatible Fork ```bash -npm install --save react-map-gl my-map-gl-fork +npm install react-map-gl my-map-gl-fork ``` Then override the `mapLib` prop of `Map`: @@ -144,4 +144,4 @@ import 'my-map-gl-fork/path/to/style-sheet.css'; function App() { return ; } -``` \ No newline at end of file +```