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

Unearthing demo not visible in publiclab.org #349

Closed
jywarren opened this issue Jan 16, 2020 · 5 comments · Fixed by #352
Closed

Unearthing demo not visible in publiclab.org #349

jywarren opened this issue Jan 16, 2020 · 5 comments · Fixed by #352
Labels
bug Something isn't working priority

Comments

@jywarren
Copy link
Member

Hi all, i'm not sure what happened, as we haven't published anything i think... but I don't see the markers on https://publiclab.org/wiki/unearthing-pvd any more. @sagarpreet-chadha @crisner @nstjean can we try to prioritize debugging this?

Thank you -- i guess we need a system test in plots2 to ensure this stays live? There are a lot of moving parts!

@jywarren jywarren added bug Something isn't working priority labels Jan 16, 2020
@jywarren jywarren changed the title Unearthing demo not on in publiclab.org Unearthing demo not visible in publiclab.org Jan 16, 2020
@jywarren
Copy link
Member Author

image

Uncaught TypeError: Cannot convert undefined or null to object
    at Function.assign (<anonymous>)
    at NewClass.onAdd (LeafletEnvironmentalLayers.js:25977)
    at NewClass._layerAdd (LeafletEnvironmentalLayers.js:18527)
    at NewClass.whenReady (LeafletEnvironmentalLayers.js:16407)
    at NewClass.addLayer (LeafletEnvironmentalLayers.js:18589)
    at NewClass.addTo (LeafletEnvironmentalLayers.js:18469)
    at setupInlineLEL (xml.js:30)
    at unearthing-pvd:1067

@crisner
Copy link
Contributor

crisner commented Jan 16, 2020

Working on this.

@crisner
Copy link
Contributor

crisner commented Jan 16, 2020

So, the error from the console has been fixed in PR #351 under a new issue #350 as this wasn't responsible for the markers not showing up.

It looks like the layers are available on the map but not added to the map by default.
publiclab org_wiki_unearthing-pvd (1)

When I was working on the embed feature I removed the code responsible for this here: https://github.com/publiclab/leaflet-environmental-layers/blame/00c10f2c157a90a1d98a0254a061f9d6dd8f4c57/src/AllLayers.js#L123-L125,
because it was adding all the layers by default and I hadn't realized its usage in the inline maps section. I shall add a fix where if layers are passed in the include option then those layers would be added to the map by default.

@jywarren
Copy link
Member Author

Awesome, thank you-- let's try to set up a test for this as well, so that it makes the feature more explicit? Thanks a ton!!!

@jywarren
Copy link
Member Author

Published live! Thank you! https://publiclab.org/wiki/unearthing-pvd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants