diff --git a/packages/core-data/src/components/PlaceMarkers.js b/packages/core-data/src/components/PlaceMarkers.js index fc738d4e..3b66d6b1 100644 --- a/packages/core-data/src/components/PlaceMarkers.js +++ b/packages/core-data/src/components/PlaceMarkers.js @@ -13,6 +13,11 @@ import _ from 'underscore'; type Props = { animate?: boolean, + /** + * The number of miles to buffer the GeoJSON data. (Defaults to two.) + */ + buffer?: number, + /** * The URL of the Core Data place record. */ @@ -69,6 +74,7 @@ const PlaceMarkers = (props: Props) => { return ( ); diff --git a/packages/storybook/src/core-data/PlaceMarker.stories.js b/packages/storybook/src/core-data/PlaceMarker.stories.js index a91a4274..a72114ed 100644 --- a/packages/storybook/src/core-data/PlaceMarker.stories.js +++ b/packages/storybook/src/core-data/PlaceMarker.stories.js @@ -30,7 +30,7 @@ export const Default = () => ( > @@ -61,3 +61,31 @@ export const MultiplePlaces = () => ( ); + +export const LargerBuffer = () => ( + + + + + +
+ +
+
+
+); +