# Migrating from 4.5 to 12 Adornment Overlay

**URL:** <https://community.thinkgeo.com/t/migrating-from-4-5-to-12-adornment-overlay/9947>\
**Category:** WinForms\
**Created:** [November 9, 2020, 6:52pm UTC](https://community.thinkgeo.com/t/migrating-from-4-5-to-12-adornment-overlay/9947 "2020-11-09T18:52:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 10, 2020, 8:52pm UTC](https://community.thinkgeo.com/t/migrating-from-4-5-to-12-adornment-overlay/9947/4 "2020-11-10T20:52:45Z")

</div>

Thanks Adnras,  
You can find the winform sample here.

> **[samples/winforms · master · ThinkGeo / Public / Desktop Maps · GitLab](https://gitlab.com/thinkgeo/public/thinkgeo-desktop-maps/-/tree/master/samples/winforms)**
>
> .NET controls for building interactive maps with professional-grade GIS controls for the Windows desktop using WPF or WinForms. Sponsor: https://thinkgeo.com

For the AdornmentLayer I created a demo with custom AdornmentLayer for you. You can set the break point for the drawcore.  
[WindowsFormsApp18.zip](https://community.thinkgeo.com/uploads/short-url/cjUkZ99pkkeihj6P2yAX84KP2UN.zip) (20.6 KB)

For the google map image. Google not allow us cache the their images in the mapsuite product. You could write a GetGoogleMapsImage method out of the mapsuite. You need use the parameter for GetGoogleMapsImage to calculate the BoundingBox you want. Then draw the image.

Thanks

Frank

---

_[View the full topic](https://community.thinkgeo.com/t/migrating-from-4-5-to-12-adornment-overlay/9947)._
