# Implement the map

**URL:** <https://mapwindow.discourse.group/t/implement-the-map/1030>\
**Category:** MapWinGIS\
**Created:** [June 20, 2021, 4:37am UTC](https://mapwindow.discourse.group/t/implement-the-map/1030 "2021-06-20T04:37:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@John](https://mapwindow.discourse.group/u/John)\
**Post date:** [June 20, 2021, 4:37am UTC](https://mapwindow.discourse.group/t/implement-the-map/1030/1 "2021-06-20T04:37:39Z")

</div>

Continuing the discussion from [How to draw a circle in MapwinGIS](https://mapwindow.discourse.group/t/how-to-draw-a-circle-in-mapwingis/977):

Hello

1. I want to calculate the distance between the two icons on the map, without drawing a line.

![Untitled](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/f5c640f7b80b5d92f17d1666aaf432473d2d700d.png)

1. I want to show the angle between two icons by drawing a line on the map. It is exactly like the map ruler, but instead of calculating the kilometer, show us the angle.

![Untitled](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/efed65f9ae21f5d8d0f272a60b734926ee89104a.png)

1. I want to show me a message box when I click on the icon on the map.

2. I want to display the offline map of a city or country like google map in the application. Please help me to implement the offline map.

Please help me in these cases.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 5, 2022, 2:33pm UTC](https://mapwindow.discourse.group/t/implement-the-map/1030/2 "2022-01-05T14:33:47Z")

</div>

It is best to limit a topic to 1 question.  
The get the distance between two shapes use [Shape.Distance()](https://mapwindow.org/documentation/mapwingis4.9/class_shape.html#aa19e42ae98e0ea0d98ccc30939c1c3ea)

You can also have a look at the [Measuring Class](https://mapwindow.org/documentation/mapwingis4.9/class_measuring.html#details)

You can use the [AxMap.SelectionChanged](https://mapwindow.org/documentation/mapwingis4.9/group __map__ events.html#gaddcf7e72b3cb42cfdc7a4f6447964658) event to open a message box.

In [MapWinGIS v5.3](https://github.com/MapWindow/MapWinGIS/releases) the pull request [PR-146](https://github.com/MapWindow/MapWinGIS/pull/146) was implemented. Making offline tiles possible.

> BaseProvider modified to allow URLs like `file:///c:\temp\maps{zoom}{x}{y}.ext` and offline tile loading from filesystem.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [February 2, 2022, 9:37am UTC](https://mapwindow.discourse.group/t/implement-the-map/1030/3 "2022-02-02T09:37:07Z")

</div>


