@douglastecnologia/panorama360-viewer
v1.0.0
Published
Panorama 360° Viewer Plugin for MapStore2 with measurement tools
Maintainers
Readme
Panorama 360° Viewer Plugin for MapStore2
A plugin for MapStore2 that provides a 360° panorama viewer with measurement tools.
Features
- 360° panorama visualization using Pannellum
- Measurement tools for distance and area
- Calibration tool for real-world measurements
- Export measurements to PDF, JSON, and CSV
- Georeferenced annotations
- Integration with MapStore2 authentication
- Persistent measurements and annotations
Installation
npm install @douglastecnologia/panorama360-viewer
## Usage
1. Add the plugin to your MapStore2 project's plugins.js:
javascript
module.exports = {
plugins: {
Panorama360: require('@douglastecnologia/panorama360-viewer')
}
};
2. Configure the plugin in your localConfig.json:
json
{
"name": "Panorama360",
"cfg": {
"panoramaLayer": "nh:nb_streetview_v1_05ce6086_13ce_4a02_ac84_4997c47ca40e",
"imageUrlField": "image_url"
}
}
## Configuration Options
panoramaLayer: The WMS layer containing the panorama points
imageUrlField: The field in the layer that contains the image URLs
## Development
bash
npm install
npm start
Build
bash
npm run build
Test
bash
npm test
License
MIT