Small Designed Silver Map Component
This is a Small Designed Silver Map Component, we have passed "small" as a prop to the Map component. There is a small, medium and large props. As well the silver style comes from SilverStyle props. Icons can be clicked and Info windows easily dismissed.
React.createElement(class DesignedSilverMapExample extends Component {state = {showingInfoWindow: false,selectedPlace: {},activeMarker: null,}onMapClicked = () => {if (this.state.showingInfoWindow) {this.setState({showingInfoWindow: false,activeMarker: {},})}}onMarkerClick = (props, marker) => {this.setState({selectedPlace: props,activeMarker: marker,showingInfoWindow: true,})}render() {const styleSilver=[{elementType: 'geometry',stylers: [{color: '#f5f5f5',},],},{elementType: 'labels.icon',stylers: [{visibility: 'off',},],},{elementType: 'labels.text.fill',stylers: [{color: '#616161',},],},{elementType: 'labels.text.stroke',stylers: [{color: '#f5f5f5',},],},{featureType: 'administrative.land_parcel',elementType: 'labels.text.fill',stylers: [{color: '#bdbdbd',},],},{featureType: 'poi',elementType: 'geometry',stylers: [{color: '#eeeeee',},],},{featureType: 'poi',elementType: 'labels.text.fill',stylers: [{color: '#757575',},],},{featureType: 'poi.park',elementType: 'geometry',stylers: [{color: '#e5e5e5',},],},{featureType: 'poi.park',elementType: 'labels.text.fill',stylers: [{color: '#9e9e9e',},],},{featureType: 'road',elementType: 'geometry',stylers: [{color: '#ffffff',},],},{featureType: 'road.arterial',elementType: 'labels.text.fill',stylers: [{color: '#757575',},],},{featureType: 'road.highway',elementType: 'geometry',stylers: [{color: '#dadada',},],},{featureType: 'road.highway',elementType: 'labels.text.fill',stylers: [{color: '#616161',},],},{featureType: 'road.local',elementType: 'labels.text.fill',stylers: [{color: '#9e9e9e',},],},{featureType: 'transit.line',elementType: 'geometry',stylers: [{color: '#e5e5e5',},],},{featureType: 'transit.station',elementType: 'geometry',stylers: [{color: '#eeeeee',},],},{featureType: 'water',elementType: 'geometry',stylers: [{color: '#c9c9c9',},],},{featureType: 'water',elementType: 'labels.text.fill',stylers: [{color: '#9e9e9e',},],},]return (<div><MapComponentsmallapiKey={['your MAP_API_KEY']}center={'200 Saint Charles Avenue, New Orleans, LA'}styles={styleSilver}onClick={this.onMapClicked}><Markerposition={'200 Saint Charles Avenue, New Orleans, LA'}name={'St Charles'}title={'Marker num 1'}label={'M1'}draggableonClick={this.onMarkerClick}/><Markerposition={'901 Poydras Avenue, New Orleans, LA'}name={'Poydras bulding'}title={'Marker num 2'}label={'M2'}draggableonClick={this.onMarkerClick}/><InfoWindowmarker={this.state.activeMarker}visible={this.state.showingInfoWindow}content={`<div><p>${this.state.selectedPlace.name}</p></div>`}/></MapComponent></div>)}})