Skip to content

Commit b190a03

Browse files
new map css & js added
1 parent cd963c3 commit b190a03

File tree

2 files changed

+76
-9
lines changed

2 files changed

+76
-9
lines changed

NewMap.jsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
22
import ReactDOM from 'react-dom';
33
import firebase from '~/fire';
44
import { withRouter } from "react-router-dom";
5-
//import ResultList from './ResultList'
5+
import GoogleMapButton from './GoogleMapButton';
66

77
const db = firebase.firestore();
88

@@ -216,19 +216,25 @@ class NewMap extends Component {
216216

217217
render() {
218218
const style = {
219-
width: '90vw',
220-
height: '75vh'
219+
width: '100vw',
220+
height: '100vh'
221221
};
222+
222223
return (
223224
<div>
224-
<div ref="newmap" style={style}>
225+
<div className="google-map-buttons text-align-center">
226+
<form onSubmit={this.onClick}>
227+
<input ref="center" id="center" className="google-map-input google-input-margin" type="text" placeholder="Search For A Place" name="search" />
228+
<GoogleMapButton type={`submit`} text={`Add to map`} />
229+
{
230+
<GoogleMapButton onClick={this.clearSearch} text={`Clear Search`} />
231+
}
232+
</form>
233+
</div>
234+
<div ref="newmap" className="google-map">
225235
Loading map...
226236
</div>
227-
<form onSubmit={this.onClick}>
228-
<input ref='center' id='center' className='controls' type='text' placeholder='search for place' name='search' />
229-
<button type='submit' />
230-
</form>
231-
<button onClick={this.clearSearch}>Clear Search </button>
237+
232238
</div>
233239
)
234240
}

firebase-debug.log

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[debug] [2018-03-26T14:51:27.519Z] ----------------------------------------------------------------------
2+
[debug] [2018-03-26T14:51:27.523Z] Command: /usr/local/Cellar/node/8.9.1/bin/node /Users/ChristopherMcIntosh/Documents/git/projects/1801-Capstone/MapIt/node_modules/.bin/firebase serve --only functions,hosting
3+
[debug] [2018-03-26T14:51:27.523Z] CLI Version: 3.17.6
4+
[debug] [2018-03-26T14:51:27.523Z] Platform: darwin
5+
[debug] [2018-03-26T14:51:27.523Z] Node Version: v8.9.1
6+
[debug] [2018-03-26T14:51:27.524Z] Time: Mon Mar 26 2018 10:51:27 GMT-0400 (EDT)
7+
[debug] [2018-03-26T14:51:27.524Z] ----------------------------------------------------------------------
8+
[debug]
9+
[debug] [2018-03-26T14:51:27.543Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
10+
[debug] [2018-03-26T14:51:27.543Z] > authorizing via signed-in user
11+
[debug] [2018-03-26T14:51:27.546Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
12+
[debug] [2018-03-26T14:51:27.547Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
13+
{ refresh_token: '1/_mD3J5zccVDF-IwMv991FHVtCn064DFwX1YTRxTTz5U',
14+
client_id: '563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
15+
client_secret: 'j9iVZfS8kkCEFUPaAeJV0sAi',
16+
grant_type: 'refresh_token',
17+
scope: 'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' }
18+
Mon Mar 26 2018 10:51:27 GMT-0400 (EDT)
19+
[debug] [2018-03-26T14:51:27.789Z] <<< HTTP RESPONSE 200
20+
[debug] [2018-03-26T14:51:27.823Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/map-it-fsa
21+
22+
Mon Mar 26 2018 10:51:27 GMT-0400 (EDT)
23+
[debug] [2018-03-26T14:51:28.144Z] <<< HTTP RESPONSE 200
24+
[debug] [2018-03-26T14:51:28.146Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/map-it-fsa/tokens
25+
26+
Mon Mar 26 2018 10:51:28 GMT-0400 (EDT)
27+
[debug] [2018-03-26T14:51:28.480Z] <<< HTTP RESPONSE 200
28+
[debug] [2018-03-26T14:51:28.481Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/map-it-fsa
29+
30+
Mon Mar 26 2018 10:51:28 GMT-0400 (EDT)
31+
[debug] [2018-03-26T14:51:28.822Z] <<< HTTP RESPONSE 200
32+
[info]
33+
[info] === Serving from '/Users/ChristopherMcIntosh/Documents/git/projects/1801-Capstone/MapIt'...
34+
[info]
35+
[info] i functions: Preparing to emulate functions.
36+
[debug] [2018-03-26T14:51:30.364Z] Fetching environment
37+
[debug] [2018-03-26T14:51:30.370Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/770393365469:getServerAppConfig
38+
39+
Mon Mar 26 2018 10:51:30 GMT-0400 (EDT)
40+
[debug] [2018-03-26T14:51:30.371Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/770393365469/clients/_:getWebAppConfig
41+
42+
Mon Mar 26 2018 10:51:30 GMT-0400 (EDT)
43+
[debug] [2018-03-26T14:51:30.759Z] <<< HTTP RESPONSE 200
44+
[debug] [2018-03-26T14:51:30.759Z] Starting @google-cloud/functions-emulator
45+
[debug] [2018-03-26T14:51:30.807Z] <<< HTTP RESPONSE 200
46+
[info] i hosting: Serving hosting files from: public
47+
[info] ✔ hosting: Local server: http://localhost:5000
48+
49+
[debug] [2018-03-26T14:51:33.856Z] Parsing function triggers
50+
[info] ✔ functions: helloWorld: http://localhost:5001/map-it-fsa/us-central1/helloWorld
51+
[info] Shutting down...
52+
[debug] [2018-03-26T14:52:21.599Z] Error: write EPIPE
53+
at _errnoException (util.js:1024:11)
54+
at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)
55+
[error]
56+
[error] Error: An unexpected error has occurred.
57+
[debug] [2018-03-26T14:52:21.601Z] Error: write EPIPE
58+
at _errnoException (util.js:1024:11)
59+
at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)
60+
[error]
61+
[error] Error: An unexpected error has occurred.

0 commit comments

Comments
 (0)