/* * Base Google Map example */ import React, {PropTypes, Component} from 'react/addons'; import shouldPureComponentUpdate from 'react-pure-render/function'; import GoogleMap from 'google-map-react'; import MyGreatPlace from './my_great_place.jsx'; function createMapOptions(maps) { // next props are exposed at maps // "Animation", "ControlPosition", "MapTypeControlStyle", "MapTypeId", // "NavigationControlStyle", "ScaleControlStyle", "StrokePosition", "SymbolPath", "ZoomControlStyle", // "DirectionsStatus", "DirectionsTravelMode", "DirectionsUnitSystem", "DistanceMatrixStatus", // "DistanceMatrixElementStatus", "ElevationStatus", "GeocoderLocationType", "GeocoderStatus", "KmlLayerStatus", // "MaxZoomStatus", "StreetViewStatus", "TransitMode", "TransitRoutePreference", "TravelMode", "UnitSystem" return { zoomControlOptions: { position: maps.ControlPosition.RIGHT_CENTER, style: maps.ZoomControlStyle.SMALL }, mapTypeControlOptions: { position: maps.ControlPosition.TOP_RIGHT }, mapTypeControl: true }; } export default class SimpleMapPage extends Component { static propTypes = { center: PropTypes.array, zoom: PropTypes.number, greatPlaceCoords: PropTypes.any }; static defaultProps = { center: [59.938043, 30.337157], zoom: 9, greatPlaceCoords: {lat: 59.724465, lng: 30.080121} }; shouldComponentUpdate = shouldPureComponentUpdate; constructor(props) { super(props); } render() { return ( ); } }