This commit is contained in:
parent
bf4ba27381
commit
524a71e391
@ -1,6 +1,6 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const mkdirp = require('mkdirp');
|
||||
const {mkdirp} = require('mkdirp');
|
||||
const sass = require('node-sass');
|
||||
|
||||
const nodeEnv = process.env.NODE_ENV;
|
||||
|
@ -53,7 +53,8 @@ const query_flight = (q) => axios.get('/api/flight/'+q).then(res=>res.data)
|
||||
|
||||
const is_restauration_type = e => ["restaurant", "cafe", "pub", "bar", "fast_food", "food_court"].indexOf(e.type)!=-1;
|
||||
|
||||
const is_attraction_type = e => ["tourism", "leisure", "place", "amenity", "highway"].indexOf(e.category)!=-1;
|
||||
const is_attraction_type = e => (["tourism", "leisure", "place", "amenity", "highway", "historic", "natural", "waterway"].indexOf(e.category)!=-1 ||
|
||||
["place_of_worship", "national_park", "nature_reserve", "protected_area"].indexOf(e.type!=-1));
|
||||
|
||||
const icon_type = (item)=>{
|
||||
let t = item.type
|
||||
|
Loading…
x
Reference in New Issue
Block a user