Skip to content

Commit

Permalink
Merge pull request #397 from tangrams/centroid-label-v1
Browse files Browse the repository at this point in the history
Fix #377
  • Loading branch information
bcamper authored Aug 31, 2016
2 parents 806f921 + e5dbc63 commit cb69f6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/scene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ layers:
# interactive: true

# labels:
# filter: { label_placement: yes }
# filter: { label_placement: true }
# draw:
# text:
# text_source: schoolDistrict
Expand Down
2 changes: 1 addition & 1 deletion src/sources/geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class GeoJSONSource extends NetworkSource {
// Avoids redundant label placement for each generated tile at higher zoom levels
if (this.config.generate_label_centroids){
let features_centroid = [];
let centroid_properties = {"label_placement" : "yes"};
let centroid_properties = {"label_placement" : true};

features.forEach(feature => {
let coordinates, centroid_feature;
Expand Down

0 comments on commit cb69f6f

Please sign in to comment.