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

fix map controls for mission and contacts layers on events page #130

Closed
matthewberryman opened this issue Oct 12, 2017 · 7 comments
Closed
Assignees
Labels

Comments

@matthewberryman
Copy link
Contributor

#82 (comment)

cc @LucieGueuning

@matthewberryman
Copy link
Contributor Author

I’ve been struggling with the same issue on #134 as I need to update the events layer (also a geoJSON layer); the fix seems to be to just replace the data per Leaflet/Leaflet#1416 (comment) - I will have a go at this on both of these issues when I get back home.

@matthewberryman
Copy link
Contributor Author

Actually this is slightly different to #134; here simply keeping state on whether or not the control's been added (as I had to do in #134, but in #134 I also had to update the layer too) will fix the bug.

@matthewberryman
Copy link
Contributor Author

Nope, not quite, per comment I just added on #134 the control gets out of sync.

@matthewberryman
Copy link
Contributor Author

matthewberryman commented Oct 21, 2017

Keeping track of this control issue here.
I'm first trying to remove the layer, to remove the old control, however it's failing with

Uncaught TypeError: Cannot read property 'indexOf' of undefined
    at e.removeLayer (leaflet.groupedlayercontrol.js:69)
    at landing.js:609

due to a bug in leaflet-groupedlayercontrol, ismyrnow/leaflet-groupedlayercontrol#49 , which won't be completely fixed until ismyrnow/leaflet-groupedlayercontrol#46 is merged (the pull request fixes the bug but also introduces a new feature). I will have to separately fork and patch.

@LucieGueuning
Copy link

No auto sync when creating an event. Still need to refresh to see our event on homepage.

@LucieGueuning
Copy link

Mission and RSS feed are not on event as layer ON/OFF

@LucieGueuning LucieGueuning reopened this Nov 20, 2017
matthewberryman added a commit that referenced this issue Dec 14, 2017
fixes #134
other code tidy up
@matthewberryman
Copy link
Contributor Author

The event refresh is a separate issue #134
and a map control for RSS feeds is a separate issue #212 (and separately syncing map and table is #175 ). Just noting that the controls do work, and the current issue here is that the contacts / missions come back on when the map is panned or zoomed.

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

No branches or pull requests

4 participants