Skip to content

Commit

Permalink
npm link maps & add hybrid map type to maps view
Browse files Browse the repository at this point in the history
  • Loading branch information
quickresolve committed May 17, 2016
1 parent a001e78 commit 9337963
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions App/Components/Local.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Weather from "./Weather"
import Trail from './Trail'
import TrailList from './TrailList'
import Main from "./Main"
import Map from "./Map"


var Local = React.createClass ({
Expand All @@ -37,7 +38,6 @@ var Local = React.createClass ({
return(
<View style={styles.container}>
<MapView style={styles.map}
// annotations={this.state.pin}
showsUserLocation={true}
region={this.state.region}
mapType={'hybrid'}
Expand Down Expand Up @@ -86,7 +86,7 @@ var Local = React.createClass ({

_onMapsButton(){
this.props.navigator.push({
component: Maps,
component: Map,
name: "Map"
})
},
Expand Down
3 changes: 2 additions & 1 deletion App/Components/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var Map = React.createClass({
longitude: -122.3247,
},
},

{
coordinate: {
latitude: 37.964,
Expand Down Expand Up @@ -223,6 +223,7 @@ var Map = React.createClass({
<MapView
style={styles.map}
initialRegion={region}
mapType={'hybrid'}
>
<MapView.Marker
ref="m1"
Expand Down
3 changes: 2 additions & 1 deletion App/Components/Weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Trail from './Trail'
import TrailList from './TrailList'
import Local from './Local'
import Main from './Main'
import Map from './Map'

var moment = require('moment');

Expand Down Expand Up @@ -213,7 +214,7 @@ renderRow: function(weather) {

_onMapsButton(){
this.props.navigator.push({
component: Maps,
component: Map,
name: "Map"
})
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "^0.14.8",
"react-native": "^0.25.1",
"react-native-icons": "^0.7.1",
"react-native-maps": "^0.4.0",
"react-native-maps": "^0.4.2",
"react-native-vector-icons": "^2.0.2"
}
}

0 comments on commit 9337963

Please sign in to comment.