Tableau Map Layers - an in-depth TUTORIAL on using Map Layers to show Points, Lines and Polygons
Vložit
- čas přidán 11. 07. 2024
- Learn how to use map layers in Tableau to create a 3-layer map with polygons, lines and points and also how to use the different map layer options.
💾 Data sources
Link to the Mauritius spatial data if you want to follow along: bit.ly/32AAlIt
📊 Visualisations
Completed workbook on Tableau Public: tabsoft.co/32SqmOJ
📌 Chapters
00:00 - Start
00:28 - Dual Axis Maps (prior to map layers)
00:57 - Map Layers - 2020.4
01:23 - Map Layers 2021.4
01:39 - Add first map layer - Admin Areas (polygons)
03:10 - Add second map layer - Roads (lines)
04:12 - Add third map layer - Education (points)
05:45 - Disable selection on map
06:20 - Rename map layers
06:46 - Reorder map layers
07:07 - Show / Hide map layers
07:53 - Remove map layers
08:07 - Add to zoom extent
08:49 - Map formatting
09:31 - Interactions between map layers
🔗 Social Media Links
Blog: datavis.blog ➝ Tableau tips and tutorials
Twitter: / datavisblog
Portfolio: public.tableau.com/app/profil...
LinkedIn: / marcreiduk
▶ Subscribe for the latest tips and tutorials: bit.ly/TableauTutorials
Thank you Marc, You made my day!
HA! Thank you for explaining this in the context of the old dual axis map approach.
I’m rebuilding an old dashboard designed back in Tableau 6.0 and was about to refresh my knowhow on dual axis maps. Map layers and your video make things A LOT easier!
Great to hear, James!
Excellent presentation thank you very much. Struggled a bit transitioning from my 2019.1. This helped loads!!
Great to hear. Glad it was useful.
Beautifully Explained. Behtreen :) Keep it up so we can learn more. Never got this extent of explanation :)
Thanks! Glad to hear it was useful
Thank you! My group project was having trouble combining latitude and longitude data with spatial data. It would cause an error with the dual axys method.
This one is the perfect method for what we were looking for!
Glad it helped!
Excellent!
Thanks, Sidney!
Thanks a lot ! This is really helpful
Thanks!
Hi Marc,
Great content. I noticed in the video when you are about to add the geometry field from roads and streets data, you point out the orange line on left and you mention how it has to do with blending and that’s not what we are doing here since we are layering. But I am using my own data set and doing a similar exercise but whenever I add a centroid from a new data set as a new layer it gives me an error that a relationship needs to be created between the data sets. Is there something I am missing? Since you mentioned you did no blending in the video
Thanks, Greg. Are you definitely bringing in a geospatial field and adding it as a new layer? If you drag in a non-geo field to the view from a secondary data source, Tableau will try to blend. If you're still having issues, I'd recommend posting the workbook on the Tableau forums so someone can take a closer look with examples. community.tableau.com/s/explore-forums
Hi Marc,
Great content. Really helpful. I want to know one thing that can I set this Layer option was parameter in my dashboard? Like when I represent my dashboard, if I choose layer 1 it will show layer 1 and so on. I don't want that option on the map instead of that I want it as parameter. is it possible ?
Thanks. One way to do that is to use a parameter in a calculation and return your spatial object based on the parameter selection. For example: IF p.Select_Layer = 1 THEN [My_Spatial_Object] ELSE NULL END. And drag that calc onto the view as a map layer. It will then only show when the parameter is set to a value of 1.
Hi Marc, are these features only available in the 2021 version of Tableau? I have the 2019 version installed on my computer.
Hi Richard - Map Layers was released in 2020.4. (datavis.blog/2020/12/02/tableau-map-layers/). You can download Tableau Public for free and get started with Map Layers - public.tableau.com/en-us/s/download
Hi Marc,
Can you please elaborate on which files to download from the link? I'm not able to download the files. Also, it would be nice if you elaborated on spatial files please
Admin boundaries (polygons shape file) : data.humdata.org/dataset/cod-ab-mus
Educations facilities (Points shape file): data.humdata.org/dataset/hotosm_mus_education_facilities
Road (lines shape file): data.humdata.org/dataset/hotosm_mus_roads
Spatial files contain spatial data (polygons, lines, points). www.ordnancesurvey.co.uk/business-government/our-partners/what-is-spatial-data
Does that also work with csv files or is it only limited to spatial files?
If you have latitude and longitude values in your CSV file, you can turn them into spatial objects using the MakePoint() spatial function and then add those points to a map layer. You could also create lines from those points using MakeLine() and add those as a map layer.
@@MarcReid Thank you sir!!! 👍👍👍Wow this is awesome!! 😍
Thanks!
Hi, I am able to see the layer control icon and it is not showing up under map options as well. Do I need to update? how do I get this feature??
Hi - the layer control was introduced in 2021.2. See this video for more info: czcams.com/video/g6Ikidt8taQ/video.html
How can we add a filter for only one of the layers of the map? For example, I want to color all the province of a country based on sum(value) but then make a shape for the provinces that are bigger than 5 (for example).
something like: IF value>5 THEN [GEOGRAPHY] ELSE NULL END.
If that doesn't work / not what you meant, then I'd recommend posting on the Tableau forums with an example workbook.
@@MarcReid yes sir, that worked. Thank you!
The disable selection tool isn't available in the Tableau 2023.1.0. How can I find it? Thank you!
Please can you confirm what you mean? thanks.
After you added the third layer on the map, you went on to disable selection on the map (time: 05:45). I created a dual-axis map on my worksheet in Tableau, but the layer of the map I imported from a spatial data (shapefile) is still enabling selection. How do I disable the selection? The version of the tableau I use is 2023.1.0. Thank you. @@MarcReid
@@MarcReid After you added the third layer on the map, you went on to disable selection on the map (time: 05:45). I created a dual-axis map on my worksheet in Tableau, but the layer of the map I imported from a spatial data (shapefile) is still enabling selection. How do I disable the selection? The version of the tableau I use is 2023.1.0. Thank you.
Thanks for clarifying. at this time stamp (6:06) czcams.com/video/ppo3d9HFMrc/video.htmlsi=NZ84EuD6KkbzhwJH&t=362 I select "Disable selection" from the drop down menu. Are you seeing that option?
@@MarcReid Thank you so much for your response, but the drop down option is not available in my Tableau version which is 2023.1.0.
How else can I go about it? Thank you.
Great content Mark! Thanks. If I have a question that related to a project that I am working on, what is the best way to contact you if you don't mind. thanks
I'd recommend posting on the Tableau forums, Ahmed. You're welcome to tag me but most likely by the time I see it someone will have already answered. community.tableau.com/s/explore-forums