【发布时间】:2018-04-24 14:29:08
【问题描述】:
我正在使用 react native maps 来显示两个位置之间的方向,为此我使用了 MapViewDirections,
我已经创建了 GOOGLE_MAPS_APIKEY 并添加到应用程序中,但我警告并且无法在地图中看到方向。这是代码
<MapViewDirections
origin={origin}
destination={destination}
apikey={GOOGLE_MAPS_APIKEY}
strokeWidth={3}
strokeColor="hotpink"
/>
ERROR : MapViewDirections 错误:此 IP、站点或移动应用程序无权使用此 API 密钥。从 IP 地址 1.42.189.121 收到请求,引用为空
【问题讨论】:
标签: google-maps react-native google-maps-api-2 react-native-ios react-native-maps