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

changing clusterMaxZoom parameter has no affect #2374

Closed
weareboxhead opened this issue Mar 31, 2016 · 2 comments
Closed

changing clusterMaxZoom parameter has no affect #2374

weareboxhead opened this issue Mar 31, 2016 · 2 comments
Assignees
Labels

Comments

@weareboxhead
Copy link

mapbox-gl-js version: 0.16.0

Steps to Trigger Behavior

Add a source and layer to a map using the cluster parameters e.g.

map.addSource(cluster-src', {
    type: "geojson",
    data: 'path/to/geojson/source/data',
    cluster: true,
    clusterMaxZoom: 4, // Changing this value seems to have no affect
    clusterRadius: 5
});

map.addLayer({
    "id": "cluster-layer",
    "type": "circle",
    "source": "cluster-src",
    "paint": {
        "circle-color": "#ff2255",
        "circle-radius": 16
    },
    "interactive": true
});

Expected Behavior

If I set a lower value for clusterMaxZoom I would expect the cluster circle to remain visible the further I zoom in rather than disappearing.

Actual Behavior

Changing the value doesn't seem to have an affect on when the layer disappears. For example the layer disappears at around zoom level 8 even if I've set it to '1'

@lucaswoj
Copy link
Contributor

cc @mourner

@mourner mourner self-assigned this Apr 1, 2016
@mourner mourner closed this as completed in 489b3f1 Apr 1, 2016
@mourner
Copy link
Member

mourner commented Apr 1, 2016

@weareboxhead should be fixed now, can you confirm? (and don't forget to update supercluster dependency).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants