Skip to content

v2.0.0-beta

Compare
Choose a tag to compare
@ghettovoice ghettovoice released this 23 Mar 20:17
· 42 commits to master since this release

Main aim of v2.x version is to support OpenLayers ES2015 modules from ol

Upgrade notes

  • Public export have been changed for ES2015 and Browser env.
// ES2015
import * as tileCacheUrlFn from 'ol-tilecache'
// or 
import { createTileUrlFunction } from 'ol-tilecache'

// In Browser plugin is available at ol.tileCacheUrlFn namespace
  • You should install both packages ol and openlayers, but the plugin will use only one of them: ol in ES2015 env, openlayers in Browser and CommonJs env. You can install one of them as dev dependency to suppress NPM warnings