# V12.1 - Map drawn event

**URL:** <https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898>\
**Category:** WPF\
**Created:** [August 25, 2020, 1:07pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898 "2020-08-25T13:07:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Bernhardt1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@Peter\_Bernhardt1](https://community.thinkgeo.com/u/Peter_Bernhardt1)\
**Post date:** [August 25, 2020, 1:07pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/1 "2020-08-25T13:07:09Z")

</div>

Hi,

I would like to catch the point in time when the map is completely drawn after a change (e.g. after a Zoom In operation). Im MapSuite 9 the _OverlaysDrawn_ event was the right way to do this.

In Version 12 is this event fired when the map is clearly NOT yet done drawing.(see below where the map is still blurred after zooming out)

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/5/b/5b67807d2ddf121012f899a5212bb063eee7f3ed.jpeg)

A couple of seconds after this event will the map be really drawn with full detail.

How can I capture this moment with Version 12?  
(BTW the CurrentExtentChanged event did not help either.)

Thank you.

Peter

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 25, 2020, 6:11pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/2 "2020-08-25T18:11:02Z")

</div>

Thanks Peter,  
Could you update the ThinkGeo nugget package to the latest ones. We did some enhancement for this one.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Peter\_Bernhardt1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@Peter\_Bernhardt1](https://community.thinkgeo.com/u/Peter_Bernhardt1)\
**Post date:** [August 26, 2020, 7:53am UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/3 "2020-08-26T07:53:07Z")

</div>

Hi,

I’m currently using version 12.2.19. Should I go to version 13-beta?

Peter

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 26, 2020, 6:15pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/4 "2020-08-26T18:15:15Z")

</div>

Thanks Peter,  
As talked with the development team. In the mapsuite 12 we using the multiple threading to draw the overlay(s). So it difficult to tell when all overlays drawn. Right now once the first overly drawn we will trigger the event. The workaround for this one you could hook up the Drawn event to the most time consume overlay(s). Some thing like this

LayerOverlay lo = Get The most time consume overly;  
lo.Drawn += Lo\_Drawn;

private void Lo\_Drawn(object sender, DrawnOverlayEventArgs e)  
{  
// Do what you want to after the most time consume Overlay(s) drawn;  
}

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Peter\_Bernhardt1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@Peter\_Bernhardt1](https://community.thinkgeo.com/u/Peter_Bernhardt1)\
**Post date:** [August 28, 2020, 12:38pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/5 "2020-08-28T12:38:38Z")

</div>

Hello Frank,

thank you for your answer.  
I’ll try that.

Peter

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [August 28, 2020, 3:45pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/6 "2020-08-28T15:45:14Z")

</div>

Thanks Peter,  
Go ahead let us know if you have any question.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Peter\_Bernhardt1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@Peter\_Bernhardt1](https://community.thinkgeo.com/u/Peter_Bernhardt1)\
**Post date:** [June 15, 2021, 1:20pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/7 "2021-06-15T13:20:48Z")

</div>

Hello Frank,

your suggested workaround is unfortunately not really reliable.  
Did you possibly change anything the last month regarding this behaviour?  
I mean it should not be that difficult to let the separate threads join again after they are drawn in the core of the mapping engine.

Best regards,  
Peter

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [June 16, 2021, 6:18am UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/8 "2021-06-16T06:18:23Z")

</div>

Hi Peter,

Frank is working on other projects now, and I take over this task. I agree with you that it can be supported by adding some flags for all overlays inherited from the base class “Overlay”, because the base class Overlay is only for an abstract class for APIs and common implementation, for different sub-classes, they have different drawing methods. Just as you mentioned, not difficult, but needs changing all sub-classes and do the tests, I will update this thread to “In progress” and look into the changes next few days.

Sorry for the inconvenience. Any progress will be updated here.

Thanks,  
Johnny

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [October 21, 2021, 3:51pm UTC](https://community.thinkgeo.com/t/v12-1-map-drawn-event/9898/9 "2021-10-21T15:51:51Z")

</div>

Hi Peter,

Can you remove the workaround from Frank and update to the latest version (V12.3.13) when having a chance? We made some improvements on the events and hopefully if fixes your issue.

Let me know if you have any question.

Thanks,  
Ben
