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

Display markers for signs #40

Merged
merged 43 commits into from
Jan 11, 2024
Merged

Display markers for signs #40

merged 43 commits into from
Jan 11, 2024

Conversation

neocturne
Copy link
Owner

@neocturne neocturne commented Nov 26, 2023

This is still work-in-progress. To implement:

  • Filtering - Currently all signs are displayed
  • Styling - Leaflet's default marker and popup styles are used
  • Formatting - Lots of formatting information is already processed by the generator, but the viewer does not use it yet. Whitespace is currently handled incorrectly.
  • Grouping - Multiple signs with the same X/Z coordinate may exist at different Y coordinates. They must be grouped to a single marker.
  • Sign URL - Include currently opened sign in URL

signal-2024-01-07-130857_002

Closes #35

@neocturne neocturne mentioned this pull request Nov 26, 2023
@neocturne neocturne force-pushed the sign-marker branch 7 times, most recently from 6a0f514 to b3dd9f5 Compare January 5, 2024 21:08
@neocturne neocturne force-pushed the sign-marker branch 3 times, most recently from af1b9cb to bd7ca88 Compare January 7, 2024 19:38
@neocturne neocturne marked this pull request as ready for review January 7, 2024 20:32
@neocturne neocturne force-pushed the sign-marker branch 5 times, most recently from 00cd59f to a22e4ea Compare January 8, 2024 01:44
The meta version should only change when the outputs must be regenerated
even if the inputs stay the same. This should never be the case for
mipmap tiles, so we separate the meta version from map/lightmap tiles.
The version-specific part is extracted as an enum ChunkInner.
Allow reusing the read/write logic without requiring control over the file
open.
Bincode can't deal with a number of serde's features that would be
desirable if we're using the same Serialize impls for generating JSON
data for the viewer.
Make mipmap-style recursive processing of tiles reusable.
Preparation for actually adding !Copy fields to BlockType.

Only the Copy parts are added to the processed data, avoiding .clone()
for the most part.
Allow to distinguish wall signs from freestanding or -hanging signs.
For consistency with other sign types. Signs will be shown on a separate
layer.
Still needs better styling. It might also be nice to include the currently
opened marker in the URL.
Allow zooming in far enough so neighboring signs don't overlap.
Allow sharing URLs that reference a marker.
Only consider sign support enabled when at least one pattern is
configured.
@neocturne neocturne merged commit 3ceb7ae into main Jan 11, 2024
25 checks passed
@neocturne neocturne deleted the sign-marker branch January 11, 2024 11:59
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.

Sign layer
1 participant