Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

New Post: remove margins of a bitmap created from GMAP.NET and GHEAT.NET by C# VS2013 WPF

$
0
0
I am working on C# VS2013 WPF.

I have created a heatmap for some points (with lat/longitude) on a map based on OpenStreetMap (OSM).

I used OSM control lib GMAP.net (http://greatmaps.codeplex.com/) and a heatmap control lib GHEAT.net at:

http://www.codeproject.com/Articles/88956/GHeat-NET

I use the max/min lat/lon of the input points as the bounding box. But, the bitmap has a magin arund the points so that when I put it on the map, all points cannot be put on the correct locations even though I use the bounding box as the W/E/S/N lat/lon in XAML Map control.

I have set margins as "0,0,0,0" in
<WindowsPresentation:GMapControl Name="myMap" HorizontalAlignment="Left" Height="500" Margin="0,0,0,0" VerticalAlignment="Top" Width="900"/>, but the result bitmap still have the margin.

Any help would be appreciated.

Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>