Skip to content

Commit

Permalink
Remove hack for issue that is now fixed.
Browse files Browse the repository at this point in the history
Stringifying was to get around this issue:
mapbox/mapbox-gl-js#2434

Removing since this is now resolved.
  • Loading branch information
sleepycat committed Jul 19, 2016
1 parent d675ef4 commit c6b919a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/javascripts/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
let locationToFeature = (location) => {
location["marker-symbol"] = "marker"
location.title = location.organizations.reduce((prev, curr) => { return prev === "" ? prev + curr.name : prev + " & " + curr.name}, "")
//XXX: This is a workaround for
//https://github.com/mapbox/mapbox-gl-js/issues/2434
location.organizations = JSON.stringify(location.organizations)
location.organizations = location.organizations
return {
"type": "Feature",
"properties": location,
Expand Down

0 comments on commit c6b919a

Please sign in to comment.