Skip to content

Commit

Permalink
update maps
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoLV committed Dec 5, 2019
1 parent e8bfdba commit 89fe942
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .expo/packager-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"expoServerPort": 19000,
"expoServerNgrokUrl": "https://p5-k5p.anonymous.final-project-4-locos-1.exp.direct",
"packagerNgrokUrl": "https://packager.p5-k5p.anonymous.final-project-4-locos-1.exp.direct",
"ngrokPid": 21183,
"ngrokPid": 7125,
"devToolsPort": 19002,
"packagerPort": 19001,
"packagerPid": 21153
"packagerPort": 19004,
"packagerPid": 7094
}
4 changes: 4 additions & 0 deletions src/components/AuthMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default class myMap extends React.Component {
editing: null,
creating: false,
});
console.log(polygons)
}
}

Expand Down Expand Up @@ -128,6 +129,7 @@ export default class myMap extends React.Component {
this.setState({
polygons: [...polygons]
})
console.log(polygons)
}

onPress(e){
Expand Down Expand Up @@ -196,6 +198,7 @@ export default class myMap extends React.Component {
}

async loadUserPolygons(){
id = 0
//get all the polygons the user is a part of
//take out the ones already in this.state.polygons
//update state of this.state.polygons
Expand Down Expand Up @@ -229,6 +232,7 @@ export default class myMap extends React.Component {
}
//put polygon in polygons state
renderingPolygons.push(polygon)
console.log(id)
id+=1
}
self.setState({
Expand Down
1 change: 1 addition & 0 deletions src/components/myMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default class myMap extends React.Component {
owner: this.state.userId,
point1: this.state.editing.points[0],
point2: this.state.editing.points[1],
refName: 'Personal'
}

//push new study space
Expand Down

0 comments on commit 89fe942

Please sign in to comment.