How to use FLUX to support Grafana Trackmap Plugin

Now sure whether it’s the right place to ask.
Currently I have the following query to fetch latitude and longitude to show in Grafana map.
Currently there are two plugins, it support for ‘Track Map’ plugin but not display anything in ‘TrackMap’ plugin. Not sure what’s missing from the query.

  import "math"
from(bucket: "kafka_signals/oneDay")

|> range(start: -6h)
|> filter(fn: ® =>
r._measurement == “signal” and“000015” and
(r[“”] == “TCU_GPS_Data_Latitude” or r[“”] == “TCU_GPS_Data_Longitude”))
|> pivot(
columnKey: [“”],
valueColumn: “_value”)
|> filter(fn: ® =>
|> rename(columns: {TCU_GPS_Data_Latitude: “latitude”})
|> rename(columns: {TCU_GPS_Data_Longitude: “longitude”})
|> filter(fn: ® => r.longitude != math.NaN() and r.latitude != math.NaN())

@keigo840413 A few questions:

  1. What version of InfluxDB are you working with?
  2. What is the schema of your data? Can you provide a sample?
  3. What are the requirements of the Trackmap plugin?