Skip to content

Fix for Geodata style_callback #786

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

sackh
Copy link
Contributor

@sackh sackh commented Feb 4, 2021

This will fix #785
@martinRenou - Please review.

@deeplook
Copy link
Contributor

deeplook commented Feb 4, 2021

Could there also be a working minimal example like in #785?

@@ -1261,10 +1261,16 @@ class GeoData(GeoJSON):
def __init__(self, **kwargs):
super(GeoData, self).__init__(**kwargs)
self.data = self._get_data()
self.data = GeoJSON._get_data(self)
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to call self.data = GeoJSON._get_data(self) just after self.data = self._get_data() ? You overwrites its value making self._get_data() useless

Copy link
Contributor Author

@sackh sackh Jun 9, 2021

Choose a reason for hiding this comment

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

self._get_data() just converting geodata frame to json and actual logic of style and style_callback is already implemented in GeoJSON._get_data hence reusing that. We can remove self._get_data() if required.

@martinRenou
Copy link
Member

Thanks for the PR!

@deeplook
Copy link
Contributor

What's the status of this PR?

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.

Unable to use GeoData style_callback
3 participants