-
Notifications
You must be signed in to change notification settings - Fork 2
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
task/WG-83: Handle Overlapping Point Clouds #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Ran it locally and worked as advertised.
Note: to test against the Staging env, you will need to disable lines 41-66 to match this commit in feature/questionnaire
(until that branch gets merged):
da0f40b#diff-7bedcb7bd6c40fef89e5075610ff1cc53e7d0f64a3fb6f06632d56caa966f499
@@ -350,6 +350,15 @@ export class MapComponent implements OnInit, OnDestroy { | |||
let feat: LayerGroup; | |||
if (d.geometry.type === 'Polygon' && d.properties.style) { | |||
feat = L.geoJSON(d, { style: d.properties.style }); | |||
} else if (d.featureType() === 'point_cloud') { | |||
feat = L.geoJSON(d, { style: d.properties.style }); | |||
this.features.addLayer(feat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.features.addLayer(feat); |
This should be deleted.
as later on in the code we add it here
if (d.geometry.type === 'Point') {
markers.addLayer(feat);
} else {
this.features.addLayer(feat);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Just note one small change that is required to not add the polygon twice.
Overview:
Putting a point marker with the polygon/point cloud. This would make it be able to be seen if zoomed out and would allow users to select different overlapping point clouds. Adding those point markers to the marker cluster, as well.
PR Status:
Related Jira tickets:
Summary of Changes:
Testing Steps:
UI Photos:
New Point Cloud Markers
![Point_cloud_icons](https://private-user-images.githubusercontent.com/50084480/290243369-936ad8b0-d78e-459f-ac39-f32b4ab6dd4b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTYyNjYsIm5iZiI6MTczODkxNTk2NiwicGF0aCI6Ii81MDA4NDQ4MC8yOTAyNDMzNjktOTM2YWQ4YjAtZDc4ZS00NTlmLWFjMzktZjMyYjRhYjZkZDRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4MTI0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwNjEyNmQyOWQ5ZDJiMGMwYTBiOTZjZTBmYWIyYmMwMmZjMWIxNWE4MDlhY2UyNWJlOGZhNGNiNDFiODk2MjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2poSAeeMKojWYazKdSlQ5UqQnosISSg2nwTarL3Eoqc)
![cluster_marker2](https://private-user-images.githubusercontent.com/50084480/290243667-efe8bdc4-4e23-400d-b1b3-d8e50db512e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTYyNjYsIm5iZiI6MTczODkxNTk2NiwicGF0aCI6Ii81MDA4NDQ4MC8yOTAyNDM2NjctZWZlOGJkYzQtNGUyMy00MDBkLWIxYjMtZDhlNTBkYjUxMmUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4MTI0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4Y2E2MDc5ZTQ2YzA4NDhmNjU2ZjkwYjZlNTYyNjc4ZDI2ZDc4OGY0YWUzYjYwZjE3ZDcwMWVjMWExMWI5ODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sY0oSQYjlM3vsFbPFETu4XfuDOCJXekcl03o-wxSa1I)
![cluster_marker1](https://private-user-images.githubusercontent.com/50084480/290243702-97a43226-a668-4fa7-b3c2-6c23458daa2e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTYyNjYsIm5iZiI6MTczODkxNTk2NiwicGF0aCI6Ii81MDA4NDQ4MC8yOTAyNDM3MDItOTdhNDMyMjYtYTY2OC00ZmE3LWIzYzItNmMyMzQ1OGRhYTJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4MTI0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJmZTI5NTM2YjJiYjY1NzZhYmM1OGVlOGE4OTI2YzkzYTAxYTg0NGRjNzQyOTNkNWI3ZTI3ZWJkMjJjNzZjMGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YheKa5sTVhbuo6M9Yf9EapNo9Cj72Co9I9VKeBiC-uw)
Cluster markers with point-cloud assets included
Notes: