From a76193dbeeac7822f84fcf637b7037caefb34497 Mon Sep 17 00:00:00 2001 From: NativeScript-Bot Date: Fri, 14 Mar 2025 08:05:10 +0000 Subject: [PATCH 1/2] chore(update-plugins): Fri Mar 14 08:05:10 UTC 2025 --- content/plugins/google-maps.md | 227 ++++++++++++++++----------------- 1 file changed, 110 insertions(+), 117 deletions(-) diff --git a/content/plugins/google-maps.md b/content/plugins/google-maps.md index a2419018..c15c1be8 100644 --- a/content/plugins/google-maps.md +++ b/content/plugins/google-maps.md @@ -21,9 +21,6 @@ A plugin that allows you to use the [Maps SDK](https://developers.google.com/map - [Use @nativescript/google-maps with Angular](#use-nativescriptgoogle-maps-with-angular) - [Use @nativescript/google-maps with Vue](#use-nativescriptgoogle-maps-with-vue) - - [Control the camera](#control-the-camera) - - [Set the map type](#set-the-map-type) - - [Styling The Map](#styling-the-map) - [API](#api) @@ -33,10 +30,14 @@ A plugin that allows you to use the [Maps SDK](https://developers.google.com/map - [GoogleMap Object](#googlemap-object) - [Properties](#properties) - [Methods](#methods) - - [Camera Position](#camera-position) - - [Projection](#projection) - - [UISettings](#uisettings-interface) - - [MapType enum](#maptype-enum) + - [Control the camera](#control-the-camera) + - [Camera Position](#camera-position) + - [Projection](#projection) + - [Map Customization](#map-customization) + - [UISettings](#uisettings-interface) + - [Setting the map type](#setting-the-map-type) + - [MapType enum](#maptype-enum) + - [Styling The Map](#styling-the-map) - [Markers](#markers) - [Adding Markers](#adding-markers) - [Marker Object](#marker-object) @@ -192,17 +193,6 @@ import { GoogleMapsModule } from '@nativescript/google-maps/angular'; 2. Add [MapView](#mapview-class) to your markup. -```html - - -``` - -3. Manage - ```html | | `userData` | `{ [key: string]: any }` | -#### Removing Polylines +### Removing Polylines You can remove a Polyline using the [GoogleMap](#googlemap-object)'s `removePolyline` function, like so: @@ -677,9 +670,9 @@ function removePolyline(map: GoogleMap, polyline: Polyline) { } ``` -### Ground Overlays +## Ground Overlays -##### Adding Ground Overlays +### Adding Ground Overlays You can create Ground Overlays using the [GoogleMap](#googlemap-object)'s object `addGroundOverlay` function by passing in the specified [GroundOverlay Options](#groundoverlayoptions). @@ -710,7 +703,7 @@ function addGroundOverlay( | `anchorU` | `number` | | `anchorV` | `number` | -#### Removing Ground Overlays +### Removing Ground Overlays You can remove a GroundOverlay using the [GoogleMap](#googlemap-object)'s `removeGroundOverlay` function, like so: @@ -722,7 +715,7 @@ function removeGroundOverlay(map: GoogleMap, groundOverlay: GroundOverlay) { ## Tile Overlays -#### Adding Tile Overlays +### Adding Tile Overlays You can create Tile Overlays using the [GoogleMap](#googlemap-object)'s object `addTileOverlay` function by passing in the specified [TileOverlay Options](#tileoverlayoptions). @@ -748,7 +741,7 @@ function addTileOverlay( Setting tile overlay options after the tile overlay has been added to the map can have no effect on the tile overlay. To update the tile overlay, you may need to call `clearTileCache()`. -#### Removing Tile Overlays +### Removing Tile Overlays You can remove a TileOverlay using the [GoogleMap](#googlemap-object)'s `removeTileOverlay` function, like so: @@ -758,7 +751,7 @@ function removeTileOverlay(map: GoogleMap, tileOverlay: TileOverlay) { } ``` -#### Tile Providers +## Tile Providers Tile providers are objects that provide tiles to be used in a Tile Overlay. From 2c83411866d572f79106d8f0d64bf9f7e3e5acf8 Mon Sep 17 00:00:00 2001 From: Dylan Llewellyn <46717769+herefishyfish@users.noreply.github.com> Date: Fri, 27 Feb 2026 14:17:20 +0800 Subject: [PATCH 2/2] chore: update Windows setup instructions for Node and JDK --- content/setup/windows.md | 41 ++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/content/setup/windows.md b/content/setup/windows.md index e86e8c45..f3c7c997 100644 --- a/content/setup/windows.md +++ b/content/setup/windows.md @@ -4,6 +4,7 @@ prev: /setup next: /guide/creating-a-project contributors: - rigor789 + - herefishyfish --- ## Setting up Windows for Android @@ -18,10 +19,24 @@ Setting up the Android development environment can be daunting if you are new to ### Installing Node -To install **Node** we recommend using a node version manager, such as [nvm-windows](https://github.com/coreybutler/nvm-windows), [nvs](https://github.com/jasongin/nvs) or any other node version manager you prefer. In these docs we will be using **nvm-windows**, but feel free to use a different node version manager. +To install **Node** we recommend using a node version manager, such as [nvm-windows](https://github.com/coreybutler/nvm-windows), [nvs](https://github.com/jasongin/nvs) or any other node version manager you prefer. In these docs we will be using [nvm-windows](https://github.com/coreybutler/nvm-windows), but feel free to use a different node version manager. -1. Follow the [install instructions in the nvm-windows repository](https://github.com/coreybutler/nvm-windows#installation--upgrades). We recommend using the installer, however if you have a more advanced understanding of your needs you may also go for the manual installation instead. -2. Run and follow the `nvm-setup.exe` instructions. +1. Install [nvm-windows](https://github.com/coreybutler/nvm-windows) using one of the following methods: + ::: code-group + + ```bash [Chocolatey] + choco install -y nvm + ``` + + ```text [Installer Instructions] + https://github.com/coreybutler/nvm-windows#installation--upgrades + ``` + + ::: +2. After installation, open a new Command Prompt and verify: + ```bash + nvm version + ``` 3. Once the installation is complete, open a new Command Prompt and verify you can run `nvm ls`. 4. Install the latest Node release with: ```bash @@ -46,7 +61,7 @@ If any of the above failed, we recommend checking out the [Microsoft Docs for Se To install a **JDK** (using the prebuilt OpenJDK binaries from [Adoptium](https://adoptium.net/)) open an Administrator Command Prompt (right click and select "Run as Administrator") and run the following command: ```bash -choco install -y temurin17 +choco install -y temurin21 ``` Once installed, you might need to add it to your `Path`. First, check if you need to add it to your `Path` by opening a new Command Prompt and running the following: @@ -60,10 +75,10 @@ If you see a version number printed, you may skip this step. Otherwise, you will 1. Search for "**Edit the system environment variables**" in Windows Search and select 2. Click on "**Environment variables...**" in the bottom corner 3. Under the "**User variables for...**" select the **Path** variable and click **Edit...** -4. Click **New** and add the **JDK binaries folder** path to the list. - The default location is +4. Click **New** and add the **JDK `bin` folder path** to the list. + The **JDK** location may vary depending on the version you have installed. ``` - C:\Program Files\Eclipse Adoptium\jdk-17.X.X\bin + C:\Program Files\Eclipse Adoptium\jdk-21.0.9.10\bin ``` Additionally, some installations may require creating the `JAVA_HOME` environment variable manually: @@ -74,7 +89,7 @@ Additionally, some installations may require creating the `JAVA_HOME` environmen 4. Add the following variable. Ensure you're using the correct JDK path, without the \bin suffix. Example: ``` VARIABLE_NAME: JAVA_HOME - VARIABLE_VALUE: C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot + VARIABLE_VALUE: C:\Program Files\Eclipse Adoptium\jdk-21.0.9.10-hotspot ``` You may need to restart your terminal for changes to apply. @@ -141,6 +156,16 @@ ns doctor android If you see **No issues were detected** then you have successfully set up your system. +If you're using Chocolatey and prefer not to open a new terminal, you can refresh your environment variables in the current PowerShell session by running: + +```bash +Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1" +Update-SessionEnvironment +``` + +After refreshing, run the `ns doctor` command again to confirm everything is working as expected. + + Lastly, you will also want to [set up an android device](/guide/running#enable-usb-debugging-on-android-devices) or [emulator](/guide/running#android-emulators). ::: warning Troubleshooting