Skip to content
Discussion options

You must be logged in to vote

Figured it out on second (or third) round, dumb mistake as they usually are. Cause and fix in last comment:

if (sf.hasTag("barrier", "lift_gate")) { // some feature that has >15 zoom level
  minZoom = 16;
}

// - if minZoom <=15, layer will be "poi15"
// - if >15, layer will be either "poi16", "poi17", etc
String layer = Utils.getLayerName("poi", minZoom);

var feat = features
  .point(layer)
  .setZoomRange(minZoom, 15); // <- since minZoom was 16, this feature was culled, fix: Math.min(minZoom, 15)

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@adjourn
Comment options

@msbarry
Comment options

@adjourn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by adjourn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants