Can still update viewer rotation just not redraw

This commit is contained in:
Bryan Housel
2018-06-13 15:53:10 -04:00
parent 3c02c2ee7b
commit b2c2b4e87b

View File

@@ -140,10 +140,6 @@ export function svgStreetside(projection, context, dispatch) {
function viewerChanged() {
// skip this if the map is currently transformed
// e.g. during drags or easing.
if (context.map().isTransformed()) return;
var service = getService();
if (!service) return;
@@ -152,6 +148,11 @@ export function svgStreetside(projection, context, dispatch) {
// update viewfield rotation
_viewerYaw = viewer.getYaw();
// avoid updating if the map is currently transformed
// e.g. during drags or easing.
if (context.map().isTransformed()) return;
layer.selectAll('.viewfield-group.selected')
.attr('transform', transform);
}