{"action":"opened","issue":{"url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/451","repository_url":"https://api.github.com/repos/lelandrichardson/react-native-maps","labels_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/451/comments","events_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/451/events","html_url":"https://github.com/lelandrichardson/react-native-maps/issues/451","id":170118597,"number":451,"title":"[ Android ][ Marker ][ Error ] No position in marker options","user":{"login":"ParamveerSisodia","id":1322807,"avatar_url":"https://avatars.githubusercontent.com/u/1322807?v=3","gravatar_id":"","url":"https://api.github.com/users/ParamveerSisodia","html_url":"https://github.com/ParamveerSisodia","followers_url":"https://api.github.com/users/ParamveerSisodia/followers","following_url":"https://api.github.com/users/ParamveerSisodia/following{/other_user}","gists_url":"https://api.github.com/users/ParamveerSisodia/gists{/gist_id}","starred_url":"https://api.github.com/users/ParamveerSisodia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParamveerSisodia/subscriptions","organizations_url":"https://api.github.com/users/ParamveerSisodia/orgs","repos_url":"https://api.github.com/users/ParamveerSisodia/repos","events_url":"https://api.github.com/users/ParamveerSisodia/events{/privacy}","received_events_url":"https://api.github.com/users/ParamveerSisodia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T09:15:32Z","updated_at":"2016-08-09T09:15:32Z","closed_at":null,"body":"\r\nI am trying to run the example at https://github.com/lelandrichardson/react-native-maps/blob/master/example/examples/DefaultMarkers.js and tried others also , \r\nbut getting following error when i try to set a marker on map.\r\n\r\n![device-2016-08-09-113125](https://cloud.githubusercontent.com/assets/1322807/17510991/e2c369de-5e3e-11e6-9eff-a682a418b1e9.png)\r\n\r\nMy gradle file :\r\ncompile 'com.google.android.gms:play-services-maps:8.4.0'\r\n compile 'com.facebook.react:react-native:0.30.0'\r\ncompile 'com.airbnb.android:react-native-maps:0.7.1'I can see the map loading .\r\n\r\ncan anybody help with the suggesting what is it that i am doing wrong?\r\n\r\nfollowing is my code :\r\nvar React = require('react');\r\nvar ReactNative = require('react-native');\r\nvar {\r\n  StyleSheet,\r\n  PropTypes,\r\n  View,\r\n  Text,\r\n  Dimensions,\r\n  TouchableOpacity,\r\n  AppRegistry\r\n} = ReactNative;\r\n\r\nvar MapView = require('react-native-maps');\r\n\r\nvar { width, height } = Dimensions.get('window');\r\n\r\nconst ASPECT_RATIO = width / height;\r\nconst LATITUDE = 37.78825;\r\nconst LONGITUDE = -122.4324;\r\nconst LATITUDE_DELTA = 0.0922;\r\nconst LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO;\r\nlet id = 0;\r\n\r\nfunction randomColor() {\r\n  return '#'+Math.floor(Math.random()*16777215).toString(16);\r\n}\r\n\r\nvar maps= React.createClass({\r\n  getInitialState() {\r\n    return {\r\n      region: {\r\n        latitude: LATITUDE,\r\n        longitude: LONGITUDE,\r\n        latitudeDelta: LATITUDE_DELTA,\r\n        longitudeDelta: LONGITUDE_DELTA,\r\n      },\r\n      markers: [],\r\n    };\r\n  },\r\n\r\n  onMapPress(e) {\r\n    this.setState({\r\n      markers: [\r\n        ...this.state.markers,\r\n        {\r\n          coordinate: e.nativeEvent.coordinate,\r\n          key: id++,\r\n          color: randomColor(),\r\n        },\r\n      ],\r\n    });\r\n  },\r\n\r\n  render() {\r\n    return (\r\n      <View style={styles.container}>\r\n        <MapView\r\n          style={styles.map}\r\n          initialRegion={this.state.region}\r\n          onPress={this.onMapPress}\r\n        >\r\n          {this.state.markers.map(marker => (\r\n            <MapView.Marker\r\n              key={marker.key}\r\n              coordinate={marker.coordinate}\r\n              pinColor={marker.color}\r\n            />\r\n          ))}\r\n        </MapView>\r\n        <View style={styles.buttonContainer}>\r\n          <View style={styles.bubble}>\r\n            <Text>Tap to create a marker of random color</Text>\r\n          </View>\r\n        </View>\r\n      </View>\r\n    );\r\n  },\r\n});\r\n\r\nvar styles = StyleSheet.create({\r\n  container: {\r\n    position: 'absolute',\r\n    top: 0,\r\n    left: 0,\r\n    right: 0,\r\n    bottom: 0,\r\n    justifyContent: 'flex-end',\r\n    alignItems: 'center',\r\n  },\r\n  map: {\r\n    position: 'absolute',\r\n    top: 0,\r\n    left: 0,\r\n    right: 0,\r\n    bottom: 0,\r\n  },\r\n  bubble: {\r\n    backgroundColor: 'rgba(255,255,255,0.7)',\r\n    paddingHorizontal: 18,\r\n    paddingVertical: 12,\r\n    borderRadius: 20,\r\n  },\r\n  latlng: {\r\n    width: 200,\r\n    alignItems: 'stretch',\r\n  },\r\n  button: {\r\n    width: 80,\r\n    paddingHorizontal: 12,\r\n    alignItems: 'center',\r\n    marginHorizontal: 10,\r\n  },\r\n  buttonContainer: {\r\n    flexDirection: 'row',\r\n    marginVertical: 20,\r\n    backgroundColor: 'transparent',\r\n  },\r\n});\r\n\r\nAppRegistry.registerComponent('maps', () => maps);\r\n"}}
{"actor":{"display_login":"ParamveerSisodia"}}