Skip to content
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

Declare the hexagon colors in the cluster style #212

Open
ebocher opened this issue Aug 29, 2017 · 0 comments
Open

Declare the hexagon colors in the cluster style #212

ebocher opened this issue Aug 29, 2017 · 0 comments
Assignees
Projects
Milestone

Comments

@ebocher
Copy link
Collaborator

ebocher commented Aug 29, 2017

The color of the clustered hexagons must be managed by a css.

L.geoJSON.OnoMap = function (url) {
    return new GeoJSONCluster(null, {  wfs_url : url,     
    style: function (geoJsonFeature) {
          var count = geoJsonFeature.properties.measure_count;
          return { stroke : true,
                  interactive: false,
                  weight: 0.4,
                  color: "#ffffff",
                  bubblingMouseEvents: false,
                  fillOpacity: 0.6,
                  fillColor: count < 100 ? "rgb(220, 220, 220)" :
                  count < 1000 ? "rgb(189, 189, 189)" : "rgb(99, 99, 99)"}
      }});
@Picaut Picaut modified the milestones: 1.1.x, 1.0.x Aug 29, 2017
@Picaut Picaut added this to TODO in Release 1.x Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants