Skip to content

Bounds not work in mapLayer #65

@estebanGTS

Description

@estebanGTS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions