From 35778cd7e36cffd6f54d509a13136cb8eb238d01 Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Tue, 31 Jan 2023 12:56:05 -0500 Subject: [PATCH] Updated readme, sample.json --- samples/react-interactive-map/README.md | 37 ++------------ .../react-interactive-map/assets/sample.json | 50 +++++++++++++++++++ 2 files changed, 53 insertions(+), 34 deletions(-) create mode 100644 samples/react-interactive-map/assets/sample.json diff --git a/samples/react-interactive-map/README.md b/samples/react-interactive-map/README.md index 3a6184942..31a0cf480 100644 --- a/samples/react-interactive-map/README.md +++ b/samples/react-interactive-map/README.md @@ -2,7 +2,7 @@ ## Summary -This webparts displays a (world) map. An editor can set custom markers directly in the map. Each marker can configured individually. It is possible to determine the color of the pin, the icon in the pin or what should happen when the pin is clicked. It is even possible to change the tile layer in the webpart properties. +This web parts displays a (world) map. An editor can set custom markers directly in the map. Each marker can configured individually. It is possible to determine the color of the pin, the icon in the pin or what should happen when the pin is clicked. It is even possible to change the tile layer in the web part properties. ![EditMode](assets/WPPreview.png) @@ -13,7 +13,7 @@ This webparts displays a (world) map. An editor can set custom markers directly ### Preview -![Interactive Map webpart preview](assets/MapWPOverview.gif) +![Interactive Map web part preview](assets/MapWPOverview.gif) ## Compatibility @@ -35,15 +35,6 @@ This webparts displays a (world) map. An editor can set custom markers directly > Get your own free development tenant by subscribing to [Microsoft 365 developer program](http://aka.ms/o365devprogram) ## Solution - Solution|Author(s) --------|--------- @@ -53,16 +44,9 @@ react-interactive-map | [Sergej Schwabauer](https://github.com/SPFxAppDev) ([@sp Version|Date|Comments -------|----|-------- -1.0|March 4, 2022|Initial release +1.0|January 19, 2023|Initial release - - ## Minimal path to awesome * Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-interactive-map) then unzip it) @@ -82,23 +66,8 @@ This Web Part illustrates the following concepts on top of the SharePoint Framew * [LeafletJS](https://leafletjs.com/) and the [react-leaflet](https://react-leaflet.js.org/) wrapper * [Leaflet Plugin "Marker cluster"](https://github.com/Leaflet/Leaflet.markercluster) ant the [react-leaflet-markercluster](https://www.npmjs.com/package/react-leaflet-markercluster) wrapper - - - - ## Help - We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues. If you're having issues building the solution, please run [spfx doctor](https://pnp.github.io/cli-microsoft365/cmd/spfx/spfx-doctor/) from within the solution folder to diagnose incompatibility issues with your environment. diff --git a/samples/react-interactive-map/assets/sample.json b/samples/react-interactive-map/assets/sample.json new file mode 100644 index 000000000..cfaa41322 --- /dev/null +++ b/samples/react-interactive-map/assets/sample.json @@ -0,0 +1,50 @@ +[ + { + "name": "pnp-sp-dev-spfx-web-parts-react-interactive-map", + "source": "pnp", + "title": "Interactive Map", + "shortDescription": "This web parts displays a (world) map. An editor can set custom markers directly in the map. Each marker can configured individually.", + "url": "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-interactive-map", + "downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-interactive-map", + "longDescription": [ + "This web parts displays a (world) map. An editor can set custom markers directly in the map. Each marker can configured individually." + ], + "creationDateTime": "2023-01-31", + "updateDateTime": "2023-01-31", + "products": [ + "SharePoint" + ], + "metadata": [ + { + "key": "CLIENT-SIDE-DEV", + "value": "React" + }, + { + "key": "SPFX-VERSION", + "value": "1.16.1" + } + ], + "thumbnails": [ + { + "type": "image", + "order": 100, + "url": "https://github.com/pnp/sp-dev-fx-webparts/raw/main/samples/react-interactive-map/assets/YOUR-IMAGE-NAME-HERE", + "alt": "Web Part Preview" + } + ], + "authors": [ + { + "gitHubAccount": "SPFxAppDev", + "pictureUrl": "https://github.com/SPFxAppDev.png", + "name": "Sergej Schwabauer" + } + ], + "references": [ + { + "name": "Build your first SharePoint client-side web part", + "description": "Client-side web parts are client-side components that run in the context of a SharePoint page. Client-side web parts can be deployed to SharePoint environments that support the SharePoint Framework. You can also use modern JavaScript web frameworks, tools, and libraries to build them.", + "url": "https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part" + } + ] + } +]