-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
[FEATURE] Replace the polylabel dependency with an own implementation #1746
Comments
i noticed this while working on #1750 and added a comment |
Maybe better to be inspired rather than straight-up porting, perhaps a bit touchy since it's a commercial company, and porting counts as redistribution from a legal point of view. In their licensing terms:
https://github.com/mapbox/mapbox-gl-js?tab=License-1-ov-file#readme
https://www.mapbox.com/legal/tos/ Porting would be a violation of the TOS, and even if it weren't, only dependencies are managed automatically by flutter (bundling the licenses with the binary), so it could be a bit cumbersome 😅 I think it's quite a bit different to port things from Mapbox than it is from, say, Leaflet. |
(It is possible to use |
Ah, thanks, didn't know! If we could automate that it would certainly simplify things for the users of |
Good point, in that case we should see that as an encouragement to remove the dependency to the polylabel package anyways. |
Maybe a late comment on TOS problems mentioned above but MapBox has published their The license https://github.com/mapbox/polylabel/blob/master/LICENSE should allow any kind of ports (however this is not a legally verified comment...) as long as license text is provided in all copies. This is the JavaScript file that covers the whole It has a dependency to a very simple TinyQueue implementation (with a very permissive license too): Instead of that it's possible to use There's also an another port of |
What do you want implemented?
The current integration of polylabel is not very well performance optimized. By implementing our own port of polylabel, we can:
What other alternatives are available?
No response
Can you provide any other information?
Current usage of the
polylabel
package:Severity
Minimum: Not required for my use
The text was updated successfully, but these errors were encountered: