Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'layertype' of undefined #10

Open
Revo86 opened this issue Jun 20, 2016 · 0 comments
Open

Cannot read property 'layertype' of undefined #10

Revo86 opened this issue Jun 20, 2016 · 0 comments

Comments

@Revo86
Copy link

Revo86 commented Jun 20, 2016

Hello,

we have multiple layers in one theme embedded like this:

{"name": "Stadtplanung",
"layers": [
            {"name":    
                "rp_bebauue_i,bauleitplanung_BP,Themenkarten_Bebauungsplan_RVR_Bebauungsplaene",
                     "layers": []
        }]}

If one opens a permalink like : http://xyz.example.com?activeLayers=rp_bebauue_i,bauleitplanung_BP,Themenkarten_Bebauungsplan_RVR_Bebauungsplaene

none of these layers gets automatically switched on and in console the error is thrown:
Cannot read property 'layertype' of undefined

debugging points towards gui.js with the line

var permaLayerType = Map.layers[permaLayer].layertype;

Any ideas on how to fix this? This error is not thrown, if a single theme permalink is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant