A toolbox for working with OpenLayers, in particular with RxJs-based event handling.
Generally speaking, this library contains two different types of utilities:
.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
Install peer dependencies if needed:
npm install ol@^6.10 proj4@^2.7 @types/proj4@^2.5 rxjs@^7
TypeDocs at https://doc.northtech.dk/openlayers-tools/