At Holidu, we have our own definition of vacation areas in our Postgres database, using polygons, and they are updated quite frequently.
So far I have managed to generate the .toposjon file, upload it to our files folders and use it for one model. But this approach is quite manual, and I would like to find a better way to do the following:
use the map_layer from a URL in our drive or git repository that’s not public
according to help documents, the map layer can be a file or a URL. Given that our areas change frequently, I would like to have the URL option as I will automate this. But when I tried to use a URL from internet as in the example here, it didn’t work. Do I need to change anything in the settings for Looker to access external URLs?
use the same map_layer in each model
we have several models where this map_layer could be applied and instead of needing to add it in each model, I would like it to be available for the whole project. We are not using manifest files yet in our instance. Would this be an option? If so how?
@Dawid I have seen you are quite active on this topic, so I hope it’s ok for me to tag you here.
Thanks a lot @Dawid very useful the trick about creating one model specific. I wish we could do this from manifest somehow, but I have not informed myself quite well on Manifest.
Actually, I think the models make sense-ish. With models you can further split the map layers if necessary. You could have one huge model and then other models specific to continents, countries, or custom-made. For logical modelling it wouldn’t matter.
For physical modelling, it would give you a lot more clarity in the structure of folders and files and make it easier to find things.
Manifest is just a file that contains things that do not fit anywhere else and are not strictly coding blocks, like map_layer is.
Taking advantage of the post made by Luciana Padua, I would like to share a question with you. I’m starting my walk in the looker so I don’t have much knowledge yet.
I’m making a dashboard using a map layer in the Developer module. I managed to get it to work. But when I go to validate the data to commit, Looker is returning the following error message:
No map layer named “regions” is defined. Must be one of “countries”, “uk_postcode_areas”, “us_counties_fips”, “us_states”, “us_zipcode_tabulation_areas”> foto_cle.view:253 FOTO_CLE_DASHBOARD:foto_cle
Sorry for the spelling errors. I don’t speak English well and I’m using Google translate to write this message.
It’s perfectly okay to start new thread even if your question touches on the smiliar topic
As for your question, can you show us the code of the dimension from the line that throws errors. As you can see “regions” is not a correct map_layer_name to use in a dimension. There’s no such map built-in in Looker, unless you created it yourself.
The only available options out of the box are:
countries
uk_postcode_areas
us_states
us_zipcode_tabulation_areas
us_counties_fips
Which means your dimension must have one of these values in map_layer_name parameter or your custom map must be defined in a model of your view