# quick custom topojson shape on a map

**URL:** <https://discuss.google.dev/t/quick-custom-topojson-shape-on-a-map/115170>\
**Category:** Looker\
**Tags:** lookml, visualizations\
**Created:** [June 29, 2022, 3:19pm UTC](https://discuss.google.dev/t/quick-custom-topojson-shape-on-a-map/115170 "2022-06-29T15:19:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdemontalivet](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/gdemontalivet/32/193668_2.png) [@gdemontalivet](https://discuss.google.dev/u/gdemontalivet)\
**Post date:** [June 29, 2022, 3:19pm UTC](https://discuss.google.dev/t/quick-custom-topojson-shape-on-a-map/115170/1 "2022-06-29T15:19:33Z")

</div>

Hi, I struggled to find an easy explanation on how I can easily display my own shapes on a map and then match data with it and display them on a looker viz. So to remember how I did it, I amgoing to document it here. This is detailing the 2 posts from [here](https://community.looker.com/technical-tips-tricks-1021/converting-shapefiles-to-topojson-30011) and [here](https://community.looker.com/dashboards-looks-7/custom-topojson-maps-beyond-world-maps-3689) to create the shape and [here](https://help.looker.com/hc/en-us/articles/360001288168) about how to put it in looker. I am just putting them together to explain more in details.

1. First thing is to create the shape on the map. For this, I used this tool [http://geojson.io/](http://geojson.io/)  
just draw the shapes or dots you need on a map:

2. then the important step is to attach a unique code to each shape so that you can link each shape to a value in Looker’s dimensions. For this, just click on your shape and then add the name of dimension you will be using and then the value that is the one you would get in your database:

3. once you have created all your shapes, jsut download them as topojson:

4. next, you upload the file in Looker:

5. you define the map\_layer in your model file and tell looker the name of the field where you stored the shape value in your topojson, in our case is is “id”
