Browse Source

Use layer instead of _type field to determine layer

pull/407/head
Julian Simioni 9 years ago
parent
commit
692b6da17d
  1. 6
      helper/geojsonify.js

6
helper/geojsonify.js

@ -28,12 +28,8 @@ function lookupSource(src) {
return src.source;
}
/*
* Use the type to layer mapping, except for Geonames, where having a full
* Elasticsearch document source allows a more specific layer name to be chosen
*/
function lookupLayer(src) {
return src._type;
return src.layer;
}
function geojsonifyPlaces( docs ){

Loading…
Cancel
Save