mobility-toolbox-js 2.0.0-beta.30 → 2.0.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,7 +162,7 @@ class RealtimeLayer extends mixin(Layer) {
162
162
  }
163
163
  renderTrajectoriesInternal(viewState, noInterpolate) {
164
164
  const render = super.renderTrajectoriesInternal(viewState, noInterpolate);
165
- if (render) {
165
+ if (render && this.map.style) {
166
166
  const extent = getSourceCoordinates(this.map, this.pixelRatio);
167
167
  const source = this.map.getSource(this.key);
168
168
  if (source) {
package/mbt.js CHANGED
@@ -50062,7 +50062,7 @@ uniform ${i3} ${o3} u_${a3};
50062
50062
  }
50063
50063
  renderTrajectoriesInternal(viewState, noInterpolate) {
50064
50064
  const render = super.renderTrajectoriesInternal(viewState, noInterpolate);
50065
- if (render) {
50065
+ if (render && this.map.style) {
50066
50066
  const extent = getSourceCoordinates(this.map, this.pixelRatio);
50067
50067
  const source = this.map.getSource(this.key);
50068
50068
  if (source) {