using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.App.Request
{
    public class VectorTileSearchModel
    {
        public void Init()
        {
            if (string.IsNullOrEmpty(filter)) filter = " 1=1";
            if (string.IsNullOrEmpty(source_layer)) source_layer = table;
        }

        public int x { get; set; }
        public int y { get; set; }
        public int z { get; set; }

        public string table { get; set; }

        public string source_layer { get; set; }

        public string field { get; set; }

        public string filter { get; set; }
    }
}
