Comments (2)
A style configuration as shown below will throw thousands of console warnings from the merge.mjs module. This was resolved by wrapping each object in the cat
in style
, but this should be done in the framework.
"style": {
"default": {
"fillOpacity": 0.1,
"fillColor": "#ffffff",
"strokeColor": "#373737",
"strokeWidth": 0.001
},
"highlight": {
"strokeColor": "#f5c52c",
"strokeWidth": 3
},
"themes": {
"FIELD": {
"title": "FIELD",
"type": "categorized",
"field": "field",
"cat": {
"1": {
"fillColor": "#fef0d9",
"fillOpacity": 0.1
},
"2": {
"fillOpacity": 0.5,
"fillColor": "#fdd49e"
},
"3": {
"fillOpacity": 0.5,
"fillColor": "#fdbb84"
},
"4": {
"fillOpacity": 0.5,
"fillColor": "#fc8d59"
},
"5": {
"fillOpacity": 0.5,
"fillColor": "#ef6548"
},
"6": {
"fillOpacity": 0.5,
"fillColor": "#d7301f"
},
"7": {
"fillOpacity": 0.5,
"fillColor": "#990000"
}
}
}
}
from xyz.
Interesting issue. The merge util probably shouldn't warn if there if an item checked to be an object is an instanceof HTMLElement. The warning doesn't really add anything.
The huge amount of warnings makes me think whether the style should be merged for each feature on each render.
Which in turn validates the warning since we would not have thought about this unnecessary processing step before.
from xyz.
Related Issues (20)
- XSS in infotip content warning.
- User IndexedDB util for storing locale and layer HOT 1
- Object checksums for Locale and Layer
- Signed Object Store requests
- Declutter Label
- dropdown element input filter HOT 3
- Search input prematurely cleared on safari HOT 2
- Ability to delete own user account and [user] access logs. HOT 1
- geometry entry from API
- layer.zIndex and layer.style.zIndex
- entry.default and entry.defaults for type:defaults
- helpModal user config HOT 4
- Markdown parser HOT 1
- array input element [mapp.ui.elements.arrayInput()] HOT 1
- rangeInput min/max event HOT 1
- vector_layer and mvt_clone HOT 1
- _default view on mobile devices HOT 6
- Show popup for invalid inputs
- Add jsdocs information to readme HOT 3
- Requirements for searchbox filtering search function HOT 2
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 xyz.