aframe-wms-component
An A-Frame component to deal with WMS (Web Map Service).
This library implements a WMS GetMap request, the result is a single image which is added into the component material "SRC:" parameter.
Make sure you request a valid WMS with the correct parameters.
Example with a globe:
Schema
Property | Description | Default Value | Required |
---|---|---|---|
url | The main URL of the WMS. | true | |
bbox | The bonding box of the requested area. | true | |
projection | The projection. This projection must be available in the WMS. | true | |
layers | The WMS layers which will be requested. | true | |
width | Image request width. It is recommended to change this value according to your needs. | 250 px | false |
height | Image request height. It is recommended to change this value according to your needs. | 250 px | false |
version | The WMS version. | 1.3.0 | false |
format | The image format. | png | false |
transparent | If true the resulting image will allow transparency. | true | false |
styles | Used for specify the WMS/layer styles. | none | false |
Installation
npm
Via npm:
npm install aframe-wms-component
Then
;;
minified file
Directly including the A-Frame WMS Component - Simple example
Examples
Further development
A WMS Get Feature Info request based on the raycaster may be implemented in future releases.