This repository contains sample projects demonstrating the usage and capabilities of the Woosmap Map JS API.
Ensure you have Node.js installed on your system.
- Clone this repository.
- Navigate to the project directory.
- Install the dependencies with
npm install
.
Run npm run build
to build all targets and update the dist/
folder.
Targets built for each sample include:
- app
- to run the sample using a bundler (vite). Useful for local development and open on codesandbox/stackblitz.
- docs
- for highlighting code in https://developers.woosmap.com
- ìframe
- optimized and bundled rendered html/js for embedding in developers.woosmap.com
- jsfiddle
- to open the sample on jsfiddle.
- highlight
- to highlight the code on https://demo.woosmap.com/js-samples/ using Prism.js
- Run
npm test
to execute tests. - Optionally, you can fix lint issues by running
npm run lint
andnpm run format
.
Start a server with all samples using npm start
. You can then access the samples in your web browser.
All samples can also be explored online at https://demo.woosmap.com/js-samples/.
- Woosmap Map JS API Documentation
- Woosmap Map JS API Reference Documentation
- Woosmap Map Typings - Install with
npm install --save-dev @types/woosmap.map