Learn NextGIS Frontend step by step with this tutorial.
This is a set of tutorials through which you will be able to master both basic and advanced mechanics for working with frontend libraries.
For convenience, the tutorials are divided into parts (lessons).
Each lesson is a node package that is located in the tutorials folder and has its own description in a README.md file.
To run lessons on your computer, you need to (1) clone this repository, go to the lesson's folder, (3) execute commands to install dependencies and finally (4) run the main script
git clone https://github.com/nextgis/ngf-tutorial
cd ./ngf-tutorialWith yarn, you can install dependencies for all lessons at once
Note
Modern releases of Yarn aren't meant to be installed globally, or from npm. Refer to https://yarnpkg.com/getting-started/install for installation instructions
yarn
cd ./tutorials/X_Y_tutorial
yarn startWith npm, you need to install in each directory separately
cd ./tutorials/X_Y_tutorial
npm i
npm startPlease note that you will need Node.js 22.12 or later to work locally.
We recommend to use IDE VSCode to work with the lesson code. However a regular text editor and a terminal for running commands are also suitable.
Each lesson with a CodeSandbox link can be run in CodeSandbox.
https://codesandbox.io/p/devbox/github/nextgis/ngf-tutorial/tree/master/tutorials/ + [tutorial_foldername]
For example https://codesandbox.io/p/devbox/github/nextgis/ngf-tutorial/tree/master/tutorials/1_1_install_from_cdn
For Node.js lessons, run the Run lesson task in CodeSandbox. Run the Dynamic Refresh lesson locally so it can access the NextGIS Web sandbox.
Working with the repository, make a fork, complete tasks and upload back to github. If you have any questions, fill an issue.
- NGF Live examples and docs - study NGF by the most common use cases;
- NGF API - look for documentation of methods, properties, and components.
- NGF Source code
- NGF Release announcement
- NGF Tutorials source code
- NextGIS official
- NextGIS Web
- Cloud plans
- On premise
- Telegram dicussions EN
- Telegram dicussions RU
- Load a CDN module with an import map | LIVE
- Install from npm | LIVE
- Import browser modules from cdn | LIVE
- View | LIVE
- QMS and OSM | LIVE
- Frameworks | LIVE
- Map adapters | LIVE
- Starter Kit | LIVE
- Controls | LIVE
- Events | LIVE
- NgwMap react component | LIVE
- Identify features on click | LIVE
- Update a GeoJSON layer from state | LIVE
- Leaflet marker clusters | LIVE
- Leaflet Geoman | LIVE
- React feature filtering with Vite | LIVE
- React and Leaflet with webpack | LIVE
- Vue and MapLibre with webpack | LIVE
From the repository root, generate the NGW API types used by the React filtering example, run the standalone type checks, and build the lessons that use a bundler.
yarn install --immutable
yarn types:ngw
yarn check
yarn build
