question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zoomTo does not work after upgrading from version 8.3.0 to 8.4.0

See original GitHub issue

Describe the bug

zoomTo does not work after upgrading from version 8.3.0 to 8.4.0

To Reproduce

import React, { memo, useCallback } from 'react';
import { TouchableOpacity, Text } from 'react-native';
import MapboxGL from '@react-native-mapbox-gl/maps';

const Test = () => {
  const camera = React.createRef(null);
  const map = React.createRef(null);
  const zoom = useCallback(
    async (zoomIn) => {
      const currentZoom = await map.current.getZoom();
      camera.current.zoomTo(currentZoom + (zoomIn ? 1 : -1));
    },
    [map, camera]
  );
  const zoomPlus = useCallback(() => zoom(true), [zoom]);
  const zoomMinus = useCallback(() => zoom(), [zoom]);
  return (
    <>
      <MapboxGL.MapView style={styles.map} ref={map}>
        <MapboxGL.Camera ref={camera} />
      </MapboxGL.MapView>
      <TouchableOpacity onPress={zoomPlus}>
        <Text>zoom plus</Text>
      </TouchableOpacity>
      <TouchableOpacity onPress={zoomMinus}>
        <Text>zoom minus</Text>
      </TouchableOpacity>
    </>
  );
};

Versions

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
ferdicuscommented, Nov 17, 2021
1reaction
naftalibedercommented, Nov 15, 2021

@dorthwein Please see #1621 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading Zoom to the latest version
Upgrading the Zoom desktop client for Windows, macOS, or Linux. Zoom provides a pop-up notification when there is a new mandatory or optional ......
Read more >
Spectrum Virtualize Family of Products Upgrade Planning - IBM
Question. How can I determine which software release to use when planning to upgrade my Spectrum Virtualize systems? Answer. From version 8.4, ...
Read more >
FortiWLC 8.4.0 Release Notes - Fortinet GURU
Run the upgrade controller command to upgrade controllers. Once the controller is online, upgrade the APs in batches. Before initiating upgrade, ...
Read more >
VMware vSphere Replication 8.4.0.4 Release Notes
Note: An upgrade from vSphere Replication 8.3.1.4 to version 8.4.0.4 is not supported. You can upgrade Sphere Replication 8.3.1.4 to vSphere ...
Read more >
FortiWLC 8.4.5 Release Notes - Amazon AWS
FortiWLC 8.4.5 release resolves outstanding issues on FortiWLC; see section Fixed ... controller and APs are upgraded to the latest (upgraded) version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found