diff --git a/samples/3d-camera-position/index.html b/samples/3d-camera-position/index.html index d7c525be1..a88c3fbf6 100644 --- a/samples/3d-camera-position/index.html +++ b/samples/3d-camera-position/index.html @@ -10,9 +10,12 @@ Google Maps 3D - Camera Position Controller - - + @@ -25,9 +28,9 @@
- +
- +
- +
- +
- +
- + { altitude: val, }; } + } else if (prop === 'tilt') { + map3DElement.tilt = Math.max(0, val); + } else if (prop === 'fov') { + map3DElement.fov = Math.min(80, Math.max(5, val)); } else { // eslint-disable-next-line @typescript-eslint/no-explicit-any (map3DElement as any)[prop] = val;