Comments (5)
from smk.
i also noticed this in the site i've been working on with uploaded JSON. if you play around with the color panels on the data upload screen those black symbols will change to the colors:
it'd be best to not include them with the custom marker.
from smk.
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.
from smk.
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.
from smk.
This has been fixed, the translink app shows an example:
(Use https://qqnluaq.github.io/smk/
in URL if above doesn't work)
Toggle the legend button and you will see various legend icons on the layer items.
from smk.
Related Issues (20)
- Enhancement idea: Enable searchability of an embedded SMK map
- "Uber Search" or "Federated Search"
- "Get Directions" link on an identified feature HOT 2
- cluster coverages on by default HOT 4
- showCoverageOnHover option is not respected
- Allow configuration of showCoverageOnHover without clusterStyle
- It's Been a While Since This Repository has Been Updated
- Create Bespoke tool demo HOT 1
- Improve documentation for the Bespoke tool HOT 1
- Fix vulnerabilities identified by npm audit
- Geomark tool conflicts with the Identify tool HOT 1
- Loaded geomarks are all checked when returning to panel HOT 1
- UI events can be handled unexpectedly by multiple tools
- Investigate improved method of modularization HOT 1
- Remove geomark tool "Load File" functionality HOT 1
- It's Been a While Since This Repository has Been Updated HOT 1
- Support conditional styling based on feature attributes
- integrate with the Geomark web service HOT 3
- best way to link to a different URL? HOT 2
- Configure search bar to query layer attribute values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smk.