Overlay of Overlays are not working

Topics: Bugs
Mar 1, 2012 at 11:35 AM

Suppose I have a provider X of which YahooHybridMap is an overlay, and YahooHybridMap is already having YahooSatelliteMap as overlay, than I am not able to see YahooSatelliteMap tiles. It only shows map labels coming from YahooHybridMap.

Please suggest the possible fix for it, or am I doing something wrong.

Mar 1, 2012 at 12:21 PM
public class XProvider : GMapProvider
{
...
  GMapProvider[] overlays;
  public override GMapProvider[] Overlays
  {
   get
    {
      if(overlays == null)
      {
       overlays = new GMapProvider[] { YahooSatelliteMapProvider.Instance, YahooHybridMapProvider.Instance, this };
      }
      return overlays;
    }
  }
  ...
}
Mar 1, 2012 at 1:04 PM

Thank You very much for providing the work around.