Drawing filters for circle layers


#1

Hello, I’m using a Geomap gl visualization with a circle layer, and when I try to use the Drawing filters to select an area the filter doesn’t work, Is it because this filter is not supported by circle layers? or maybe, is there a way to make it work?


#2

Actually is very simple, in the layer properties you have to include the location, for ElasticSearch a geopoint field and for SQL providers just create the location property with the location fields provided, [lon, lat], like this:

"properties": { // for ES
    "location": "geopoint_field"
}
"properties": { // for SQL
    "location": ["lon", "lat"]
}

#3

@emoya, I Tried an it works good, thanks for your help :blush: