# Adding new layer to GeoMakie.jl poly plot

**URL:** <https://discourse.julialang.org/t/adding-new-layer-to-geomakie-jl-poly-plot/122667>\
**Category:** General Usage\
**Tags:** polygons, geomakie\
**Created:** [November 15, 2024, 8:56am UTC](https://discourse.julialang.org/t/adding-new-layer-to-geomakie-jl-poly-plot/122667 "2024-11-15T08:56:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguelborrero](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Post date:** [November 15, 2024, 8:56am UTC](https://discourse.julialang.org/t/adding-new-layer-to-geomakie-jl-poly-plot/122667/1 "2024-11-15T08:56:56Z")

</div>

Hi there,

I have two sets of Shapefile geometries. If I run:

```julia
f, a, p = poly(shapefile_df.polygon; axis = (; type = GeoAxis))

```

I will get the desired map. However, I would like to add another layer with a different color. I can plot the other layer separately as:

```julia
f2, a2, p2 = poly(data_items.polygon; axis = (; type = GeoAxis))

```

But how do I overlap them?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Fliks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fliks/32/2494_2.png) [@Fliks](https://discourse.julialang.org/u/Fliks)\
**Post date:** [November 15, 2024, 9:13am UTC](https://discourse.julialang.org/t/adding-new-layer-to-geomakie-jl-poly-plot/122667/2 "2024-11-15T09:13:44Z")

</div>

In Makie there is to all plotting functions a function with a ! for adding it to an existing Axis which would be the first input.  
So in your example you can use

```julia
poly!(a, data_items.polygon)

```

And you can use the same keyword arguments for changing the colors and markers and so on as in the poly function.

---

<div class="post-metadata">

**Author:** ![miguelborrero](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Post date:** [November 15, 2024, 12:16pm UTC](https://discourse.julialang.org/t/adding-new-layer-to-geomakie-jl-poly-plot/122667/3 "2024-11-15T12:16:55Z")

</div>

Thanks a lot! By any chance do you know how to hid the map grid? Im trying stuff but nothing works.

---

<div class="post-metadata">

**Author:** ![TimG](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TimG](https://discourse.julialang.org/u/TimG)\
**Post date:** [November 15, 2024, 12:23pm UTC](https://discourse.julialang.org/t/adding-new-layer-to-geomakie-jl-poly-plot/122667/4 "2024-11-15T12:23:33Z")

</div>

`ygridvisible=false, xgridvisible=false` ?
