Skip to content

Commit

Permalink
revert renaming MapCameraProps to MapCameraState
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink committed Apr 18, 2024
1 parent 17cf95f commit 0753f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/multiple-maps/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {useCallback, useState} from 'react';
import {createRoot} from 'react-dom/client';
import {
APIProvider,
MapCameraState,
MapCameraProps,
Map,
MapCameraChangedEvent
} from '@vis.gl/react-google-maps';
Expand Down Expand Up @@ -31,7 +31,7 @@ const INITIAL_CAMERA_STATE = {

const App = () => {
const [cameraState, setCameraState] =
useState<MapCameraState>(INITIAL_CAMERA_STATE);
useState<MapCameraProps>(INITIAL_CAMERA_STATE);

// we only want to receive cameraChanged events from the map the
// user is interacting with:
Expand Down
2 changes: 1 addition & 1 deletion src/components/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type {
MapMouseEvent
} from './use-map-events';

export type MapCameraState = {
export type MapCameraProps = {
center: google.maps.LatLngLiteral;
zoom: number;
heading?: number;
Expand Down

0 comments on commit 0753f71

Please sign in to comment.