1.1.10 • Published 6 years ago

openlayers-velocity-ts v1.1.10

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

openlayers-velocity-ts NPM version

This is an OpenLayers port of leaflet-velocity-ts.

Example use:

let velocity = new VelocityLayer({

  displayValues: true,
  displayOptions: {
    velocityType: 'Wind',
    position: 'bottomleft',
    emptyString: 'No velocity data',
    angleConvention: 'bearingCW',
    displayPosition: 'bottomleft',
    displayEmptyString: 'No velocity data',
    speedUnit: 'm/s'
  },
  data: data, // see demo/*.json, or wind-js-server for example data service

  // OPTIONAL
  minVelocity: 0,          // used to align color scale
  maxVelocity: 10          // used to align color scale
});

velocity.addToMap(map);

Build new lib/openlayers-velocity.js file:

npm run build

License

MIT License (MIT)