Skip to content

Enable layer name change #865

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

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

prushforth
Copy link
Member

Closes #833

Code's a bit ugly due to createmap-generated issues.

under limited conditions (no <map-title> in content).

Encapsulate accessible name change into MapMLLayer.setName() method
Remove unused, unspecified labelchanged event

Add test fixture

Add <map-meta name="projection"...> so as to not rely on default
projection value just yet, wait until that lands.

Add that the extentload event emitted by the HTMLLayerElement bubbles,
which I believe is normal.  Use this event to ensure that tests can
rely on the layer metadata being final before testing name change ability.

Add MapMLLayer.getName method to complement new setName.  Name being
the 'accessible name' of the layer, represented in the layer control
via the MapMLLayer._title value.

Add setTimeout to work around the evil createmap event -caused issues

Add test of HTMLLayerElement.label behaviour
@prushforth
Copy link
Member Author

Merging because I can see that the usually-reliable fire danger WMS is slow to load, causing these tests to fail. We should remove this WMS from our test suite, bake local resources into the tests instead.

@prushforth prushforth merged commit 2677ab5 into Maps4HTML:main Jun 28, 2023
@prushforth prushforth deleted the layer-name-change-clean branch October 3, 2024 18:40
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

Successfully merging this pull request may close these issues.

Can't change the label of a layer
1 participant