Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

fix: labeling hidden by marker symbol #238

Merged
merged 4 commits into from
Jun 3, 2022

Conversation

nourbalaha
Copy link
Contributor

@nourbalaha nourbalaha commented Jun 2, 2022

Overview

In this PR I fixed the bug where the label is hidden behind the marker image
this fixes reearth/reearth-visualizer#207 and reearth/reearth-visualizer#184 reearth-web

What I've done

I modified the pixelOffset hook inside src/components/molecules/Visualizer/Engine/Cesium/Marker/index.tsx
and updated the equations for x and y with taking imageSize(imageScale) in condsideration.

How I tested

Manually using google chrome.

Screenshot

image

@netlify
Copy link

netlify bot commented Jun 2, 2022

Deploy Preview for reearth-web ready!

Name Link
🔨 Latest commit 6f559ea
🔍 Latest deploy log https://app.netlify.com/sites/reearth-web/deploys/629994bb44f5960009817a18
😎 Deploy Preview https://deploy-preview-238--reearth-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Jun 2, 2022

Codecov Report

Merging #238 (6f559ea) into main (723486d) will increase coverage by 0.03%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #238      +/-   ##
==========================================
+ Coverage   51.72%   51.75%   +0.03%     
==========================================
  Files          58       58              
  Lines        1162     1165       +3     
  Branches      184      184              
==========================================
+ Hits          601      603       +2     
- Misses        497      498       +1     
  Partials       64       64              
Impacted Files Coverage Δ
src/state/index.ts 77.77% <66.66%> (-1.02%) ⬇️

@nourbalaha nourbalaha changed the title fix: labeling hidden by marker symbol #207 fix: labeling hidden by marker symbol Jun 2, 2022
Copy link
Member

@rot1024 rot1024 left a comment

Choose a reason for hiding this comment

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

Thank you for your first PR!

….tsx

Co-authored-by: rot1024 <aayhrot@gmail.com>
@nourbalaha nourbalaha self-assigned this Jun 2, 2022
@nourbalaha nourbalaha added the bug Something isn't working label Jun 2, 2022
@nourbalaha nourbalaha merged commit 99c378d into main Jun 3, 2022
@nourbalaha nourbalaha deleted the feature/fix-labeling-hidden-by-marker branch June 3, 2022 05:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

labeling hidden by marker symbol
2 participants