From 7a415a443a0056b43c3fb089c0681b2f98b895b4 Mon Sep 17 00:00:00 2001 From: Chris Gervang Date: Thu, 22 Aug 2024 08:37:39 -0700 Subject: [PATCH 1/5] Create security policy (#2427) --- .github/SECURITY.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/SECURITY.md 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. From 88ede8601488f5ee8200f8d7a732fc0fadf5c0c6 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Fri, 13 Dec 2024 11:30:24 -0800 Subject: [PATCH 2/5] Update license info (#2447) --- LICENSE | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From 08d4f52d5dc0a01e156caf10c7135931f773e458 Mon Sep 17 00:00:00 2001 From: Ivad Yves HABIMANA <54445417+Yvad60@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:48:05 +0200 Subject: [PATCH 3/5] Update fullscreen-control source code link (#2363) * Update fullscreen-control source code link --------- Co-authored-by: Chris Gervang --- docs/api-reference/fullscreen-control.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) From 92706b745257745748d77e2e0a22a1578c05331c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20St=C3=BCckler?= Date: Fri, 13 Dec 2024 21:50:35 +0100 Subject: [PATCH 4/5] Update get-started.md (#2428) docs: remove save flag from npm install commands Co-authored-by: Chris Gervang --- docs/get-started/get-started.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +``` From cec69700992ca9c4f66586904bf91eed657246f7 Mon Sep 17 00:00:00 2001 From: John-George Sample Date: Fri, 13 Dec 2024 17:07:08 -0500 Subject: [PATCH 5/5] Docs: Include `properties` in FeatureCollection example (#2425) * inlude `properties` in example for TS --------- Co-authored-by: Chris Gervang --- docs/get-started/adding-custom-data.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'} + } ] };