admin管理员组文章数量:1289806
I'm trying to use maps in React native for that I use the react-native-maps library, although the map is displayed correctly the problem I encounter is that when I try to generate marks it does not paint them on the map, I thought it was an error in my way of placing the data, so I used the most basic example shown in the documentation to generate a mark but it still does not work, does anyone know why this happens or why this problem is generated, very basic example code:
import React from 'react';
import MapView, {Marker} from 'react-native-maps';
const Maps = () => {
return (
<MapView
style={{flex: 1}}
initialRegion={{
latitude: -34.391,
longitude: 150.644,
latitudeDelta: 0.09,
longitudeDelta: 0.03,
}}>
<Marker
description="Delivery person 1"
coordinate={{langitude: -34.397, longitude: 150.644}}
/>
</MapView>
);
};
export default Maps;
本文标签: reactjsError trying to generate marks on a react native mapStack Overflow
版权声明:本文标题:reactjs - Error trying to generate marks on a react native map - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741465399a2380283.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论