React-Native-Maps缩放级别被忽略

时间:2019-05-14 19:33:07

标签: reactjs react-native react-native-maps

我有一个基本的React-Native-Map,它加载了一个自定义的图块图层(缩放级别0-8)

我永远无法使应用缩放到1级或0级-为什么会这样?

完整示例:

<MapView
            style={styles.map}
            initialRegion={{
                latitude: 56.78696472965114,
                longitude: -83.74763705103969,
                latitudeDelta: 153,
                longitudeDelta: 131
            }}
            minZoomLevel={0}
            maxZoomLevel={8}
            mapType="none"
            showsMyLocationButton={false}
            showsPointsOfInterest={false}
            showsCompass={false}
            showsScale={false}
            showsBuildings={false}
            showsTraffic={false}
            showsIndoors={false}
            rotateEnabled={false}
            pitchEnabled={false}
            provider="google"
            onPress={location => setMarker(location)}
        >
            <UrlTile
                urlTemplate={getTilesetPath(drawing.tilesetS3Key)}
                maximumZ={6}
                tileSize={256}
            />

        </MapView>

0 个答案:

没有答案