The problem
For my new viz, I needed to be able to zoom in into a city depending of a selection. But if I selected let say Paris, the map shows automatically a broader map
But what I wanted is an automatic zoom in, I want to be able to see the name of the streets around the location, without the users having to zoom in.
How to do it ?
My solution consists on the sheet serving for the city selection, implemented two parameters actions, one retrieving the longitude and the other the latitude of the location called parameter longitude and parameter latitude.Then I create a geo point, using the MAKEPOINT function :
MAKEPOINT([latitude Parameter]-0.001,[longitude Parameter]), you can play with the difference to zoom in or out depending of your use case.
I just need to add my locations in a map and this "buffer" point into a map dual axis. By adding this buffer point into my view I am forcing Tableau to zoom in.
map with the buffer point in red.
I just need now to render the buffer point transparent, so the users doesn't see it.
The solution is not optimal because it is not centered around the location.. but at least we can wait until the next 2020 Tableau release !