diff --git a/src/app/pages/basics/StreetViewPanoramaExample.js b/src/app/pages/basics/StreetViewPanoramaExample.js index 5f9d8b7f..541c47da 100644 --- a/src/app/pages/basics/StreetViewPanoramaExample.js +++ b/src/app/pages/basics/StreetViewPanoramaExample.js @@ -8,10 +8,24 @@ import { withGoogleMap, GoogleMap, StreetViewPanorama, + OverlayView, } from "../../../lib"; const coordinates = { lat: 49.2853171, lng: -123.1119202 }; +const STYLES = { + overlayView: { + background: `red`, + color: `white`, + padding: 5, + borderRadius: `50%`, + }, +}; + +function getPixelPositionOffset(width, height) { + return { x: -(width / 2), y: -(height / 2) }; +} + const StreetViewPanoramaExampleGoogleMap = withGoogleMap(props => ( ( + > + +
+ OverlayView +
+
+
)); @@ -44,7 +68,7 @@ export default class StreetViewPanoramaExample extends Component { return ( +
} mapElement={