@xyo-network/react-map 2.70.6 → 2.71.0

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.
@@ -5,7 +5,7 @@ import { MapBoxInstanceContext } from './Context'
5
5
 
6
6
  const useMapBoxInstance = () => {
7
7
  const context = useContext(MapBoxInstanceContext)
8
- assertEx('map' in context, 'useMapBoxInstance must be used within a MapBoxInstanceContext')
8
+ assertEx('map' in context, () => 'useMapBoxInstance must be used within a MapBoxInstanceContext')
9
9
 
10
10
  return context
11
11
  }
@@ -110,7 +110,7 @@ export class MapHeat extends MapBase<Polygon> {
110
110
 
111
111
  let started = false
112
112
  const startAnimation = async () => {
113
- assertEx(!started, 'Animation Already Started')
113
+ assertEx(!started, () => 'Animation Already Started')
114
114
  started = true
115
115
  while (this.animationStarted) {
116
116
  const upLayer = layerTick % layers.length