@react-google-maps/api
Advanced tools
Comparing version 2.17.0 to 2.17.1
# Changelog | ||
## 2.17.1 OverlayViewF improvements, docs improvemwnts | ||
## 2.17.0 HeatmapLayerF component | ||
@@ -4,0 +6,0 @@ |
@@ -6,6 +6,4 @@ /// <reference types="react" /> | ||
export declare const Default: ComponentStory<import("react").MemoExoticComponent<({ children, options }: import("./GoogleMarkerClusterer").GoogleMarkerClustererProps) => import("react").ReactElement<any, any> | null>>; | ||
export declare const DBScan: ComponentStory<import("react").MemoExoticComponent<({ children, options }: import("./GoogleMarkerClusterer").GoogleMarkerClustererProps) => import("react").ReactElement<any, any> | null>>; | ||
export declare const Grid: ComponentStory<import("react").MemoExoticComponent<({ children, options }: import("./GoogleMarkerClusterer").GoogleMarkerClustererProps) => import("react").ReactElement<any, any> | null>>; | ||
export declare const Kmeans: ComponentStory<import("react").MemoExoticComponent<({ children, options }: import("./GoogleMarkerClusterer").GoogleMarkerClustererProps) => import("react").ReactElement<any, any> | null>>; | ||
export declare const Noop: ComponentStory<import("react").MemoExoticComponent<({ children, options }: import("./GoogleMarkerClusterer").GoogleMarkerClustererProps) => import("react").ReactElement<any, any> | null>>; | ||
export declare const Render: ComponentStory<import("react").MemoExoticComponent<({ children, options }: import("./GoogleMarkerClusterer").GoogleMarkerClustererProps) => import("react").ReactElement<any, any> | null>>; |
@@ -6,6 +6,7 @@ /// <reference types="google.maps" /> | ||
}; | ||
export declare function createOverlay(container: HTMLElement, pane: keyof google.maps.MapPanes, position: google.maps.LatLng | google.maps.LatLngLiteral, getPixelPositionOffset?: fnPixelPositionOffset): { | ||
export declare function createOverlay(container: HTMLElement, pane: keyof google.maps.MapPanes, position?: google.maps.LatLng | google.maps.LatLngLiteral, bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, getPixelPositionOffset?: fnPixelPositionOffset): { | ||
container: HTMLElement; | ||
pane: keyof google.maps.MapPanes; | ||
position: google.maps.LatLng | google.maps.LatLngLiteral; | ||
position: google.maps.LatLng | google.maps.LatLngLiteral | undefined; | ||
bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral | undefined; | ||
onAdd(): void; | ||
@@ -12,0 +13,0 @@ draw(): void; |
@@ -11,3 +11,3 @@ /// <reference types="google.maps" /> | ||
mapPaneName: PaneNames; | ||
position: google.maps.LatLng | google.maps.LatLngLiteral; | ||
position?: google.maps.LatLng | google.maps.LatLngLiteral | undefined; | ||
getPixelPositionOffset?: ((offsetWidth: number, offsetHeight: number) => { | ||
@@ -27,3 +27,3 @@ x: number; | ||
export declare const OVERLAY_MOUSE_TARGET: PaneNames; | ||
declare function OverlayViewFunctional({ position, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: OverlayViewProps): ReactPortal; | ||
declare function OverlayViewFunctional({ position, bounds, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: OverlayViewProps): ReactPortal; | ||
export declare const OverlayViewF: import("react").MemoExoticComponent<typeof OverlayViewFunctional>; | ||
@@ -30,0 +30,0 @@ export declare class OverlayView extends PureComponent<OverlayViewProps, OverlayViewState> { |
/// <reference types="react" /> | ||
import { ComponentStory, ComponentMeta } from '@storybook/react'; | ||
declare const _default: ComponentMeta<import("react").MemoExoticComponent<({ position, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: import("./OverlayView").OverlayViewProps) => import("react").ReactPortal>>; | ||
declare const _default: ComponentMeta<import("react").MemoExoticComponent<({ position, bounds, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: import("./OverlayView").OverlayViewProps) => import("react").ReactPortal>>; | ||
export default _default; | ||
export declare const Default: ComponentStory<import("react").MemoExoticComponent<({ position, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: import("./OverlayView").OverlayViewProps) => import("react").ReactPortal>>; | ||
export declare const Default: ComponentStory<import("react").MemoExoticComponent<({ position, bounds, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: import("./OverlayView").OverlayViewProps) => import("react").ReactPortal>>; |
{ | ||
"name": "@react-google-maps/api", | ||
"sideEffects": false, | ||
"version": "2.17.0", | ||
"version": "2.17.1", | ||
"description": "React.js Google Maps API integration", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -52,9 +52,20 @@ # MarkerClusterer example | ||
<ScriptLoaded> | ||
<GoogleMap id='marker-example' mapContainerStyle={mapContainerStyle} zoom={3} center={center}> | ||
<GoogleMap | ||
id='marker-example' | ||
mapContainerStyle={mapContainerStyle} | ||
zoom={3} | ||
center={center} | ||
> | ||
<MarkerClusterer options={options}> | ||
{(clusterer) => | ||
locations.map((location) => ( | ||
<MarkerF key={createKey(location)} position={location} clusterer={clusterer} /> | ||
)) | ||
} | ||
{(clusterer) => ( | ||
<> | ||
{locations.map((location) => ( | ||
<MarkerF | ||
key={createKey(location)} | ||
position={location} | ||
clusterer={clusterer} | ||
/> | ||
))} | ||
</> | ||
)} | ||
</MarkerClusterer> | ||
@@ -61,0 +72,0 @@ </GoogleMap> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6407871
41630