-
Notifications
You must be signed in to change notification settings - Fork 361
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
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) |
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.
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
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.
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.
Thanks for the PR! |
What's the status of this PR? |
This will fix #785
@martinRenou - Please review.