Skip to content

Commit

Permalink
fix(google-layer): fix default props
Browse files Browse the repository at this point in the history
  • Loading branch information
amarjanica committed Dec 14, 2022
1 parent 2cd86ab commit 4781719
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -12,5 +12,5 @@ export interface Props {
const defaultProps: Props & TileLayerOptions = { subdomains: ['mt0', 'mt1', 'mt2'] };

export function GoogleLayer(props: Props & TileLayerOptions = defaultProps) {
return <TileLayer {...props} url="https://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}" />;
return <TileLayer {...defaultProps} {...props} url="https://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}" />;
}

0 comments on commit 4781719

Please sign in to comment.