-
Notifications
You must be signed in to change notification settings - Fork 8
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
Extra black legend icon for points #51
Comments
This is a consequence of the code that does the rendering of the legend having no idea what sort of geometry the layer contains. The marker is for point features, but since the layer might contain lines or polygons too, the style chip for borders and fills is included too. All vector data is encoded as geojson, and so each feature can be a different type of geometry. There's no assumption of uniformity. One way to handle this is have the code determine what types of features are present. Another way to is have style information separated for points, lines, and polygons. So there would be one style config for 0-D features, another for 1-D, and another for 2-D. If the style information is missing for a type of feature, then the feature (and legend) are just not rendered. |
Did receive some feedback that the Legend was too deep (too many clicks to view it). For that site, I suggested including static legend information in the About page. |
This has been fixed, the translink app shows an example: (Use Toggle the legend button and you will see various legend icons on the layer items. |
Uploaded a KML file that had 2 styles. It was uploaded and parsed correctly, and added to an app. If you view the legend, you see a proceeding black box before the icon is displayed.
It's the classic BC Parks KML file used elsewhere in testing.
The text was updated successfully, but these errors were encountered: