2

I want to use MapView from react-native-maps library in my react native expo project without going into Google API key pricing. Is there any way to do that? Currently, I am using UrlTile to display Openstreetmap maps but I am not sure if this the right way.

 <MapView
          region={location}
          rotateEnabled={false}
          style={{ flex: 1 }}
          style={styles.map}
          showsUserLocation
          mapType="none"
        >
          <UrlTile
            urlTemplate="https://a.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png"

          />
          <Marker
            title="Home"
            coordinate={{
              latitude: location.latitude,
              longitude: location.longitude,
            }}
          />
        </MapView>
Bassel Turky
  • 371
  • 7
  • 15

0 Answers0