
Map regions (near launch)
The soon-to-launch map regions, including countries, states, counties, and zip codes out of the box, and simple workflow to BYO topojson or vector tiles. Lots of work on making these big…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I got one let's see so for those that have seen this before I've been working on region maps and shout out to camel and Chris there for kind of offering some guidance and feedback on some of the early work that I've been doing there um but I just want to give you a show a quick update of kind of where we're at um so in general now um if you have region data uh and we have a little shortcut for region maps right now uh within your chart selectors uh you can see it paints or by default it picked countries uh and so it's painting the the country boundaries for all of our countries uh in our preil our built-ins so we have built-ins for
countries and states uh I've actually have state data so if I go ahead and set this up um and then pick where the mapping is uh we start to get region maps coming in uh so we have tool tips working now uh Maps also seem to kind of load a little faster I've I've been kind of in there tweaking things for a bit um and you basically just build out the mapping between the kind of the the the geojson features and the properties there and how it m apps to your data set that's what this all kind of is uh and how you want to color it and it kind of and it starts to come in um you can also we have this idea
of custom I've shown this before a little bit uh but we now support both geojson and Vector tile inputs so if I have a geojson a link to geojson data I can paste that in like before Ideo uh and and do basically the exact same thing uh because that is the same geojson format um and if I also I can show off Vector tiles as well so if I take a vector tile Source uh and within Vector tiles uh you can have different kind of layers in there and the same uh same property mappings that you would have before and also my data does not have good country data so I have to fake it uh so if I go ahead and give myself random
country data and then build out the same mapping uh you start to see the same thing uh so we basically have it working for geojson tile J uh Vector tile uh and kind of custom sources um and you can see what my random number generator gave us um Rob will it will it jump to your data if you're like scrolled around and searched things like that uh not yet but it is on my list of to-do um so boundaries with regions is kind of interesting like yep we currently have no way of uh saving where you're looking in the map in like the viz config and so that's something we're probably going to have to address to do this because if I give you country
data it's like where do I go uh think because it could be anywhere yeah um so we have to think about it uh I want to do like if you have it's like with some types of region data it makes sense to kind of get a boundary and automatically show that but with others it doesn't so it's kind of a hard problem but it is on my list of things to do I'm hoping to get this on internally uh soon so like early next week um so people can start playing with it and get feedback um but that's kind of where we're at cool do you um do you mind giving the quick like 5c the between geojson and Vector so geojson is basically a
giant Json format and this is this came up in the last demo because some of them can be tens or hundreds of megabytes and having to pull that in and consume it can be quite uh beefy for uh FR H process uh and Vector TI is a lot more Dynamic so it's kind of you give it a link and it kind of tells you that link kind of contains information about how to pull tiles and so then as the map Scrolls it will it will pull regions based on what you're looking at um so it's a lot more Dynamic smaller easier to work with um and that was Cam's main input was to they would like to use Vector tile on so ve Vector tiles
are more performant yes generally okay so for very very large like mapping data sets we could encourage folks to use vector and we support that cool it's nice to have both those options is that what cam camo was doing Rob they I think they heavily leveraged Vector tow yeah and so that's what they that was their feedback as they wanted to be able to continue to do that cool thank you it's awesome by the way super cool I know I get a secret I mean I get to see it before anybody else but still koses Rob didn't demo the full Dash for load but it's actually really impressive how quickly the maps all render when you have like four or five tiles let's see if
I can find it it's again remembering the the there's no bounding boxes for these right now so just going to pull random configurations but yeah like they all come in pretty quick uh it's pretty interesting that's insanely fast yeah it's I have I have a demo dashboard that's like 10 times slower than that with one map yeah they can be pretty quick and