Hi @Dawid , I think this article may answer your question?
If not, I’m happy to run through an example.
For my example, I took one of our sample topojson files, specifically the Irish counties file.
It starts off with several [X, Y] coordinates, followed by several entries which look like this:
{
"arcs":[[-37,74,-11,75,76,77,78]],
"type":"Polygon",
"properties":
{
"ISO":"IRL",
"NAME_0":"Ireland",
"ID_1":1333,
"NAME_1":"Leitrim",
"VARNAME_1":"Liatroim",
"HASC_1":"IE.LM",
"TYPE_1":"Administrative County",
"ENGTYPE_1":"County"
}
}
We need to pick one of the “properties” to act as our “property_key”. You should pick whichever one matches your data.
My sample data has Irish county names in English, like this:
This matches the values I see in the “NAME_1” property. (For this specific entry, it matches the 3rd row, Leitrim.) So, I will enter “NAME_1” as the property_key. In my example, I did this directly in the visualization settings (while pasting the link to the topojson in the “TopoJSON URL” field):
Alternatively, I could have also uploaded the topojson file to my LookML, in which case I would define a map_layer in the LookML that might look something like this:
map_layer: irish_counties {
file: "ireland-counties.json"
property_key: "NAME_1"
}
Let me know if that addresses your question!