react-native-leaflet
react-native-leaflet copied to clipboard
Bounds not work in mapLayer
Greetings. I'm trying to insert boundaries into the map, but it doesn't recognize them, even though they can extend up to longitude 1000. My code example is attached.
mapLayers={changemaps ? [{ layerType: MapLayerType.TILE_LAYER, attribution: 'me', url: 'https://example1.com&x={x}&y={y}&z={z}', minZoom: 2, bounds: [ { lat: -85, lng: -180 },//_southWest { lat: 85, lng: 180 }//_northEast ] }, ] : [ { layerType: MapLayerType.TILE_LAYER, attribution: 'me, url: 'https://example2.com&x={x}&y={y}&z={z}', bounds:[ [-85, -180], //_southWest [85, -180] //_northEast ] }, ]}