/// <summary> /// Extracts style information. /// </summary> /// <param name="icon"></param> /// <returns></returns> public static Icon2DStyle From(Icon2D icon, int layer) { Icon2DStyle newStyle = new Icon2DStyle(); newStyle.Image = icon.Image; newStyle.MaxZoom = icon.MaxZoom; newStyle.MinZoom = icon.MinZoom; newStyle.Layer = layer; return newStyle; }