Skip to content
Discussion options

You must be logged in to vote
// in source handler
if (sourceFeature.getTag("name").toString().equals("Some Major River")) {
  var line = Utils.createLineString(new double[] { /* ... */ };  // <- uses GeoUtils.JTS_FACTORY.createLineString
  var feat = features.geometry(this.name(), line);
  feat.maxzoom(6);
  var feat2 = features.line(this.name());
  feat2.minzoom(7);
} else {
  var feat = features.line(this.name());
}

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@wipfli
Comment options

Answer selected by adjourn
@adjourn
Comment options

@adjourn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants