Browse Source

Explicitly set coarse alias rather than using WOF layers

Who's on First will have more than just coarse data now!
pull/645/head
Julian Simioni 8 years ago
parent
commit
908100d9c5
No known key found for this signature in database
GPG Key ID: 6DAD08919FDBF563
  1. 4
      helper/type_mapping.js

4
helper/type_mapping.js

@ -60,7 +60,9 @@ var LAYERS_BY_SOURCE = {
* may have layers that mean the same thing but have a different name * may have layers that mean the same thing but have a different name
*/ */
var LAYER_ALIASES = { var LAYER_ALIASES = {
'coarse': LAYERS_BY_SOURCE.whosonfirst 'coarse': [ 'continent', 'country', 'dependency', 'macroregion', 'region',
'locality', 'localadmin', 'macrocounty', 'county', 'macrohood', 'borough',
'neighbourhood', 'microhood', 'disputed']
}; };
// create a list of all layers by combining each entry from LAYERS_BY_SOURCE // create a list of all layers by combining each entry from LAYERS_BY_SOURCE

Loading…
Cancel
Save