CoastalResilienceNetwork / regional-planning

ArcGIS and WMS map layer plugin for the GeositeFramework
0 stars 2 forks source link

Use layer id to disamgibuate layers #55

Closed caseycesari closed 8 years ago

caseycesari commented 8 years ago

If there are layers within the same map service that have the same name, allow developers to specify the layer id in the config to disambiguate these layers.

Update the documentation accordingly.

Testing

[
    {
        "name": "Grenada",
        "server": {
            "type": "ags",
            "layerType": "dynamic",
            "url": "http://dev.services2.coastalresilience.org/arcgis/rest/services/GSVG",
            "name": "GSVG"
        },
        "includeLayers": [
            {
                "id": 1,
                "name": "Inundation Scenarios",
                "includeAllLayers": true
            },
            {
                "name": "Ecological",
                "id": 9,
                "includeAllLayers": true
            },
            {
                "id": 19,
                "name": "Social and Economic",
                "includeLayers": [
                    {
                        "id": 20,
                        "name": "Critical Infrastructure",
                        "includeAllLayers": true
                    }
                ]
            }
        ]
    },
    {
        "name": "St Vincent and the Grenadines",
        "server": {
            "type": "ags",
            "layerType": "dynamic",
            "url": "http://dev.services2.coastalresilience.org/arcgis/rest/services/GSVG",
            "name": "GSVG"
        },
        "includeLayers": [
            {
                "id": 115,
                "name": "Inundation Scenarios",
                "includeAllLayers": true
            },
            {
                "id": 123,
                "name": "Ecological",
                "includeAllLayers": true
            },
            {
                "id": 133,
                "name": "Social and Economic",
                "includeLayers": [
                    {
                        "id": 134,
                        "name": "Critical Infrastructure",
                        "includeAllLayers": true
                    }
                ]
            }
        ]
    }
]

image

Connects to #51

kdeloach commented 8 years ago

+1 Great fix!

caseycesari commented 8 years ago

Thanks!