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