Additional Raster Layers

Topics: Feature Requests
Feb 10, 2011 at 12: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.

Coordinator
Feb 10, 2011 at 4:43 PM

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

Feb 10, 2011 at 5:27 PM

Yes, its the same projection as the underlying imagery.

How would I go about it?

Coordinator
Feb 10, 2011 at 5: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 6: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 6:34 AM
And what about additional raster layers in gmap wpf? Is it possible to add layers onto bingmap?
Coordinator
May 28, 2014 at 8:05 AM
you can use marker as image, but somehow you need to scale it according the zoom level..
May 28, 2014 at 9:26 AM
Maybe there is an option to place image layer above bingmap like tiles are placed?
Coordinator
May 28, 2014 at 11:45 AM
Edited May 28, 2014 at 11:46 AM
if you have the tiles, yes

p.s. you can make tiles from bitmap using Tools/MapCruncher
May 28, 2014 at 1:28 PM
Edited May 28, 2014 at 1: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?
Coordinator
May 28, 2014 at 1:39 PM
make new map provider and use it as secondary layer, also you can import tiles using Testing/ConsoleApplication
May 29, 2014 at 7:51 AM
it would be nice to find the exact code how to add second layer
May 29, 2014 at 7:59 AM
Edited May 29, 2014 at 7: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("127.0.0.1", 1080);
         GMapProvider.WebProxy.Credentials = new NetworkCredential("ogrenci@bilgeadam.com", "bilgeada");
          or
         GMapProvider.WebProxy = WebRequest.DefaultWebProxy;
i found example, but i want to set only path to my tiles folder on hard drive