I am porting a layer I have in a v1 map to v2. The layer draws a custom control on the map and, as the map moves, it must stay in place on its current geolocation (w/ the correct scale).
It had been suggested to me to use onCameraChange
to communicate to my layer (a custom view, on top of the map) that the camera was panning or zooming and update the layer appropriately.
My problem is that onCameraChange
is only called after the camera has been moved - not during. It is therefor not responsive enough. Is there another way to achieve this?