Search code examples
c#tiffgeotiffgmap.net

Image tiff in Gmap.net


I have a TIFF image which contains geographic data (UTM coordinates and scale), this data and the extracts using the LibTiff library, I need to load this image on a map of Gmap.net in the coordinates and the corresponding scale. Does anyone know how to do this or if this is possible on Gmap.net?


Solution

  • To add image on Gmap.net:

       GMapOverlay markers = new GMapOverlay("markers");
       GMapMarker marker = new GMarkerGoogle(
       new PointLatLng(48.8617774, 2.349272),
       new Bitmap("mybitmap.jpg"));
       //add markers in 0 position prevent the superposition whit another markers, MainMap = map of GMap.net
       MainMap.Overlays.Insert(0, markers);