From dae58749ca47ec591db39de8626e2b1c35647e48 Mon Sep 17 00:00:00 2001 From: Sh3nr0n <33334446+Sh3nr0n@users.noreply.github.com> Date: Thu, 14 Jun 2018 16:42:33 +0200 Subject: [PATCH 1/2] Zoom and Street View controls Added the capability to pass the "streetViewControlOptions" and "zoomControlOptions" from the google API to change the position of these controls on the map using the predefined "ControlPosition". --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 125c6df6..3f4f8c87 100644 --- a/src/index.js +++ b/src/index.js @@ -160,7 +160,9 @@ export class Map extends React.Component { disableDoubleClickZoom: this.props.disableDoubleClickZoom, noClear: this.props.noClear, styles: this.props.styles, - gestureHandling: this.props.gestureHandling + gestureHandling: this.props.gestureHandling, + streetViewControlOptions:this.props.streetViewControlOptions, + zoomControlOptions:this.props.zoomControlOptions } ); @@ -290,7 +292,9 @@ Map.propTypes = { noClear: PropTypes.bool, styles: PropTypes.array, gestureHandling: PropTypes.string, - bounds: PropTypes.object + bounds: PropTypes.object, + streetViewControlOptions:PropTypes.object, + zoomControlOptions:PropTypes.object }; evtNames.forEach(e => (Map.propTypes[camelize(e)] = PropTypes.func)); From 58fa109f727c65ee391ab27f11781413661db50a Mon Sep 17 00:00:00 2001 From: Sh3nr0n <33334446+Sh3nr0n@users.noreply.github.com> Date: Mon, 9 Jul 2018 15:23:16 +0200 Subject: [PATCH 2/2] Fixed map height for AMT --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3f4f8c87..7830d9ac 100644 --- a/src/index.js +++ b/src/index.js @@ -8,7 +8,7 @@ const mapStyles = { container: { position: 'absolute', width: '100%', - height: '100%' + height: '90%' }, map: { position: 'absolute',