Skip to content

riaanvddool/openlayers-velocity-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Visualise velocity data on an OpenLayers map

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages