Canadian-Geospatial-Platform / geoview

Canadian Geospatial Platform Viewer / Visualiseur de la Plateforme Géospatiale Canadienne
Other
22 stars 32 forks source link

[BUG] Performance Layers Panel #2271

Closed jolevesq closed 3 months ago

jolevesq commented 3 months ago

Is there an existing issue for this? Please search to see if an issue already exists for the bug you encountered.

Current Behavior A concise description of what you're experiencing.

Expected Behavior A concise description of what you expected to happen.

Steps To Reproduce Steps to reproduce the behavior:

  1. Go to https://canadian-geospatial-platform.github.io/geoview/public/sandbox.html
  2. Add this config
    {
    "map": {
        "interaction": "dynamic",
        "viewSettings": {
            "projection": 3978,
            "initialView": {
                "zoomAndCenter": [
                    12,
                    [
                        -71.26,
                        46.8
                    ]
                ]
            }
        },
        "basemapOptions": {
            "basemapId": "transport",
            "shaded": true,
            "labeled": false
        },
        "listOfGeoviewLayerConfig": [
            {
                "geoviewLayerId": "quebec-2006",
                "geoviewLayerName": {
                    "en": "Québec 2006"
                },
                "metadataAccessPath": {
                    "en": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/GeoAI_UseCase_en/MapServer"
                },
                "geoviewLayerType": "esriDynamic",
                "listOfLayerEntryConfig": [
                    {
                        "layerId": "8",
                        "layerName": {
                            "en": "Québec 2006"
                        },
                        "initialSettings": {
                            "states": {
                                "visible": false
                            }
                        }
                    }
                ]
            }
        ]
    },
    "theme": "geo.ca",
    "components": [
        "north-arrow"
    ],
    "corePackages": [],
    "appBar": {
        "tabs": {
            "core": [
                "legend"
            ]
        }
    },
    "footerBar": {
        "tabs": {
            "core": [
                "layers"
            ]
        }
    }
    }
  3. Click create map
  4. Use layers tabs

See how it get frozen....

When we swtich layer

14:12:22.329 MARKR 1 minutes, 17 seconds, and 773 ms to getFeatureInfo (4299) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, …] (all | quebec-2006/8/9)

It does a getAllFatureInfo in the background

Anything else? References? Anything that will give us more context about the issue you are encountering and if applicable, add screenshots to help explain your problem.