Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Centralize layer filter #377

Closed
wants to merge 2 commits into from
Closed

Centralize layer filter #377

wants to merge 2 commits into from

Conversation

gjn
Copy link
Contributor

@gjn gjn commented Aug 30, 2013

As mentioned in #375, this centralises the current layer filter in order to be used elsewhere in the application.

Note: this PR depends on #375 to be merged first.

@@ -47,6 +65,13 @@
updateCatalogTree();
});

scope.map.getLayers().on('remove', function(evt) {
var layer = evt.elem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't "elem" renamed by the compiler? I added getElement for exactly this: openlayers/openlayers#929.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Will be addressed in the dependent #375.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's not yet in our ol3 version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we need to update ol3.

@gjn
Copy link
Contributor Author

gjn commented Sep 3, 2013

I'm closing this as we decided that it's better to keep the filters in the corresponding directives.

@gjn gjn closed this Sep 3, 2013
@gjn gjn deleted the dev_layerfilter_centralize branch September 3, 2013 11:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants