[geo] turn off renderTrigger on viewport control (#4066)

For context, the viewport gets updated dynamically from the user
actions on the map. This is done on a timer every second or so to keep
the form data updated with the viewport settings.

With renderTrigger=true on that control that generates re-renders which
introduces glitches while zooming/panning. So turning it off as we don't
really expect users to input viewport info directly in the control
anyways.
This commit is contained in:
Maxime Beauchemin 2017-12-15 14:59:54 -08:00 committed by GitHub
parent 6081f7161a
commit fc85756c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1446,7 +1446,7 @@ export const controls = {
viewport: {
type: 'ViewportControl',
label: t('Viewport'),
renderTrigger: true,
renderTrigger: false,
description: t('Parameters related to the view and perspective on the map'),
// default is whole world mostly centered
default: defaultViewport,