No Map Layer named LookML Warning

LucianaPadua
Participant II

Hi, 

I have defined a map_layer_name following all these steps

My map works perfectly in development mode and I can see my data plotted as I would expect it. 

a9ebe36e-eb71-4b68-8c5d-08f2758ae25c.png

However, when Validating LookML it says that my map layer is not defined 

I have tried exiting the developer mode and developing again, using another browser I have never used for developing, changing the name of the map layer and still no success. Any idea why this could be happening? 

How do I bypass a warning if it’s actually working? 

thanks!

0 5 212
5 REPLIES 5

leobardor
Participant V

Hi Luciana!

Could you share the map_layer definition? Perhaps one parameter is missing

map_layer: identifier {
extents_json_url: "string"
feature_key: "string"
file: "/file_path/file_name.json" # or use the url subparameter
format: topojson | vector_tile_region
label: "string"
max_zoom_level: number
min_zoom_level: number
projection: airy # or one of many other choices
property_key: "string"
property_label_key: "string"
url: "string" # or use the file subparameter
}

Maps parameters

fc75a851-a648-4485-b0e8-62d10397f086.png

Hope it helps!

Best,

Leo

LucianaPadua
Participant II

Hi Leo, 

thanks for answering. 

From the guidelines I interpreted that all the default values would map my file, so I have not configured any extra ones. I have this at the moment and it’s still giving errors. 

53dc9477-1272-467d-b870-66d14df7729b.png

And as said, it’s working when I do an explore with it.

Any ideas? 

thanks!!!

LucianaPadua
Participant II

I discovered the mistake!!! 

the error was not coming from the map_layer, bu the map layer not being defined in every single model we use the view. We have many views that we join all over and therefore the map_layer needs to be declared in each of those models so that it can be taken. 

I wish this could be done from the manifest, but apparently is not possible.

leobardor
Participant V

Hi Luciana!

I agree. There is a post of Daniel Mintz ( A Hero without a cape haha) which covers one example using manifest file to reuse a json variable and use it in map layers, perhaps it will help :

https://community.looker.com/dashboards-looks-7/adding-common-map-layers-to-your-instance-14308

Best,

Leo

LucianaPadua
Participant II

Thanks Leo, I came across that post before, but I didn’t want to use a public tool to access the maps as the definition of our focus regions is strategical information. 

But I will have a look. 

Thanks for the help! 

Luciana

Top Labels in this Space
Top Solution Authors