react-native-leaflet icon indicating copy to clipboard operation
react-native-leaflet copied to clipboard

Bounds not work in mapLayer

Open estebanGTS opened this issue 4 months ago • 0 comments

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 ] }, ]}

estebanGTS avatar Jul 09 '25 15:07 estebanGTS