
Mapping GeoJSON data directly from fields
A new option for bringing map data into Omni. We're now able to read from GeoJSON in the result set to dynamically map row by row.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Yo, I was playing with something today. Wanted to show you um get thoughts on it. Um it's probably not too far from completion, but I do want to think about some things here. Um so, if I have a data set that has uh gojson in it, uh we get the request every once in a while to be able to use this.
Uh so I've been playing with that today. Uh so if I take this and contrive some data set from it because I don't really have good mappings here. But uh do that. Let's grab all the counties. So what I did was just basically get all of count all of the counties by name. So, Washington, there's 31 of them.
Uh, and then I go to maps. I've been playing in here. So, we typically have region maps. Uh, you have typical custom. What I did was I split this or I changed this. Uh, so no, it no longer says um I guess region type. It says like the shape source. Uh so it's either external URL which we've had before or you can now select a giojson field.
And if you do that uh you kind of get rid of a lot of options but you can just say what are where are what field are the shapes? What field do you want to color by? Uh and oop that's not it. If you do that it kind of works. Um so and then maybe I don't want this shape in the tool tip.
Uh, kind of neat. So, I'm basically consuming, you know, gojson out of a database and rendering that. I need to probably fix positioning there. Um, a lot of stuff seems to work. So, if I want to like click this and filter on the name, you can see all the Lincoln counties. Um, pretty neat. Um, and it worked pretty easily.
Um, but I guess mostly what I'm wondering here is if you have any input on how I did this. Uh, so previously we had like these thing. I don't remember what this used to be called. It was something else. Probably region type. Uh, but shape source sounds better. Like where am I getting my shapes? Either from a URL or from a field.
Um, and basically if you use URLs, you need to tell us where it is and give us all kinds of other properties. But if you're just using a field map, um, we can just go down the result set and say this is the shape and this is the color and build a collection from that. Uh, so wanted to put it out there.
Um, something I've been tinkering with today. Uh that end. Let me know what you think.