# How to use the DrawingProgress

**URL:** <https://community.thinkgeo.com/t/how-to-use-the-drawingprogress/8561>\
**Category:** Android\
**Created:** [May 17, 2017, 8:50pm UTC](https://community.thinkgeo.com/t/how-to-use-the-drawingprogress/8561 "2017-05-17T20:50:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jehans\_Jr\_Storvik](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jehans\_Jr\_Storvik](https://community.thinkgeo.com/u/Jehans_Jr_Storvik)\
**Post date:** [May 17, 2017, 8:50pm UTC](https://community.thinkgeo.com/t/how-to-use-the-drawingprogress/8561/1 "2017-05-17T20:50:04Z")

</div>

Hello!  
I am trying to use the DrawingProgressChanged for WmtsLayer on Xamarin Forms, however it never seems to fire.  
I want to know when my map has finished drawing, so that some code can be ran.  
I use it like the code below. Is this the correct usage?

```
       WmtsLayer wmtsLayer = new WmtsLayer(new[] { new Uri("http://opencache3.statkart.no/gatekeeper/gk/gk.open_wmts") }); //
        wmtsLayer.ActiveLayerName = "topo2";
        wmtsLayer.ActiveStyleName = "default";
        wmtsLayer.WmtsSeverEncodingType = WmtsSeverEncodingType.Kvp;
        wmtsLayer.TileMatrixSetName = "EPSG:32632";          
        wmtsLayer.OutputFormat = "image/jpeg";
        wmtsLayer.DrawingProgressChanged += WmtsLayer_DrawingProgressChanged;
        
        layerOverlay = new LayerOverlay();
        layerOverlay.TransitionEffect = TransitionEffect.Stretch;
        
        layerOverlay.TileCache = new FileBitmapTileCache(@"/mnt/sdcard/MapSuiteSampleData/TileCaches/", "topo2_cache_wmts");
        layerOverlay.Layers.Add("wmtslayer", wmtsLayer);

```

}

private void WmtsLayer\_DrawingProgressChanged(object sender, DrawingProgressChangedEventArgs e)  
{  
//Do something  
}

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [May 18, 2017, 5:31am UTC](https://community.thinkgeo.com/t/how-to-use-the-drawingprogress/8561/2 "2017-05-18T05:31:38Z")

</div>

Hi Jehans,

The DrawingProgressChanged event is not supported by the wmtsLayer, because this layer is a network based layer, it request data from internet.

In fact we have two events is related with this work.

1. layerOverlay.Drawn, it will be fired multiply times if you select the type TileType.MultipleTile
2. map.OverlaysDrawn

If you found any problem or have any question about this please let us know.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Jehans\_Jr\_Storvik](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jehans\_Jr\_Storvik](https://community.thinkgeo.com/u/Jehans_Jr_Storvik)\
**Post date:** [May 18, 2017, 2:31pm UTC](https://community.thinkgeo.com/t/how-to-use-the-drawingprogress/8561/3 "2017-05-18T14:31:38Z")

</div>

Thank you Don, that makes sense.  
Have a nice day!

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [May 19, 2017, 2:23am UTC](https://community.thinkgeo.com/t/how-to-use-the-drawingprogress/8561/4 "2017-05-19T02:23:28Z")

</div>

Hi Jehans,

I am glad to hear that’s helpful, any question please let us know.

Regards,

Don
