Skip to content

Focus the selected indoor level - #12605

Open
koharachan wants to merge 1 commit into
openstreetmap:developfrom
koharachan:codex/upstream-indoor-focus
Open

Focus the selected indoor level#12605
koharachan wants to merge 1 commit into
openstreetmap:developfrom
koharachan:codex/upstream-indoor-focus

Conversation

@koharachan

Copy link
Copy Markdown
Contributor

Summary

  • focus the selected indoor level or layer when the selection has level/layer information
  • dim other visible floors while keeping the selected feature, same-floor features, and containing building context visible
  • sort focused indoor area fills above other floors

Testing

  • npm run test:once -- test/spec/renderer/indoor_focus.js
  • npx eslint modules/renderer/map.js test/spec/renderer/indoor_focus.js
  • git diff --check

@matkoniecz

Copy link
Copy Markdown
Collaborator

focus the selected indoor level or layer when the selection has level/layer information

please, post screenshot of this in action

@koharachan

Copy link
Copy Markdown
Contributor Author
图片

@koharachan

Copy link
Copy Markdown
Contributor Author

Another saying is that this feature has been working on https://map.osm.asia/id for some time now.

@matkoniecz

Copy link
Copy Markdown
Collaborator

Is it actually working if other features are on the same level? Screenhot seems to show case where no other objects are undimmed

@koharachan

Copy link
Copy Markdown
Contributor Author

It works. I have the video.

@matkoniecz

Copy link
Copy Markdown
Collaborator

Can you share it then?

@koharachan

Copy link
Copy Markdown
Contributor Author
output_cpu_hevc.mp4

Yes, the file I just uploaded was too large. It took a lot of time to compress it.

@koharachan

Copy link
Copy Markdown
Contributor Author

This is at 21.43/24.79560/113.62701 in OSM.

@koharachan

koharachan commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

You can check the values here to see if it’s working properly.

@koharachan

Copy link
Copy Markdown
Contributor Author

My Microsoft Translate might not be very effective. If you can’t understand what I’m saying, I’ll try another translation method.

@matkoniecz

Copy link
Copy Markdown
Collaborator

I have not looked at code yet but from video it looks really great!

@tordans

tordans commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

It looks like we can test this at https://map.osm.asia/id/#map=21.43/24.79555/113.62698&locale=en&background=EsriWorldImagery with this setting:

image

A few quit observations:

@tordans

tordans commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Off topic: What are the conditions again for the branch preview in iD?

@koharachan

Copy link
Copy Markdown
Contributor Author

You’re right.But https://map.osm.asia/id/#map=21.43/24.79555/113.62698&locale=en&background=EsriWorldImagery&id=w1530574395 Maybe your card is stuck.
Look!
图片

These are things that need to be done.

  • we need some UI that explains what is going on. Like a info line at the top left of the map that says something like "Current focus is level 1;2;3;4;5;6

@koharachan

Copy link
Copy Markdown
Contributor Author

@koharachan

Copy link
Copy Markdown
Contributor Author

It seems like local storage not merged in?
It's in https://github.com/koharachan/BetteriD,It’s a complete implementation.
Maybe there’s a problem with my work. Let me check it.

@koharachan

Copy link
Copy Markdown
Contributor Author

But here’s how I think about it: If there’s a mountain road where all the lines are almost connected, and a tunnel connects these two sections, then the node-based approach might cause many unrelated elements to also become “lit up” (if I’m wrong, please correct me. Thank you.)

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