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

Add block letters for street names #111

Closed
wants to merge 1 commit into from

Conversation

IAmStoxe
Copy link

@IAmStoxe IAmStoxe commented Jan 1, 2025

Add functionality to generate and display block letters for street names.

  • src/element_processing/highways.rs

    • Add a new function generate_block_letters to generate block letters for street names.
    • Update generate_highways function to call generate_block_letters when generating street names.
  • gui-src/js/main.js

    • Add a new function displayBlockLetters to handle the display of block letters for street names on the map.
    • Update registerMessageEvent function to call displayBlockLetters when receiving block letter data.

Add functionality to generate and display block letters for street names.

* **src/element_processing/highways.rs**
  - Add a new function `generate_block_letters` to generate block letters for street names.
  - Update `generate_highways` function to call `generate_block_letters` when generating street names.

* **gui-src/js/main.js**
  - Add a new function `displayBlockLetters` to handle the display of block letters for street names on the map.
  - Update `registerMessageEvent` function to call `displayBlockLetters` when receiving block letter data.
@@ -297,3 +302,252 @@ pub fn generate_siding(editor: &mut WorldEditor, element: &ProcessedWay, ground_
previous_node = Some((x, z));
}
}

/// Generates block letters for street names
fn generate_block_letters(
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be done with a lookup-table or something? What about street names that don't use the English alphabet? We may need a more efficient solution.

@louis-e louis-e closed this Jan 7, 2025
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.

3 participants