Additional Raster Layers

Topics: Feature Requests
Feb 10, 2011 at 1:57 PM

Would it be easy to add additional layers?

Our enterprise server can serve up additional raster layers of data that are overlayed on the background imagery map.

Feb 10, 2011 at 5:43 PM

depends on map projection, if its the same as google/bin it's easy to add

Feb 10, 2011 at 6:27 PM

Yes, its the same projection as the underlying imagery.

How would I go about it?

Feb 10, 2011 at 6:40 PM
  • add new maptype
  • add url handling in GMap.NET.Core/GMap.NET/GMaps.cs/MakeImageUrl
  • change function GetAllLayersOfType is you mix layers
Feb 10, 2011 at 7:46 PM
Thanks, that works.

On 10/02/2011 1:40 PM, radioman wrote:

From: radioman

  • add new maptype
  • add url handling in GMap.NET.Core/GMap.NET/GMaps.cs/MakeImageUrl
  • change function GetAllLayersOfType is you mix layers
May 28, 2014 at 7:34 AM
And what about additional raster layers in gmap wpf? Is it possible to add layers onto bingmap?
May 28, 2014 at 9:05 AM
you can use marker as image, but somehow you need to scale it according the zoom level..
May 28, 2014 at 10:26 AM
Maybe there is an option to place image layer above bingmap like tiles are placed?
May 28, 2014 at 12:45 PM
Edited May 28, 2014 at 12:46 PM
if you have the tiles, yes

p.s. you can make tiles from bitmap using Tools/MapCruncher
May 28, 2014 at 2:28 PM
Edited May 28, 2014 at 2:29 PM
i have made tiles with MapCruncher, now i have folder with tiles and xml file, which references each tile. could you provide procedure how to put tiles above bingmap layer?
May 28, 2014 at 2:39 PM
make new map provider and use it as secondary layer, also you can import tiles using Testing/ConsoleApplication
May 29, 2014 at 8:51 AM
it would be nice to find the exact code how to add second layer
May 29, 2014 at 8:59 AM
Edited May 29, 2014 at 8:59 AM
         MySQLPureImageCache ch = new MySQLPureImageCache();
         ch.ConnectionString = @"server=sql2008;User Id=trolis;Persist Security Info=True;database=gmapnetcache;password=trolis;";
         MainMap.Manager.SecondaryCache = ch;

          set your proxy here if need
         GMapProvider.IsSocksProxy = true;
         GMapProvider.WebProxy = new WebProxy("", 1080);
         GMapProvider.WebProxy.Credentials = new NetworkCredential("", "bilgeada");
         GMapProvider.WebProxy = WebRequest.DefaultWebProxy;
i found example, but i want to set only path to my tiles folder on hard drive