Comments (4)
was previously implemented as:
from smk.
In version 1.0.5, clusterOption.showCoverageOnHover is false by default. I reviewed our code and we set a default value of false in smk.js (https://github.com/bcgov/smk/blame/375e57ec506dbf097a587c443725d032797b54b0/src/smk.js#L729).
from smk.
In further testing, I do see that a vector layer's clustering shows coverage on hover when no clusterOption.showCoverageOnHover value is set in smk-config.json. I'll reopen this while I investigate further.
from smk.
I have a better understanding of this now. My observation of coverage on hover in my last comment was affected by local changes I was making (for bcgov/smk-cli#63) that I didn't think would be related but were a cause.
We set viewer.clusterOption.showCoverageOnHover to false by default in smk.js when we are setting up the structure of the configuration in setupGlobalSMK(). In layer-vector-leaflet.js, in the clusterOptions() function, we then create and populate cluster options. Then when we consume these options in marker-cluster-1.0.6.js, if we haven't specifically set a value, a default of 'true' is used.
layer-vector-leaflet.js was amended to set a value in the options based on the value of showCoverageOnHover, either from the 'viewer' section of smk-config.json, or using the default 'false' set in smk.js. This was fixed in #104, and I've confirmed in local testing that showCoverageOnHover is false unless specifically set to true in smk-config.json in the 'viewer' section.
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
- 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
- It's Been a While Since This Repository has Been Updated
- 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.