Options
All
  • Public
  • Public/Protected
  • All
Menu

@northtech/openlayers-tools - v1.0.2

@northtech/openlayers-tools

A toolbox for working with OpenLayers, in particular with RxJs-based event handling.

Generally speaking, this library contains two different types of utilities:

  • Stateless functions, ranging from mnemonics to boilerplate (parsing Capabilities into actual layers) to animation support.
  • Classes which work directly on/with an OpenLayers Map or View. These classes can be instantiated without a Map, but will only start functioning once their .setMap(...)/.setView(...) function has been called. This way, they can be instantiated early and, say, become part of a dependency injection hierarchy or central "Map Service", even if the actual map they will work on has not been created yet. (Such as when the map is based on a live Capabilities file which needs to be fetched asynchronously).

Install with

npm install @northtech/openlayers-tools@^1