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 handling for line type in vector layer #143

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

arjxn-py
Copy link
Contributor

Follow up on #141

jgis-color.mov

Line type should not be filled which was previously filled with default #F092DD color. This PR adds the handling to set transparent color for line type in Vector layer styling.

Copy link
Contributor

Binder 👈 Launch a Binder on branch arjxn-py/jupytergis/geojson-color

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks!

: '#F092DD'
: layerParameters.type === 'line'
? 'rgba(0, 0, 0, 0)'
: '#F092DD'
Copy link
Member

Choose a reason for hiding this comment

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

Should we really keep that #F092DD default?

I'm not sure I understand in which case this #F092DD value will be used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we really keep that #F092DD default?

I'm not sure I understand in which case this #F092DD value will be used

I kept it for just in case 😅. However the above conditional logic covers all existing types. I'm happy to remove it.

Copy link
Member

Choose a reason for hiding this comment

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

Cool :) Let's clean it up then :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@brichet brichet added the enhancement New feature or request label Sep 17, 2024
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks!

@martinRenou martinRenou merged commit c023a5c into geojupyter:main Sep 17, 2024
5 checks passed
@arjxn-py arjxn-py deleted the geojson-color branch September 17, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants